vg call has very different variant number between xg and hg
1
1
Entering edit mode
3.9 years ago
xwwang ▴ 20

I find that the vg call has a very different number of variants between calling from the xg, xg packed file and hg (hashgraph), hg packed file. How to explain this? Which one is recommended?

command: tested vg version 1.27, 1.29

## For xg mode:
vg pack -x $graph.xg -g $graph.gam  -t 10 -o $graph.gam.pack
vg call -t 10 -m 1,2 $graph.vg  -k $graph.gam.pack  -a >$graph.gam.xg.vcf

## For hg mode:
vg convert $graph.vg -a >$graph.hg
vg pack -x $graph.hg -g $graph.gam -t 10 -o $graph.gam.hg.pack
vg call -t 10 -m 1,2 $graph.hg  -k $graph.gam.hg.pack  -a >$graph.gam.hg.vcf
vg • 1.3k views
ADD COMMENT
0
Entering edit mode

Please use the formatting bar (especially the code option) to present your post better. You can use backticks for inline code (`text` becomes text), or select a chunk of text and use the highlighted button to format it as a code block. I've done it for you this time.
code_formatting

ADD REPLY
1
Entering edit mode
3.9 years ago
glenn.hickey ▴ 520

It is important that the same graph be used for both the pack and call commands. In your xg example, you are packing with the xg and calling with the vg. This will produce undefined results. If you pack and call with the same graph, the output should be identical regardless of the format.

ADD COMMENT

Login before adding your answer.

Traffic: 1838 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6