How to change the output reference for vg giraffe BAM output
1
1
Entering edit mode
8 months ago
idiaz026 ▴ 10

I constructed a pan genome graph with mingraph cactus with two reference genomes specified. I am trying to align reads to the graph and produce a BAM file that is specific to one of the references. How can I specify which reference is used during the surjection to the output BAM?

vg BAM giraffe • 453 views
ADD COMMENT
1
Entering edit mode
8 months ago
glenn.hickey ▴ 520

You need to use this options in vg giraffe

--ref-paths FILE              ordered list of paths in the graph, one per line or HTSlib .dict, for HTSLib @SQ headers

You can see the paths in your graph with vg paths -Lv <graph>.gbz. When specifying the ref paths, you don't need to worry about suffixes like [32333-4444444].

ADD COMMENT

Login before adding your answer.

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