Skip to content

Commit

Permalink
fix naming in Snakefile to make less awkward
Browse files Browse the repository at this point in the history
  • Loading branch information
agillen committed Jan 30, 2024
1 parent 3123c56 commit 43289bb
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Snakefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ with open('chemistry.json') as fp:
chemistry = json.load(fp)

# paired positional approach
PAIREDs = []
PAIRs = []
if PAIRED_SAMPLES:
PAIREDs.extend(expand("{results}/counts/{sample}_{read}_counts.tsv.gz", results = RESULTS, sample = PAIRED_SAMPLES, read = "paired"))
PAIREDs.extend(expand("{results}/{sample}/{sample}_{read}_Aligned.sortedByCoord.out.bam", results = RESULTS, sample = PAIRED_SAMPLES, read = "paired"))
PAIREDs.extend(expand("{results}/bed/{sample}_{read}.bed.gz", results = RESULTS, sample = PAIRED_SAMPLES, read = "paired"))
PAIRs.extend(expand("{results}/counts/{sample}_{read}_counts.tsv.gz", results = RESULTS, sample = PAIRED_SAMPLES, read = "paired"))
PAIRs.extend(expand("{results}/{sample}/{sample}_{read}_Aligned.sortedByCoord.out.bam", results = RESULTS, sample = PAIRED_SAMPLES, read = "paired"))
PAIRs.extend(expand("{results}/bed/{sample}_{read}.bed.gz", results = RESULTS, sample = PAIRED_SAMPLES, read = "paired"))
# read 1 positional approach
R1s = []
if R1_SAMPLES:
Expand All @@ -39,7 +39,7 @@ if R2_SAMPLES:
R2s.extend(expand("{results}/{sample}/{sample}_{read}_Aligned.sortedByCoord.out.bam", results = RESULTS, sample = R2_SAMPLES, read = "R2"))
R2s.extend(expand("{results}/bed/{sample}_{read}.bed.gz", results = RESULTS, sample = R2_SAMPLES, read = "R2"))
# combine
all_outputs = PAIREDs + R1s + R2s #+ expand("{results}/report/multiqc_report.html", results = RESULTS)
all_outputs = PAIRs + R1s + R2s #+ expand("{results}/report/multiqc_report.html", results = RESULTS)
print(all_outputs)

rule all:
Expand Down

0 comments on commit 43289bb

Please sign in to comment.