Skip to content

Commit

Permalink
Fix logic in get_fastqc_files function
Browse files Browse the repository at this point in the history
  • Loading branch information
alsmith151 committed Mar 21, 2024
1 parent 42cbce5 commit e820801
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions seqnado/workflow/rules/qc.smk
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,9 @@ use rule samtools_stats as samtools_stats_filtered with:
def get_fastqc_files(wildcards):


single_end_assays = [name for name in SAMPLE_NAMES if DESIGN.query(name).is_paired == True]
paired_end_assays = [name for name in SAMPLE_NAMES if DESIGN.query(name).is_paired == False]
single_end_assays = [name for name in SAMPLE_NAMES if DESIGN.query(name).is_paired == False]
paired_end_assays = [name for name in SAMPLE_NAMES if DESIGN.query(name).is_paired == True]


fastqc_raw_paired = expand(
"seqnado_output/qc/fastqc_raw/{sample}_{read}_fastqc.html",
Expand All @@ -123,7 +124,7 @@ def get_fastqc_files(wildcards):
all_qc_files = []
for files in [fastqc_raw_paired, fastqc_trimmed_paired, fastqc_raw_single, fastqc_trimmed_single]:
if files:
all_qc_files.extend(files)
all_qc_files.extend(*files)

return all_qc_files

Expand Down

0 comments on commit e820801

Please sign in to comment.