Snakefile 1.85 KB
Newer Older
Laura Denies's avatar
Laura Denies committed
1
#Snakefile
Laura Denies's avatar
Laura Denies committed
2

3
if config["workflow"] == "complete":
4
5
6
7
8
9
10
11
12
13
14
15
    include:
        "workflows/Combine_PathoFact_workflow"
    rule all:
        input:
            expand(
                [
                    "{OUTDIR}/{project}/AMR/{input_file}_AMR_MGE_prediction_detailed.tsv",
                    "{OUTDIR}/{project}/Toxin_gene_library_{input_file}_report.tsv",
                    "{OUTDIR}/{project}/PathoFact_{input_file}_predictions.csv"
                ],
                OUTDIR=config["OUTDIR"], project=config["project"], input_file=config["input_file"]
            )
16
elif config["workflow"] == "Tox":
17
18
19
20
21
22
23
24
25
26
27
    include:
        "workflows/Toxin_workflow"
    rule all:
        input:
            expand(
                [
                    "{OUTDIR}/{project}/Toxin_prediction_{input_file}_report.csv",
                    "{OUTDIR}/{project}/Toxin_gene_library_{input_file}_report.tsv"
                ],
                OUTDIR=config["OUTDIR"], project=config["project"], input_file=config["input_file"]
            )
28
elif config["workflow"] == "Vir":
29
30
31
32
33
34
35
36
    include:
        "workflows/Virulence_workflow"
    rule all:
        input:
            expand(
                "{OUTDIR}/{project}/Virulence_prediction_{input_file}_report.csv",
                OUTDIR=config["OUTDIR"], project=config["project"], input_file=config["input_file"]
            )                    
37
elif config["workflow"] == "AMR":
38
39
40
41
42
43
44
45
46
47
48
    include:
        "workflows/AMR_workflow"
    rule all:
        input:
            expand(
                [
                    "{OUTDIR}/{project}/AMR_MGE_prediction_{input_file}_report.tsv",
                    "{OUTDIR}/{project}/AMR/{input_file}_AMR_MGE_prediction_detailed.tsv"
                ],
                OUTDIR=config["OUTDIR"], project=config["project"], input_file=config["input_file"]
            )
Laura Denies's avatar
Laura Denies committed
49
else:
50
    raise Exception("Unknown workflow option: %s" % config["workflow"])