Question: vg deconstruct with path sizes
0
gravatar for egoltsman
5 months ago by
egoltsman0
United States
egoltsman0 wrote:

Hi, I am wondering if there is a way to output snarls with path size information. Currently, if I go the route of 'vg snarls', then 'vg deconstruct', the vcf file contains only the variant sequences, and I am forced to parse those out and calculate the string size for each one, which is not too efficient when you throw a whole pangenome at it. If this information is already available internally during snarl calling, is there a way to extract/output it?

Thanks!

vg • 163 views
ADD COMMENTlink modified 4 months ago • written 5 months ago by egoltsman0
0
gravatar for glenn.hickey
4 months ago by
glenn.hickey170
glenn.hickey170 wrote:

If I understand correctly, you want the length of each allele stored in some kind of VCF Format field? I suppose this is possible, but as far as I know, must VCF parsers would be parsing the alleles into strings in memory anyway which would allow you to get the size just as efficiently.

As mentioned on github, there should soon be an interface to get snarl traversals using a variety of algorithms (including the one used in deconstruct -e) in GAF format. Hopefully that will be more efficient for you to parse.

ADD COMMENTlink written 4 months ago by glenn.hickey170
0
gravatar for egoltsman
4 months ago by
egoltsman0
United States
egoltsman0 wrote:

That's great to know. Thanks!

ADD COMMENTlink written 4 months ago by egoltsman0
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 864 users visited in the last hour