-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No reads shown for MT variants in internal IGV #4866
Comments
Hi @Jakob37, where are your MT variants read from, same alignment file as the other variants or are they on a separate file (bam/cram) ? |
Right, always interesting with reference genomes. It looks like you are getting the IGV view and the correct locus, but the alignment is not showing. Is that correct? |
They are stored in a separate bam file, here is how a sample can look in the case yaml (before adding owner):
Yes, that is how I understand it! |
OK, actually better I double check our MT BAMs before I say anything. I'll check ... |
We touched that code quite recently so I think it might be a bug |
OK! 🐛 Yes, looking at the MT BAM from the screenshots above, there are reads present. |
I can look into it! |
It's likely not the chromosome naming or reference genome as such: we are using the same MT genome sequence with the good old 1kg hg19 (displayed on hg38) - more likely how we special case to make the tracks for it. |
@Jakob37 any specific error if you right click on the igv page and choose "inspect"? |
Other question: are you navigating to the MT variant from another variant (not on MT) or from the IGV browser created from the link on the case page? |
I'll check! |
Some warnings in the console, but these are also there for the non MT page:
I am navigating: |
Ok, so the javascript shows no errors, just warnings. Thanks! |
I've tried to reproduce locally by setting the genome build of the demo case to 38 (your case has build 38, right? ) and modifying the VCF file of the SNV variants so that MT chrom is now M. The track shows .. Mmmm or MTTT :) |
Yes, we only use build 38
;) Strange! I'll check if I see the same if loading our hg002 case locally. |
Also possibly worth trying out Scout 4.88.1 ie IGV.js 3.0.5 instead of 3.0.4. It shouldn't be that, but if you have like very deep mt bams and not subsampled I guess it might possibly be that region load termination thing anyway? |
@northwestwitch did you also try changing the aln to have chrM instead of MT? The demo aln looks like this: 😊
|
Hmm, yes, I am testing things out with v4.88.1. For some variants I get Some debug printing of the values when the button is there of the data sent to the template:
I haven't been in contact with that before. Is that something inside the JS-part? (I'll continue after 🥗 ) |
Oh, so your chromosome is a plain
I guess it could be that then! |
Yes, that is correct! Not sure about the origin story, but now it is there by inertia. Is the solution to rename our MTs? Or can IGV be configured somehow? (Guess something must have changed, as the issue seems to have appeared now) |
No no, no change of VCF files. If the problem is indeed the alias tab files, why does the demo with only M works locally? Are you also providing an index for the bam files? because the track is not added if you are missing the index, check the code here:
|
Did you really also try with M in the aln though? 😉 But you are right, I probably botched my attempt. It should not work. Let me recheck. |
Hm, consider asking IGV to include it in the alias file? That would be an instant fix. Some backstory and official reference claims might help, but it might be enough just that it seems very very unlikely someone would ever name some other human genome contig in their hg38 reference scout/scout/constants/igv_tracks.py Line 11 in 0bc179b
Or revert to IGV.js <3 I suppose, but you don't want that. |
Right, I did not modify the alignment. It makes sense. We could try to open an issue on igv.js and see if they fix it, otherwise we can include the alias tab files in scout and serve them from the app (bit more cumbersome) |
Here --> igvteam/igv.js#1896 |
Nice job hunting this down 💪 Hope they are fine with updating it. |
Describe the bug
Previously (before updating 4.81 -> 4.88), when navigating to an MT variant page, it was possible to bring up the IGV viewer track including coverage tracks.
Now coverage tracks are only present for non MT variants.
A working variant:
A non working MT-variant:
Accessed from this "IGV viewer" button:
Additional info
I saw the IGV JS was updated in 4.88.1, so I tried running on that version. Same situation there - no MT tracks in neither 4.88 nor 4.88.1
A recurrent issue is that we here in Lund call the mitochondrial chromosome "M" instead of "MT". Might it be something related to that?
The text was updated successfully, but these errors were encountered: