-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathSnakefile
71 lines (59 loc) · 1.3 KB
/
Snakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
include: "common.smk"
pepfile: config["pepfile"]
rule all:
input:
outfile=get_outfile(),
samples=expand("{sample}.txt", sample=pep.sample_table["sample_name"]),
bams=expand("{sample}.bam", sample=pep.sample_table["sample_name"]),
settings="settings.txt",
rule example:
output:
get_outfile(),
log:
"log/stdout.txt",
container:
containers["debian"]
shell:
"""
echo "Hello world!" > {output} 2> {log}
"""
rule sample:
output:
"{sample}.txt",
log:
"log/{sample}_touch.txt",
container:
containers["debian"]
shell:
"""
touch {output} 2> {log}
"""
rule map:
input:
f=get_forward,
r=get_reverse,
output:
"{sample}.bam",
log:
"log/{sample}_map.txt",
container:
containers["debian"]
shell:
"""
echo mem ref.fa {input.f} {input.r} > {output}
"""
rule settings:
output:
"settings.txt",
params:
s1=config["setting1"],
s2=config["setting2"],
s3=config["setting3"],
log:
"log/settings.txt",
container:
containers["debian"]
shell:
"""
echo {params.s1} {params.s2} {params.s3} > {output}
"""