From 2901aa7459431f38aecc329a11c5545f45e1e7b6 Mon Sep 17 00:00:00 2001 From: Colin Wood <68213641+colinvwood@users.noreply.github.com> Date: Thu, 12 Dec 2024 15:05:26 -0700 Subject: [PATCH] Update q2_quality_filter/_filter.py Co-authored-by: Greg Caporaso <192372+gregcaporaso@users.noreply.github.com> --- q2_quality_filter/_filter.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/q2_quality_filter/_filter.py b/q2_quality_filter/_filter.py index 4f8a53d..0b05ff9 100644 --- a/q2_quality_filter/_filter.py +++ b/q2_quality_filter/_filter.py @@ -329,10 +329,7 @@ def q_score( manifest_fh = manifest.open() manifest_fh.write('sample-id,filename,direction\n') - if isinstance(result, SingleLanePerSamplePairedEndFastqDirFmt): - paired = True - else: - paired = False + paired = isinstance(result, SingleLanePerSamplePairedEndFastqDirFmt) # parse phred offset and load the input demux manifest metadata_view = demux.metadata.view(YamlFormat).open()