-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsnakefile
More file actions
31 lines (26 loc) · 746 Bytes
/
snakefile
File metadata and controls
31 lines (26 loc) · 746 Bytes
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
configfile: "config.yaml"
rule all:
input:
config["experiment_name"] + "/collapsed.gff"
rule cluster:
input:
config["flnc_bam"]
output:
config["experiment_name"] + "/unpolished.bam"
shell:
"isoseq3 cluster {input} {output} --verbose --use-qvs"
rule pbmm2:
input:
config["experiment_name"] + "/unpolished.bam",
config["genome"],
output:
config["experiment_name"] + "/mapped.bam"
shell:
"pbmm2 align --preset ISOSEQ --sort {input[0]} {input[1]} {output}"
rule collapse:
input:
config["experiment_name"] + "/mapped.bam"
output:
config["experiment_name"] + "/collapsed.gff"
shell:
"isoseq3 collapse {input} {output}"