Skip to content

Support unknown 'type' values on bed trackline -- defauot to "annotat…#1981

Merged
jrobinso merged 2 commits intomasterfrom
bed_track_types
May 19, 2025
Merged

Support unknown 'type' values on bed trackline -- defauot to "annotat…#1981
jrobinso merged 2 commits intomasterfrom
bed_track_types

Conversation

@jrobinso
Copy link
Contributor

…ion". See igvteam/igv-webapp#332

@jrobinso jrobinso requested a review from Copilot May 19, 2025 03:27
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR introduces support for handling unknown track 'type' values on bed tracklines by defaulting to the "annotation" type. Key changes include:

  • Adding a new test bed file with an unknown track type.
  • Introducing the knownTrackTypes function in trackFactory.js to track registered types.
  • Updating Browser logic to use the knownTrackTypes check and default to "annotation" if a type is unrecognized.

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
test/data/bed/unknown_track_type.bed Added test bed file with an unknown track type header
js/trackFactory.js Added a knownTrackTypes function to expose valid track types
js/browser.js Updated logic to default track type to "annotation" for unknowns
dev/annotation/unknownTrackType.html Added demo HTML for testing annotation track behavior

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@jrobinso jrobinso merged commit a60c144 into master May 19, 2025
2 checks passed
@jrobinso jrobinso deleted the bed_track_types branch May 19, 2025 03:29
jrobinso added a commit that referenced this pull request May 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants