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

Any way to render the peaks on top of a graph? #6

Open
cgroza opened this issue May 30, 2019 · 1 comment
Open

Any way to render the peaks on top of a graph? #6

cgroza opened this issue May 30, 2019 · 1 comment

Comments

@cgroza
Copy link

cgroza commented May 30, 2019

Hi,
It is already possible with vg to visualize graph alingments onto the graph itself. Do you know of any way of taking the peak annotations produced by Graph Peak Caller and including them
in the same graph alignemnt visualization?

In your paper, you show how a peak can lay on top of a path:
https://journals.plos.org/ploscompbiol/article/figure/image?size=large&id=info:doi/10.1371/journal.pcbi.1006731.g001

This is essentially what I am trying to reproduce.

My thanks.

@ivargr
Copy link
Member

ivargr commented Jun 3, 2019

Hi!

There are nice ways to visualize alignments with vg (https://github.com/vgteam/vg/wiki/Visualization), but for now I unfortunately don't know of any good way to convert the peak intervals (Offsetbasedgraph intervals) to vg alignments. The figure you linked to is just drawn manually. We have written code for converting from vg to Offsetbasedgraph, but not the other way around. However, it should not be to tricky to convert to the vg alignment json format, and then use vg to visualize. If you only have a small handful of peaks you want to visualize, you could also just write them in the vg json format manually.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants