-
Notifications
You must be signed in to change notification settings - Fork 0
/
Snakefile
59 lines (53 loc) · 1.39 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
configfile: "genomes.yaml"
ruleorder: createZarr > createIndexer > loadIntoLmdb
rule all:
input:
expand("results/human/.{humans}.fake", humans=config["humans"]),
expand("results/bovine/.{bovines}.fake", bovines=config["bovines"])
rule count:
input:
"genomes/{species}/{sample}.fasta"
output:
temp("results/{species}/{sample}.jf")
#tt=touch("touchFile1")
benchmark:
"benchmarks/{sample}.benchmark.txt"
threads:
2
shell:
"jellyfish count -m 4 -s 100M -t {threads} {input} -o {output}"
rule dump:
input:
"results/{species}/{sample}.jf"
output:
"results/{species}/{sample}.fa"
benchmark:
"benchmarks/{sample}.benchmark.txt"
shell:
"jellyfish dump {input} > {output}"
rule loadIntoLmdb:
input:
"results/{species}/{sample}.fa"
output:
touch("results/{species}/{sample}.fake")
benchmark:
"benchmarks/{sample}.benchmark.txt"
threads:
10000
shell:
"python fastaParser.py {input}"
rule createIndexer:
output:
touch("results/touchFile")
shell:
"python indexCreator.py",
rule createZarr:
input:
"results/touchFile",
a="results/{species}/{sample}.fake"
output:
touch("results/{species}/.{sample}.fake")
threads:
1000
shell:
"python zarrCreate.py {input.a}"