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

Self-loop and cycles in rGFA #63

Open
gsc74 opened this issue Apr 26, 2022 · 5 comments
Open

Self-loop and cycles in rGFA #63

gsc74 opened this issue Apr 26, 2022 · 5 comments
Labels
question Further information is requested

Comments

@gsc74
Copy link

gsc74 commented Apr 26, 2022

@lh3 In rGFA file (test\MT.gfa) there is a self loop, So can we expect graph generated with minigraph -cxggs or minigraph --ggen to contain self-loops or cycles?

@lh3 lh3 added the question Further information is requested label Apr 26, 2022
@lh3
Copy link
Owner

lh3 commented Apr 26, 2022

The example just shows that minigraph can handle cycles. I don't think the current minigraph can generate cycles (I haven't checked), but it can generate inversions, which may be more difficult to handle downstream.

@gsc74
Copy link
Author

gsc74 commented Apr 26, 2022

Thanks!

@gsc74
Copy link
Author

gsc74 commented Apr 28, 2022

@lh3 I've checked hprc-v1.0-minigraph-chm13.gfa graph from hprc, by converting to vg format;

vg convert -gv hprc-v1.0-minigraph-chm13.gfa -t 128 > hprc-v1.0-vg-chm13.vg

followed by;

vg stats -A hprc-v1.0-vg-chm13.vg

It shows graph is cyclic

@glennhickey
Copy link

Note: vg stats -A checks for both "reversing" and "non-reversing" cycles, ie if you can start at some node, walk on the graph, and get back to your starting node in either orientation, it will report "cyclic". This also means that a single inversion would be enough to have your graph considered cyclic by this tool.

@gsc74
Copy link
Author

gsc74 commented Apr 28, 2022

Thanks!

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

No branches or pull requests

3 participants