-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathSnakefile
31 lines (26 loc) · 1.01 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
# The main entry point of your workflow.
# After configuring, running snakemake -n in a clone of this repository should successfully execute a dry-run of the workflow.
import pandas as pd
report: "report/workflow.rst"
include: "rules/common.smk"
# Variable declaration
OUTDIR = config["out"]
LOGDIR = config["log"]
# Auxiliary functions
def get_resource(rule,resource):
try:
return config["resources"][rule][resource]
except KeyError:
return config["resources"]["default"][resource]
# Final output
rule all:
input:
# The first rule should define the default target files
# Subsequent target rules can be specified below. They should start with all_*.
expand("{OUTDIR}/{sample}.zip", sample = config['sample_id'], OUTDIR = OUTDIR),
expand("{landing}/fastq/landing.finish",
landing = config['landing_dir'], sample = config['sample_id'])
# Rule files
include: "rules/text_files.smk"
include: "rules/map_ln_to_fastq.smk"
include: "rules/landing_zone.smk"