Converting gam to gaf
1
0
Entering edit mode
4.5 years ago
hmg ▴ 20

I noticed it is now possible to output alignments in gaf files instead of gam, which is great! How difficult would it be to convert gam to gaf? Gaf is definitely easier to parse than using jq for the json conversion of gam, but I'd like to avoid realigning all my previous work. Are there plans to make a gaf output option for vg view?

vg • 1.9k views
ADD COMMENT
2
Entering edit mode
4.4 years ago
glenn.hickey ▴ 520

GAF will gradually be more tightly integrated with all the tools. In the meantime, you can convert back and forth between GAM and GAF with vg convert -F and -G

ADD COMMENT
0
Entering edit mode

For future reference - the command for this in vg convert is somewhat unclear - you need to have a vg format graph in the command, that is, you cannot just directly convert gam to gaf or vice versa.

vg convert --threads $task.cpus $vg --gam-to-gaf $gam > ${prefix}.gaf
ADD REPLY

Login before adding your answer.

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