Skip to content

Commit

Permalink
Update q2_quality_filter/tests/test_filter.py
Browse files Browse the repository at this point in the history
Co-authored-by: Greg Caporaso <[email protected]>
  • Loading branch information
colinvwood and gregcaporaso authored Dec 12, 2024
1 parent 23752a0 commit 0e934db
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions q2_quality_filter/tests/test_filter.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,13 @@ def test_find_low_quality_window(self):
)
self.assertEqual(obs, 7)

# low quality window is detected when it's longer than window length
quality_scores = b'MMMMMMM+++'
obs = _find_low_quality_window(
quality_scores, phred_offset=33, min_quality=11, window_length=2
)
self.assertEqual(obs, 7)

# test when multiple windows exist, first window is returned
quality_scores = b'ML++MMM+++'
obs = _find_low_quality_window(
Expand Down

0 comments on commit 0e934db

Please sign in to comment.