-
Notifications
You must be signed in to change notification settings - Fork 0
/
Snakefile
49 lines (31 loc) · 911 Bytes
/
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
37
38
39
40
41
42
43
44
45
46
47
48
49
import pandas as pd
from snakemake.utils import validate
import yaml
validate(config, "schemas/config.yaml")
pepfile: config["pepfile"]
pepschema: "schemas/pep.yaml"
shell.prefix(f"export PRONTO_DIR={workflow.basedir} ; ")
include: "rules/common.smk"
include: "rules/samtools.smk"
include: "rules/jacusa2.smk"
include: "rules/meta.smk"
include: "rules/plot.smk"
include: "rules/report.smk"
rule all:
input: auto_targets()
rule original:
input: original_targets()
rule downsampling:
input: downsampling_targets()
def describe_yaml(fname):
with open(input[0]) as f:
schema = yaml.load(f, Loader=yaml.SafeLoader)
print(yaml.dump(schema, default_flow_style=False))
rule describe_config:
input: workflow.basedir + "/schemas/config.yaml"
run:
describe_yaml(input[0])
rule describe_pep:
input: workflow.basedir + "/schemas/pep.yaml"
run:
describe_yaml(input[0])