-
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
Annotation track not showing, if locus is set #1923
Comments
OK, noted, leave this open until I can get to it. If you could zip and post a small example GTF along with a description of what you want to filter or color (or both?) by that would help. |
Thanks for the swift reply. Will do tomorrow. My computer is already switched off :). |
I am using this GTF file and I prepare it using these commands. Since "normal" IGV seems to have trouble with unsorted GTFs, I figured this might be the case for
With this is use this HTML code:
This highlights all |
Any ideas? |
This sort of filtering isn't possible in igv.js. The "filterTypes" is a list of types to filter out, that is the only filtering available. |
Thanks for the info. Guess the easiest would then maybe be to simply filter the GTF file to only contain what I want to see :). Btw. I am experiencing a little inconsistent behavior with the loading of the annotation track with the above code. In some loci (like B2M) it loads, but in others (like TP53 or KRAS) it doesn't. Any idea why that is happening? Can't be a general code issue since it's work. Could it be a caching issue somehow? |
Its probably either a problem with the file or the index. |
Hmm it's the official Ensembl file. Maybe I'll try indexing without sorting, but I think sorting is necessary for indexing. |
I can't reproduce the original issue posted, "filterTypes" should work for both GFF and GTF. Do you have a reproducible test case? |
I'l send one tomorrow (it's midnight here right now :D) |
It seems to depend on the starting locus. Not sure, if you are familiar with shiny, but that's the context I use. I made a little script showing this. Just put the app.py and the two html files in the same folder and make sure, to put the resource files in the folder defined by |
Hi, sorry I don't have time to debug your app, or learn shiny. Also, you didn't attach any files. If you can create a zip with the gtf data file and index I will look into it further with the igv.js html you posted. I shouldn't need the fastas. All of our example files set an initial locus without issue. Also, the current release is 3.1.0. |
No need to debug the app, I just use this as workaround to start a webserver since JavaScript doesn't load local files. Just wanted to make it easy. You would just need to put the three files in a folder and run the shiny app. However, you can simply check the screenshots :). The problem is not that the locus is not set. Setting the locus works, but in the version, where I set the locus the annotation track is not shown. If I don't set the locus, but navigate there manually the annotation track is shown (see screenshot). So the GTF and fai seem to be fine, but I'll generate a zip file later. |
The screenshots don't tell me anything. I don't understand the steps you are taking, I have access to gtf files if you are confident its not the file. What I need is exact steps to reproduce, as in. (1) start with this html, (2) navigate..., whatever. |
If you don't set an an initial locus it should start at whole genome view. You won't see any annotations there, you see the message "Zoom in to see features". That is normal. You screenshot from "after manually navigating" shows 2 igv views, so I'm not sure what is being illustrated there. |
And what happened to the "filterTypes" issue, that is what I was referring to re "cannot reproduce". We seem to be discussing something else now. |
Here's a session that is equivalent to yours, it starts with no locus set. What steps do I take from here to reproduce what you are seeing? https://tinyurl.com/2d4vltgq The session json follows
|
Ok, first let's go back to the screenshots: First screenshot: Initially the upper panel (with locus) shows the correct locus (but no annotations track is loaded and the track stays empty). The lower panel (without locus) shows the whole genome and of course also no annotation track. Second screenshot: If I now navigate in the lower panel (initially without locus) to the exact same locus of the upper panel the lower panel shows the same region as the upper, but it also shows the annotation track that the upper panel (unchanged) fails to load. To reproduce it, I put the three files from the code blocks from above into a zip file containing a If you wanna try shiny (I totally understand, if that's to inconvenient for you), just put those in a folder and install python and the shiny python package and download these FASTA and GTF files:
After that you can run it with Your example is using a GFF3 file and I cannot reproduce it using this GFF3. Do you know of an online hosted GTF with in index maybe? For the originally intended "filterTypes" issue I am sorry. After you mentioned that such type of filtering isn't possible, I dropped the idea. Not sure, if I still have a code snippet for this. And sorry, I should have started another thread instead of simply continuing here. I'd say let's keep this thread to the annotations issue and I'll try to find the code for the filtering and come back to this in another thread, if we figured this here out :). |
OK I'll download that gtf and host it somewhere temporarily. This will take a little time. I am starting to suspect your server, it is highly unlikely that there will be any difference between gff3 and gtf. |
Also be sure you are using the latest igv.js, otherwise we might be wasting our time. The latest version is 3.1.1 |
I can't reproduce your issue with the gtf, this is not surprising there is no real difference between gtf and gff other than how column 9 is parsed. The session json is below, gtf is hosted on dropbox.
|
According to the docs (and what I've tried) this is only available for GFF3s. Unfortunately, I have to use a GTF file. Would be great, if this could be implemented. Alternatively,
colorBy
could also takeType
.The text was updated successfully, but these errors were encountered: