diff --git a/GetBaseCountsMultiSample.cpp b/GetBaseCountsMultiSample.cpp index f028db0..85aac3b 100644 --- a/GetBaseCountsMultiSample.cpp +++ b/GetBaseCountsMultiSample.cpp @@ -749,7 +749,7 @@ void loadVariantFileVCF(vector& input_file_names, vector 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()); @@ -896,7 +896,7 @@ void loadVariantFileMAF(vector& input_file_names, vector 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());