-
Notifications
You must be signed in to change notification settings - Fork 64
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
Add new menu items for show/hide feature labels, set max height, and set compact display mode #1394
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1394 +/- ##
==========================================
- Coverage 58.83% 58.78% -0.06%
==========================================
Files 450 452 +2
Lines 20845 20847 +2
Branches 4941 4942 +1
==========================================
- Hits 12265 12255 -10
- Misses 8272 8283 +11
- Partials 308 309 +1
Continue to review full report at Codecov.
|
with the merger of #1398, seems like this needs to be updated? |
I could update but technically the displaymode took the name FeatureTrack. Should it be renamed back to BasicTrack and then this stays being FeatureTrack? |
I think this would fit best being converted to a new display of FeatureTrack |
Started trying out the conversion to a so called "LinearFeatureDisplay" Gives an error on opening the track though |
|
94614e2
to
2a7293f
Compare
Works now...very cool... Is there a way to make LinearFeatureDisplay the default of FeatureTrack? It seems to be already the default but is there a way to ensure that? |
2a7293f
to
f441980
Compare
By default it goes off the order the displays are registered. If you want to make a display that's registered later the default or want to be extra sure a display is default, you can see an example of how the AlignmentsTrack prioritizes the LinearAlignmentsDisplay in |
I think I dont have a handle on the track type whereas the alignments track says track.addDisplayType |
Regarding #1398 I mentioned that being able to toggle for example a gene track into a lollipop track was somewhat weird to me One possibility is that this PR replaces the existing FeatureTrack concept, and then the other things turn back into other track types or display types that are unrelated to featuretrack |
This is not implemented yet but could be an option |
Note that #1398 had a discuss in meeting tag maybe related to this |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few comments:
- If this only works with the SvgFeatureRenderer, maybe it should limit it to that renderer only in the config schema instead of all renderers
- Having "Display mode" and "Display types" in the track menu seems confusing. Maybe call it "feature display mode"?
- Having the feature display mode and show/hide labels in both the model and in the config seems to make it so that in some cases, changing them in the config doesn't do anything anymore.
Might end up that we change this from being a new display mode for FeatureTrack to maybe a new track type like GeneTrack, which can implement more specialized logic that helps gene features (e.g. custom widget, maybe other things) |
634fa3c
to
4a59583
Compare
I refreshed this branch. It makes it so FeatureTrack by default only has one displaymode registered to it, so that a gene track for example cannot be toggled into a lollipop via the track menu |
513bdc1
to
63f01d4
Compare
Move things around Fix
30ad844
to
aa7b852
Compare
Some cases, the max height indicator is not displayed on, for example, the GFF3Tabix volvox track if I use "Set max height" dialog to make it 20. At 40 it does work. Unclear what the reason is, but it does work for the purpose of increasing max height if you hit the limit |
This adds
I think these things are helpful add ons to the BasicTrack concept
Since this track type actually works in tandem with the SvgFeatureRenderer closely, it is in the plugins/svg
Possibly we could imagine de-emphasizing the svg'ness, so I just call this a FeatureTrack