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 showing extra metadata (length, coverage, etc.) in node / edge labels #207

Open
fedarko opened this issue Feb 20, 2021 · 0 comments

Comments

@fedarko
Copy link
Member

fedarko commented Feb 20, 2021

Discussed yesterday -- this would be useful for generating paper figures, where the "context" available to the user is less clear.

I think Bandage has similar functionality -- should be cited as prior work on this.

See #243 -- the fanciest implementation of this lets the user define labels using custom strings. It'd work similarly to how you'd format a f-string in Python -- something like "{id} ({length} bp, {coverage}x", where the user can refer in {} to any of the available node / edge metadata fields. This would get difficult pretty quickly (eesh, how do we format numbers -- should we add support for the thousands separator, varying amounts of fractional digits, padding...?), but I guess we can just limit ourselves to thousands separator and fractional digits support (should be good enough for most use cases).

A simpler implementation would just let the user pick out fields (and maybe the order of them?, or just do alphabetical order or something), and then would make each label a list of these (e.g. "-12345 (Coverage = 3x, Length = 500 bp)").

@fedarko fedarko changed the title Support showing extra metadata (length, coverage, etc.) in node labels Support showing extra metadata (length, coverage, etc.) in node / edge labels 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