LincolnSteinLab / gdc-viewer

A JBrowse plugin for viewing GDC Data
https://lincolnsteinlab.github.io/gdc-viewer/
MIT License
3 stars 2 forks source link

Open BAM and BAI files in the Add track menu #89

Closed agduncan94 closed 3 years ago

agduncan94 commented 3 years ago

It seems like the convention for naming some bam and bai files from the gdc are alignment.bam and alignment.bai. There is some JBrowse code that assumes the naming convention is something like alignment.bam and alignment.bam.bai. The bai file has the same name as the bam, but with .bai appended to it.

When you try to add the track using the Track -> Add track from file or URL, it assumes that the bam and bai files follow the naming convention mentioned above. This should be fixed to allow users to add these bam and bai files where the name, ignoring the .bam and .bam.bai is the same.

This is related to https://github.com/GMOD/jbrowse/issues/1538.

agduncan94 commented 3 years ago

Notes

GFJHogue commented 3 years ago

This also appears to affect VCFs with their .tbi index files.

Seems to me that this won't change anytime soon. This only really affects users uploading tracks manually, so it's probably not a big deal for them to rename index files...

As for our own "Add Files from GDC" interfaces, this doesn't affect us and the BAM store class doesn't care. It's easy enough to hypothetically support uploading files on a gdc-viewer-specific interface. Closing (and replacing with a new issue).