Skip to content

Commit

Permalink
Change definition of mismatch parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
Marius Bjørnstad committed Mar 23, 2021
1 parent ff6b4c7 commit 086ecbb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions NSCtrim.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ class Analysis {
for (PrimerPair* pp : read1primer_primers) {
auto result2 = mismatch_and_alignment(primer_mismatches + 1,
pp->primers[1], bat[1].data[idata][1]);
if (result1.first + result2.first <= primer_mismatches) {
if (result2.first <= primer_mismatches) {
unknown = false;
results[idata].found = true;
results[idata].trim[0] = result1.second;
Expand Down Expand Up @@ -363,8 +363,8 @@ int main(int argc, char* argv[]) {

po::options_description visible("Allowed options");
visible.add_options()
("primer-mismatches,b", po::value<unsigned int>(&primer_mismatches)->default_value(0),
"Total allowed mismatches in primer1 + primer2.")
("mismatches-per-primer,m", po::value<unsigned int>(&primer_mismatches)->default_value(0),
"Maximum allowed mismatches in primer1 and primer2 (per primer).")
("swapped-primer-pairs,s", po::bool_switch(&use_swapped_primer_pairs),
"Also search for reverse primer in read 1 and forward primer in read 2 (non-polar amplicons).")
("help,h", "Show this help message.")
Expand Down

0 comments on commit 086ecbb

Please sign in to comment.