Skip to content

Commit

Permalink
Fix mismatchsize paramter being ignored
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Lonsdale committed Aug 14, 2022
1 parent fa0c453 commit 572430d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pseudoaligner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,7 @@ pub fn match_read<K: Kmer + Sync + Send>(optional: Option<(Vec<u32>, usize, usiz

match optional {
Some((eq_class,coverage,mismatches,readlen)) => {
if coverage >= seq.len() && mismatches == 0 && eq_class.len() == 1 {
if coverage >= seq.len() && mismatches <= mismatchsize && eq_class.len() == 1 {
//if coverage >= READ_COVERAGE_THRESHOLD && eq_class.len() == 1 {
debug!("{:?}",&seq);
if trim { // trim check
Expand Down

0 comments on commit 572430d

Please sign in to comment.