-
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
Using a callback to set the height of sub-features is causing some of those features to be only partially-rendered #1648
Comments
if you can share an exact reproducible config trackList.json and even data files, it may help. the behavior of the glyphs follows a couple rules for the gene/processed transcript normal glyphs, it makes e.g. the utr's like 70% of the total height, but i don't know what the exact behavior is in your situation, probably best to just see a reproducible env if possible |
Thanks Colin! Here's the track config:
And the callback functions:
A snippet of data is attached to this post as well. Appreciate your help! |
I think if you make the parent feature e.g. type=="mRNA" the maximum height, then it ends up working modified callback here
increased the 11 to 30 just for exaggeration in screenshot |
That was it!!! Looks like the issue was caused by attempting to increase the height of a subfeature higher than its parent. Thanks so much Colin! Really appreciate your help! |
glad to help :) i've been continually impressed by the jbrowse integration at maizegdb! |
Hello!
I'm working with some gene data where the UTRs, CDS's, and Introns all have a score assigned to them, and I would like to color-code all of these features based on this score. I first tried using the default glyph with this data, but when attempting to use a callback for
style->connectorColor
, the callback wasn't able to read feature data from the introns. I then tried to use the Segments glyph and got the display mostly working the way I wanted, but I would still like the CDS features to stand out and so I've attempted to make them bigger than the other sub-features by using a callback forstyle->height
. However when doing this it seems the larger CDS features aren't rendering completely in the first transcript, as shown in this screenshot:Interestingly you can see that it renders completely in the other 2 transcripts. It just seems to be only the first transcript that is having this issue. Would it be possible to fix this? If there's a workaround too that would be much appreciated!
I'm using JBrowse 1.16.11, and the issue is occurring on Chrome, Safari, and FireFox (haven't tested Edge).
Thank you!
The text was updated successfully, but these errors were encountered: