Edit distance of an alignment
1
0
Entering edit mode
4.2 years ago
ec_yeh • 0

I am new to VG.

I have mapped short sequences to a genome graph using vg map. Now I wish to extract sequences from the result GAM file that are mapped to the genome graph with edit distance less or equal to 2.

Is there a (an easy) way to do it?

If I want to extract the perfect matches instead of the ones with edit distance <= 2 , is (.identity==1) the right condition to use?

vg variation graph • 752 views
ADD COMMENT
1
Entering edit mode
4.2 years ago
glenn.hickey ▴ 520

You are probably best to use the "score" field, as "identity" doesn't take into account gaps. The default scoring parameters are displayed under the "scoring:" section if you run vg map without any arguments. With the defaults, a perfect score is 10 + length of the read.

ADD COMMENT

Login before adding your answer.

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