-
Notifications
You must be signed in to change notification settings - Fork 29
/
Copy pathSnakefile
36 lines (31 loc) · 1.02 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
from ScibConfig import *
#configfile: "config.yaml"
cfg = ParsedConfig(config)
wildcard_constraints:
hvg="hvg|full_feature",
scaling="scaled|unscaled",
method="[^/]+"
include: "scripts/preprocessing/Snakefile"
include: "scripts/integration/Snakefile"
include: "scripts/metrics/Snakefile"
include: "scripts/visualization/Snakefile"
rule all:
input:
rules.integration.input,
rules.metrics.output,
rules.embeddings.output
# ------------------------------------------------------------------------------
# Merge benchmark files
#
# Run this after the main pipeline using:
# snakemake --configfile config.yaml --cores 1 benchmarks
# ------------------------------------------------------------------------------
rule benchmarks:
input:
script = "scripts/merge_benchmarks.py"
output:
cfg.ROOT / "benchmarks.csv"
message: "Merge all benchmarks"
params:
cmd = f"conda run -n {cfg.py_env} python"
shell: "{params.cmd} {input.script} -o {output} --root {cfg.ROOT}"