Skip to content

Commit 7e2e3eb

Browse files
committed
fix VCF indel position issue
1 parent ade5922 commit 7e2e3eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mutation.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ vector<Mutation> Mutation::parseVcf(string vcfFile, string refFile) {
252252
ss<<cds<<"_";
253253
ss<<chrom<<"_"<<v.pos<<"_"<<v.ref<<">"<<v.alt;
254254
string name = ss.str();
255-
string left = ref[chrom].substr(v.pos-25-v.ref.length(), 25);
255+
string left = ref[chrom].substr(v.pos-25-1, 25);
256256
str2upper(left);
257257
string center = v.alt;
258258
string right = ref[chrom].substr(v.pos+v.ref.length()-1, 25);

0 commit comments

Comments
 (0)