-
Notifications
You must be signed in to change notification settings - Fork 231
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
sessions with cytobandURL data uri #1338
Comments
I would suggest setting a breakpoint in the function loadCytobands of genome.js and see what is going on from there. Make a copy of one of the "dev" htmls and use your decoded session for the "config". |
ok. thanks for the reply. I plan to have a look at this when I get other critical parts sorted. |
For what it's worth, the example from igv-reports show this for the first variant. All other variants render the ideogram correctly, but not the first variant it's almost like the ideogram is zoomed in, only showing a part of the chromosome. here's the command I ran to see it (directly from igv-reports README):
|
I tracked this down, the bug was not in igv-reports but igv.js. To scale the cytoband the bp length of the chromosome was used, which in turn was computed from the sequence length. The report generated fastas contain only a slice of the sequence, and the bp length of the chromosome was == start postition + sequence length. Variants at the beginning of the chromosome looked worse, but they were all wrong. I'm not sure when this crept in. The igv.js fix will be released shortly, then I will update the template and release igv-reports. For your application just use the latest igv.js release, which should be 2.8.5, when its out in the next day or so. |
great! thanks for the fix, and the software! |
Hi, thanks again for this great software.
I am trying to write my own serializer, similar to igv-reports. I have bam, vcf, bed, etc working, but the cytoband is not working. If I copy the base64+gzip encoded data from an igv-reports file, then it works, but if I use another, it does not; there is no error but the bands do not render. I'm not sure how to debug.
Here is the relevant part from the decoded sessionURL:
and that decodes to:
so it looks fine. I am attaching the full html which shows that the bam and vcf are working.
o.html.gz
I've tried with multiple different cytoband files but can't get it to render.
I'm happy to hear any pointers.
The text was updated successfully, but these errors were encountered: