-
Notifications
You must be signed in to change notification settings - Fork 198
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
load a specific type of feature from gff3tabix #974
Comments
@Yating-L You should just point to the gff3 tabix file. If you look at the in-memory GFF3Tabix adapter for volvox it should work. Keep in mind, there are still a few issues (#969), #780, #935. Hope to have some fixes for those, soon. However, if its a limited range and you are using Canvas tracks (and are JBrowse only) it should work fairly well. |
@nathandunn It works when "mRNA" is in column 3 of the GFF. But not work when "transcript" is in column 3. It looks like loading "mRNA" is the default setting for HTMLFeatures: load subfeatures. I might be wrong. Where can I find "the in-memory GFF3Tabix adapter for volvox"? Thanks! |
You can set "transcriptType": "transcript" in your config to fix that particular issue of transcript instead of mRNA in column 3 (for canvasfeatures tracks) |
I think that is definitely the fix if there is only the one type of type, but if you have both mRNA and transcripts (as well as other transcript types)? Or is it possible to provide multiple transcript types? (we’ll have to fix this eventually)
… On Feb 5, 2018, at 10:38 AM, Colin Diesh ***@***.***> wrote:
You can set "transcriptType": "transcript" in your config to fix that particular issue of transcript instead of mRNA in column 3
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub <#974 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AAt2qs5PVL-TZjezsz3M1HQTk6AG7wvPks5tR0qegaJpZM4R5zRH>.
|
@cmdcolin @nathandunn I think set "transcriptType": "transcript" only works for CanvasFeature. I need to use HTMLFeature for Apollo/JBrowse. |
@Yating-L This is on my list of things to fix. I have a partial fix for HTMLFeatures here (though I'm going to abandon this PR): https://github.com/GMOD/Apollo/pull/1822/files#diff-09b50a85a7f9125fad0738f4dc234797R1031 probably when solving this issue #969. I think #956 (Canvas GFF3Tabix histograms) might need to be integrated first (hopefully this week). Feel free to take a stab at the fix, though. The other problem with HTMLFeatures was that if you include a gene in the GFF3 it ONLY shows the top-level by default. I try to incorporate that fix, as well, but I doubt it covers all types or is sufficiently configurable. The code for both Tabix and HTMLFeatures is pretty readable. I hope to get them both out this month, but feel free to start fixing the HTMLFeatures code for tabix (I think they are small fixes relative to the PR). |
I see. I guess for HTMLFeatures, the fundamental problem is that HTMLFeatures doesn't display the individual transcripts when loaded at the gene level. Anything sort of aside from that like filtering on type for gff3tabix is sort of a workaround to that fundamental issue I have looked into a fix for this fundamental problem and I think it could be done For example here is an example
This now allows you to load flatfile-to-json.pl on a GFF with --type gene and all individual transcripts can be displayed. Or, similarly, just use a gff3tabix with gene type features in it. I'd be curious what @rbuels thinks about this type of approach |
I think this would be good. The other issue was that when block sizes didn't line up (with HTMLFeatures) it would only render exons for one block or the other. The fix was to create alternate blocks so that there was no intersection of the block query and the transcripts. Again, doesn't affect the canvas, but it should be in GFF3Tabix Histogram PR (if not, I'll put it there). |
@cmdcolin I merged this in (d19f4e4), which is similar to another fix I had in my client-side project branch (though sort of in tatters), but I can't remember what: Its definitely better, but it seems to ignore Genes entirely. I think we still want them in the model, if possible, but we don't want to render them. It does something screwy to the introns, as well. |
Either way its a step in the right direction. My solution had them all stacked as you have shown here: #969 (comment) so it definitely fixed that problem. |
@cmdcolin Of course, this might be due to a weird interaction with neat features. Granted, I had sort of gotten it working based on the Apollo code in branching where it was able to explicitly render the exon segments: https://github.com/nathandunn/Apollo/blob/2.1.0/client/apollo/js/View/Track/DraggableHTMLFeatures.js#L947 |
in the dev branch now, which is going into the 1.14.0 release, there is support for a so if you have a GFF3+Tabix file with gene models, that you have to use with HTMLFeatures, you can set Sound good? Feel free to reopen if this turns out not to work. |
I can use the --type argument for flatfile-to-json.pl to only load mRNA/transcript from source gff3 file. Now I'd like to use gff3tabix instead. Are there any equivalent methods to load a specific type of features? Thank you!
The text was updated successfully, but these errors were encountered: