Converting vg and gfa files?
1
0
Entering edit mode
19 days ago
guntul ▴ 20

Is there a tool to convert gfa to vg and vg to gfa files? In general, what are the tools to convert graph files? I know only gfakluge convert to convert gfa1 to gfa2.

gfa pangenome vg graphs • 294 views
ADD COMMENT
1
Entering edit mode
18 days ago

Have a look at vg convert here:

https://github.com/vgteam/vg

These are mostly valid examples or at least they were since there are a lot of formats in vg.

pangenome_mapping.nf:    vg convert -t $task.cpus --gfa-in $gfa -p > ${prefix}.vg
pangenome_mapping.nf:    vg convert -t $task.cpus -x -g ${gfa}.fixed.gfa > ${gfa}.xg
pangenome_mapping.nf: *  convert gam to gaf
pangenome_mapping.nf:    vg convert --threads $task.cpus $vg --gam-to-gaf $gam > ${prefix}.gaf 
pangenome_mapping.nf: *  convert gaf to gam
pangenome_mapping.nf:    // Should be: vg convert graph.vg -G alignment.gam > alignment.gaf
pangenome_mapping.nf:    vg convert --threads $task.cpus $vg --gaf-to-gam $gaf  > ${prefix}.gam  
runbatch_vg_index.sh:   $vg_bin convert -x -g $i.fixed.gfa > $i.xg
runbatch_vg_index.sh:#vg convert -x -b graph.gbwt graph.gg > graph.xg
runbatch_vg_index.sh:#vg convert -x -b graph.gbwt --ref-sample ref graph.gg > graph.xg
ADD COMMENT

Login before adding your answer.

Traffic: 1385 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