-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSnakefile
More file actions
38 lines (27 loc) · 1010 Bytes
/
Snakefile
File metadata and controls
38 lines (27 loc) · 1010 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
import yaml
from snakemake.utils import min_version, validate
min_version("8.10")
# Load the example configuration. This will be overridden by users.
configfile: workflow.source_path("../config/config.yaml")
# Validate the configuration using the schema file.
validate(config, workflow.source_path("internal/config.schema.yaml"))
# Load internal settings separately so users cannot modify them.
with open(workflow.source_path("internal/settings.yaml"), "r") as f:
internal = yaml.safe_load(f)
# Add all your includes here.
include: "rules/automatic.smk"
include: "rules/dummy.smk"
# Add additional files to be delivered alongside the workflow here.
# e.g.: workflow.source_path("scripts/_utils.py")
rule all:
message:
"ERROR: Invalid `rule all:` call"
default_target: True
output:
"INVALID",
log:
stderr="logs/all.stderr",
conda:
"envs/shell.yaml"
shell:
'echo "This workflow must be called as a snakemake module." > {log.stderr}'