forked from nathanhaigh/snakemake_template
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSnakefile
More file actions
44 lines (38 loc) · 899 Bytes
/
Snakefile
File metadata and controls
44 lines (38 loc) · 899 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
32
33
34
35
36
37
38
39
40
41
42
43
44
MAX_THREADS = 32
N_BENCHMARKS = 1
singularity:
"docker://continuumio/miniconda3:4.5.12"
############################
# Include other Snakefiles #
############################
include:
"rules/misc.smk"
#######################################
# Convienient rules to define targets #
#######################################
localrules:
all
rule all:
input:
# "reports/raw_reads_multiqc.html",
# "reports/qc_reads_multiqc.html",
# expand("mapped/{accession}.bam", accession=ACCESSIONS),
################
# Rules Proper #
################
rule fastqc_raw:
input:
"raw_reads/{prefix}.fastq.gz",
output:
zip = "reports/raw_reads/{prefix}_fastqc.zip",
html = "reports/raw_reads/{prefix}_fastqc.html",
conda:
"envs/default.yml"
threads:
MAX_THREADS
benchmark:
repeat("benchmarks/fastqc_raw/{prefix}.txt", N_BENCHMARKS),
shell:
"""
fastqc --threads {threads} {input}
"""