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 5898dab commit 06e1725
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions q2_quality_filter/tests/test_filter.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,12 @@ def test_find_low_quality_window(self):
quality_scores, phred_offset=33, min_quality=20, window_length=3
)
self.assertEqual(obs, 4)
# test that when all windows are too short, None is returned
quality_scores = b'++ML+++M+++MM++'
obs = _find_low_quality_window(
quality_scores, phred_offset=33, min_quality=20, window_length=4
)
self.assertEqual(obs, None)

def test_truncate(self):
fastq_record = FastqRecord(
Expand Down

0 comments on commit 06e1725

Please sign in to comment.