Skip to content

Commit ba73e79

Browse files
committed
fix: SAMPLES -> samples
1 parent 7b855df commit ba73e79

File tree

6 files changed

+18
-18
lines changed

6 files changed

+18
-18
lines changed

setup_creators/solutions/06_Snakefile_run

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# our samples are pre-configured
2-
SAMPLES = ["A", "B"]
2+
samples = ["A", "B"]
33

44
rule all:
55
input:
@@ -38,8 +38,8 @@ rule samtools_index:
3838
rule bcftools_call:
3939
input:
4040
fa="data/genome.fa",
41-
bam=expand("sorted_reads/{sample}.bam", sample=SAMPLES),
42-
bai=expand("sorted_reads/{sample}.bam.bai", sample=SAMPLES)
41+
bam=expand("sorted_reads/{sample}.bam", sample=samples),
42+
bai=expand("sorted_reads/{sample}.bam.bai", sample=samples)
4343
output:
4444
"calls/all.vcf"
4545
shell:

setup_creators/solutions/07_Snakefile_script

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# our samples are pre-configured
2-
SAMPLES = ["A", "B"]
2+
samples = ["A", "B"]
33

44

55
rule all:
@@ -40,8 +40,8 @@ rule samtools_index:
4040
rule bcftools_call:
4141
input:
4242
fa="data/genome.fa",
43-
bam=expand("sorted_reads/{sample}.bam", sample=SAMPLES),
44-
bai=expand("sorted_reads/{sample}.bam.bai", sample=SAMPLES)
43+
bam=expand("sorted_reads/{sample}.bam", sample=samples),
44+
bai=expand("sorted_reads/{sample}.bam.bai", sample=samples)
4545
output:
4646
"calls/all.vcf"
4747
shell:

setup_creators/solutions/08_Snakefile_script2

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# our samples are pre-configured
2-
SAMPLES = ["A", "B"]
2+
samples = ["A", "B"]
33

44
configfile: "config/config.yaml"
55

@@ -41,8 +41,8 @@ rule samtools_index:
4141
rule bcftools_call:
4242
input:
4343
fa="data/genome.fa",
44-
bam=expand("sorted_reads/{sample}.bam", sample=SAMPLES),
45-
bai=expand("sorted_reads/{sample}.bam.bai", sample=SAMPLES)
44+
bam=expand("sorted_reads/{sample}.bam", sample=samples),
45+
bai=expand("sorted_reads/{sample}.bam.bai", sample=samples)
4646
output:
4747
"calls/all.vcf"
4848
shell:

setup_creators/solutions/09_Snakefile_config

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# our samples are pre-configured
2-
SAMPLES = ["A", "B"]
2+
samples = ["A", "B"]
33

44
configfile: "config/config.yaml"
55

@@ -41,8 +41,8 @@ rule samtools_index:
4141
rule bcftools_call:
4242
input:
4343
fa="data/genome.fa",
44-
bam=expand("sorted_reads/{sample}.bam", sample=SAMPLES),
45-
bai=expand("sorted_reads/{sample}.bam.bai", sample=SAMPLES)
44+
bam=expand("sorted_reads/{sample}.bam", sample=samples),
45+
bai=expand("sorted_reads/{sample}.bam.bai", sample=samples)
4646
output:
4747
"calls/all.vcf"
4848
shell:

setup_creators/tutorial/05_Snakefile_target

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# our samples are pre-configured
2-
SAMPLES = ["A", "B"]
2+
samples = ["A", "B"]
33

44
#TASK: Figure out, which your final target is.
55
# This is the final target of our workflow, so far.
@@ -44,8 +44,8 @@ rule samtools_index:
4444
rule bcftools_call:
4545
input:
4646
fa="data/genome.fa",
47-
bam=expand("sorted_reads/{sample}.bam", sample=SAMPLES),
48-
bai=expand("sorted_reads/{sample}.bam.bai", sample=SAMPLES)
47+
bam=expand("sorted_reads/{sample}.bam", sample=samples),
48+
bai=expand("sorted_reads/{sample}.bam.bai", sample=samples)
4949
output:
5050
"calls/all.vcf"
5151
shell:

setup_creators/tutorial/06_Snakefile_run

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# our samples are pre-configured
2-
SAMPLES = ["A", "B"]
2+
samples = ["A", "B"]
33

44
#TASKS: This is an almost working Snakefile!
55
# But it is scrambled and contains a bug.
@@ -36,8 +36,8 @@ rule samtools_sort:
3636
rule bcftools_call:
3737
input:
3838
fa="data/genome.fa",
39-
bam=expand("sorted_reads/{sample}.bam", sample=SAMPLES),
40-
bai=expand("sorted_reads/{sample}.bam.bai", sample=SAMPLES)
39+
bam=expand("sorted_reads/{sample}.bam", sample=samples),
40+
bai=expand("sorted_reads/{sample}.bam.bai", sample=samples)
4141
output:
4242
"calls/all.vcf"
4343
shell:

0 commit comments

Comments
 (0)