Skip to content

Commit

Permalink
fixed minor issue
Browse files Browse the repository at this point in the history
  • Loading branch information
zengzheng123 authored Mar 10, 2018
1 parent dedbe7b commit 0d8b4ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions GetBaseCountsMultiSample.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -749,7 +749,7 @@ void loadVariantFileVCF(vector<string>& input_file_names, vector<VariantEntry *>
string alt = variant_items[4];

bool snp = (alt.length() == ref.length() && alt.length() == 1);
bool dnp = (alt.length() == ref.length());
bool dnp = (alt.length() == ref.length() && alt.length() > 1);
int dnp_len = dnp ? ((int)ref.length()) : 0;
bool insertion = (alt.length() > ref.length());
bool deletion = (alt.length() < ref.length());
Expand Down Expand Up @@ -896,7 +896,7 @@ void loadVariantFileMAF(vector<string>& input_file_names, vector<VariantEntry *>
alt = prev_ref;
}
bool snp = (alt.length() == ref.length() && alt.length() == 1);
bool dnp = (alt.length() == ref.length());
bool dnp = (alt.length() == ref.length() && alt.length() > 1);
int dnp_len = dnp ? ((int)ref.length()) : 0;
bool insertion = (alt.length() > ref.length());
bool deletion = (alt.length() < ref.length());
Expand Down

0 comments on commit 0d8b4ea

Please sign in to comment.