Skip to content
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

Support drawing a histogram for node / edge metadata #20

Open
fedarko opened this issue Aug 9, 2017 · 1 comment
Open

Support drawing a histogram for node / edge metadata #20

fedarko opened this issue Aug 9, 2017 · 1 comment
Assignees

Comments

@fedarko
Copy link
Member

fedarko commented Aug 9, 2017

From @fedarko on September 27, 2016 15:54

This could be cool.

If this is going to be just one chart for the entire assembly, regardless of whatever the user does in the viewer, then I figure we could just generate the chart in collate.py and store the resulting image in the .db file. However, if we want the user to be able to actually modify the chart dynamically (e.g. to only view information for selected nodes' lengths) or if we want to generate many possible charts (e.g. a histogram of edge multiplicities), then it would make sense to generate the chart in the browser using something like d3.js.

I don't want to use too many dependencies in the project, but d3 shouldn't be too bad to use here.

Update: Yeah, we should extend this idea to support arbitrary node / edge fields (see #243 -- so not just lengths but also coverages, GC contents, other user-specified things...) It will be a bit challenging to pick good histogram bounds "on the fly", but there are probably libraries that can do this well.

Copied from original issue: fedarko/MetagenomeScope#99

@fedarko
Copy link
Member Author

fedarko commented Sep 10, 2019

Yeah, doing this (and #61) through Vega-Lite would be much much much easier.

@fedarko fedarko changed the title Display a node length histogram chart/etc. in "assembly information" Support drawing a histogram for node / edge metadata Apr 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant