AMR_workflow.snk 990 Bytes
Newer Older
Laura Denies's avatar
Laura Denies committed
1
2
# include rules for the Analysis part of the workflow
include:
3
    '../rules/Universal/Preprocessing'
Laura Denies's avatar
Laura Denies committed
4
include:
5
    '../rules/Universal/Preprocessing_contig'
Laura Denies's avatar
Laura Denies committed
6
include:
7
    '../rules/AMR/AMR'
Laura Denies's avatar
Laura Denies committed
8
include:
9
    '../rules/AMR/Plasmid'
Laura Denies's avatar
Laura Denies committed
10
include:
11
    '../rules/AMR/Phage'
Laura Denies's avatar
Laura Denies committed
12
include:
13
    '../rules/AMR/Combine_MGE_AMR'
Laura Denies's avatar
Laura Denies committed
14
15
16

# master command
rule AMR_Analysis:
17
18
19
20
21
22
23
24
25
26
27
28
29
    input: 
        expand(
            [
                "{OUTDIR}/{project}/MGE/phage/{input_file}_VIRSorter_aggregated.csv",
                "{OUTDIR}/{project}/MGE/phage/{input_file}_VirFinder_aggregated.csv",
                "{OUTDIR}/{project}/MGE/plasmid/{input_file}_plasflow_prediction_final.tsv", 
                "{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"]
        )
    output:
        touch('AMR_analyis.done')