Skip to content

Commit

Permalink
Reformat
Browse files Browse the repository at this point in the history
  • Loading branch information
Ulthran committed Jun 5, 2024
1 parent d1e42db commit b6bf0fd
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions primertrim/matcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,12 +154,16 @@ def find_in_seqs(self, seqs):
start_idx = hit["qlen"] - hit["qend"]
end_idx = hit["qlen"] - hit["qstart"] + 1
if start_idx >= end_idx:
raise ValueError("Invalid start and end indices ({} is greater than or equal to {})".format(start_idx, end_idx))
raise ValueError(
"Invalid start and end indices ({} is greater than or equal to {})".format(
start_idx, end_idx
)
)
seq = seqs[seq_id]
primerseq = seq[start_idx:end_idx]
matchobj = PrimerMatch("Alignment", start_idx, mismatches, primerseq)
yield seq_id, matchobj


class TooManyMismatchesException(Exception):
pass
pass

0 comments on commit b6bf0fd

Please sign in to comment.