-
Notifications
You must be signed in to change notification settings - Fork 8
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 option to render multiple connected components at once #16
Comments
It should be possible for the user to specify a range of components, instead of just a boolean "all or one" thing. Enclosed are some sample "inputs" and what should be displayed:
The latter two input types are really fancy (but, of course, potentially really useful -- esp. the second-to-last input type) and I'm not even sure how to efficiently implement them off the top of my head, so I think working towards input cases 2, 3, and 4 above is probably a sufficient goal for the time being. |
Planned options:
Number 3 might be difficult (mostly from a UI perspective tbh), but 2 and 4 shouldn't be too bad to do with the new data handling stuff (and I think they'll be the most useful). |
Works pretty well. could be made prettier but good enough
From @fedarko on September 27, 2016 15:39
I guess this would be done in the viewer. We could do this by taking the bounding boxes for each component and "concatenating" them, with some margins in between. (For some reason, laying out components individually seems to be faster than laying out the entire graph at once—so we'd still generate layouts on a component-by-component basis, but just concatenate the resulting layouts to produce something basically equivalent.)
This probably shouldn't be the default behavior (will wreck viewer performance for huge graphs that have sizable non-largest components) but having it as an option would be useful in some cases (e.g. graphs composed of a lot of tiny component fragments).
Copied from original issue: fedarko/MetagenomeScope#93
The text was updated successfully, but these errors were encountered: