Skip to content

Commit

Permalink
fix VCF indel position issue
Browse files Browse the repository at this point in the history
  • Loading branch information
sfchen committed Oct 22, 2017
1 parent ade5922 commit 7e2e3eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mutation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ vector<Mutation> Mutation::parseVcf(string vcfFile, string refFile) {
ss<<cds<<"_";
ss<<chrom<<"_"<<v.pos<<"_"<<v.ref<<">"<<v.alt;
string name = ss.str();
string left = ref[chrom].substr(v.pos-25-v.ref.length(), 25);
string left = ref[chrom].substr(v.pos-25-1, 25);
str2upper(left);
string center = v.alt;
string right = ref[chrom].substr(v.pos+v.ref.length()-1, 25);
Expand Down

0 comments on commit 7e2e3eb

Please sign in to comment.