vgteam / vg

tools for working with genome variation graphs
https://biostars.org/tag/vg/
Other
1.1k stars 194 forks source link

vg mod from gam file not working as described #3051

Closed egoltsman closed 3 years ago

egoltsman commented 3 years ago

1. What were you trying to do?

Following steps to add gene annotations to the graph as described here: https://github.com/vgteam/vg/wiki/VG-RDF,-the-Ensembl-bacteria-E.-coli-genome-hack-attack

2. What did you want to happen? Ultimately, I'd like to try out the RDF functionality and make a few queries using the gene annotations as criteria

3. What actually happened? Calling vg mod -i results in the "deprecated" error pointing the user to vg augment, but the latter bails out on the input:

$vg mod -i foo.gam foo.vg >bar.vg`
[vg mod] error: vg mod -i is deprecated.  please switch to vg augment

$vg augment foo.vg foo.gam > bar.vg
error[VPKG::load_one]: Correct input type not found while loading handlegraph::MutablePathMutableHandleGraph

Is this workflow still supported or is there an alternative way to do it?

I'm working with the latest release - v.1.27.1

Thanks!

glennhickey commented 3 years ago

What do do vg validate foo.vg and vg stats -F foo.vg print?

ekg commented 3 years ago

I suggest building the graph with pggb. https://github.com/pangenome/pggb

On Tue, Oct 20, 2020, 16:22 Glenn Hickey notifications@github.com wrote:

What do do vg validate foo.vg and vg stats -F foo.vg print?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/vgteam/vg/issues/3051#issuecomment-712890141, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABDQEO6XSUKYK2XB3WRWEDSLWMKBANCNFSM4SWYMU4A .

egoltsman commented 3 years ago

vg validate did expose the problem - thanks for the tip! The paths in the vg graph were botched by my earlier attempt to merge adjacent paths into one, and I ended up with paths that don't have the edges to support it. Once I fixed this everything worked.

Thanks!