@@ -8,18 +8,18 @@ rule annotate_candidate_variants:
88 output :
99 calls = "results/candidate-calls/{caller}/{group}/{group}.{scatteritem}.annotated.bcf" ,
1010 stats = "results/candidate-calls/{caller}/{group}/{group}.{scatteritem}.stats.html" ,
11- params :
12- plugins = config ["annotations" ]["vep" ]["candidate_calls" ]["plugins" ],
13- extra = "{} --vcf_info_field ANN " .format (
14- config ["annotations" ]["vep" ]["candidate_calls" ]["params" ]
15- ),
1611 log :
1712 "logs/vep/{caller}/{group}/{group}.{scatteritem}.annotate_candidates.log" ,
1813 benchmark :
1914 "benchmarks/vep/{caller}/{group}/{group}.{scatteritem}.annotate_candidates.tsv"
20- threads : 4
2115 group :
2216 "candidate-annotation"
17+ threads : 4
18+ params :
19+ plugins = config ["annotations" ]["vep" ]["candidate_calls" ]["plugins" ],
20+ extra = "{} --vcf_info_field ANN " .format (
21+ config ["annotations" ]["vep" ]["candidate_calls" ]["params" ]
22+ ),
2323 wrapper :
2424 "v8.0.0/bio/vep/annotate"
2525
@@ -44,6 +44,11 @@ rule annotate_variants:
4444 output :
4545 calls = "results/calls/vep_annotated/{group}/{group}.{calling_type}.{scatteritem}.bcf" ,
4646 stats = "results/calls/vep_annotated/{group}/{group}.{calling_type}.{scatteritem}.stats.html" ,
47+ log :
48+ "logs/vep/{group}.{calling_type}.{scatteritem}.annotate.log" ,
49+ group :
50+ "annotation"
51+ threads : 4
4752 params :
4853 # Pass a list of plugins to use, see https://www.ensembl.org/info/docs/tools/vep/script/vep_plugins.html
4954 # Plugin args can be added as well, e.g. via an entry "MyPlugin,1,FOO", see docs.
@@ -57,11 +62,6 @@ rule annotate_variants:
5762 extra = "{} --vcf_info_field ANN --hgvsg" .format (
5863 config ["annotations" ]["vep" ]["final_calls" ]["params" ]
5964 ),
60- log :
61- "logs/vep/{group}.{calling_type}.{scatteritem}.annotate.log" ,
62- threads : 4
63- group :
64- "annotation"
6565 wrapper :
6666 "v8.0.0/bio/vep/annotate"
6767
@@ -76,13 +76,13 @@ rule annotate_vcfs:
7676 "results/calls/db_annotated/{prefix}.bcf" ,
7777 log :
7878 "logs/annotate-vcfs/{prefix}.log" ,
79- params :
80- pipes = get_annotation_pipes ,
79+ group :
80+ "annotation"
8181 conda :
8282 "../envs/snpsift.yaml"
8383 threads : 4
84- group :
85- "annotation"
84+ params :
85+ pipes = get_annotation_pipes ,
8686 shell :
8787 "(bcftools view --threads {threads} {input.bcf} {params.pipes} | "
8888 "bcftools view --threads {threads} -Ob > {output}) 2> {log}"
@@ -91,18 +91,18 @@ rule annotate_vcfs:
9191rule annotate_dgidb :
9292 input :
9393 get_annotate_dgidb_input ,
94- params :
95- datasources = get_dgidb_datasources (),
9694 output :
9795 "results/calls/dgidb_annotated/{prefix}.bcf" ,
9896 log :
9997 "logs/annotate-dgidb/{prefix}.log" ,
98+ group :
99+ "annotation"
100100 conda :
101101 "../envs/rbt.yaml"
102102 resources :
103103 dgidb_requests = 1 ,
104- group :
105- "annotation"
104+ params :
105+ datasources = get_dgidb_datasources (),
106106 shell :
107107 "rbt vcf-annotate-dgidb {input} {params.datasources} > {output} 2> {log}"
108108
@@ -123,9 +123,9 @@ rule gather_annotated_calls:
123123 "results/final-calls/{group}/{group}.{calling_type}.annotated.bcf" ,
124124 log :
125125 "logs/gather-annotated-calls/{group}/{group}.{calling_type}.log" ,
126- params :
127- extra = "-a" ,
128126 group :
129127 "annotation"
128+ params :
129+ extra = "-a" ,
130130 wrapper :
131131 "v2.3.2/bio/bcftools/concat"
0 commit comments