@@ -63,16 +63,17 @@ rule call_variants:
6363 else temp ("calling/called/{sample}-{contig}.g.vcf.gz.tbi" )
6464 ),
6565 done = touch ("calling/called/{sample}-{contig}.g.vcf.gz.done" ),
66- log :
67- "logs/calling/gatk-haplotypecaller/{sample}-{contig}.log" ,
68- benchmark :
69- "benchmarks/calling/gatk-haplotypecaller/{sample}-{contig}.log"
7066 params :
7167 # The intervals param here is where the contig variable is propagated to haplotypecaller.
7268 # Contigs are used as long as no restrict-regions are given in the config file.
7369 intervals = get_gatk_intervals ,
7470 extra = config ["params" ]["gatk" ].get ("HaplotypeCaller-extra" , "" ),
7571 java_opts = config ["params" ]["gatk" ].get ("HaplotypeCaller-java-opts" , "" ),
72+ threads : get_rule_threads ("call_variants" )
73+ log :
74+ "logs/calling/gatk-haplotypecaller/{sample}-{contig}.log" ,
75+ benchmark :
76+ "benchmarks/calling/gatk-haplotypecaller/{sample}-{contig}.log"
7677 group :
7778 "call_variants"
7879 conda :
@@ -142,10 +143,6 @@ rule genomics_db_import:
142143 output :
143144 db = directory ("calling/genomics_db/{contig}" ),
144145 done = touch ("calling/genomics_db/{contig}.done" ),
145- log :
146- "logs/calling/gatk-genomicsdbimport/{contig}.log" ,
147- benchmark :
148- "benchmarks/calling/gatk-genomicsdbimport/{contig}.log"
149146 params :
150147 # Here, we actually use the intervals to provide them to the wrapper.
151148 intervals = get_gatk_intervals ,
@@ -157,6 +154,11 @@ rule genomics_db_import:
157154 + " "
158155 + config ["params" ]["gatk" ].get ("GenomicsDBImport-extra" , "" ),
159156 java_opts = config ["params" ]["gatk" ].get ("GenomicsDBImport-java-opts" , "" ),
157+ threads : get_rule_threads ("genomics_db_import" )
158+ log :
159+ "logs/calling/gatk-genomicsdbimport/{contig}.log" ,
160+ benchmark :
161+ "benchmarks/calling/gatk-genomicsdbimport/{contig}.log"
160162 resources :
161163 tmpdir = config ["params" ]["gatk" ].get ("GenomicsDBImport-temp-dir" , "" ),
162164 conda :
@@ -204,6 +206,7 @@ rule combine_calls:
204206 else ""
205207 ),
206208 java_opts = config ["params" ]["gatk" ]["CombineGVCFs-java-opts" ],
209+ threads : get_rule_threads ("combine_calls" )
207210 log :
208211 "logs/calling/gatk-combine-gvcfs/{contig}.log" ,
209212 benchmark :
@@ -274,6 +277,7 @@ rule genotype_variants:
274277 + " "
275278 + config ["params" ]["gatk" ]["GenotypeGVCFs-extra" ],
276279 java_opts = config ["params" ]["gatk" ]["GenotypeGVCFs-java-opts" ],
280+ threads : get_rule_threads ("genotype_variants" )
277281 log :
278282 "logs/calling/gatk-genotype-gvcfs/{contig}.log" ,
279283 benchmark :
@@ -325,6 +329,7 @@ rule merge_variants:
325329 if platform .system () == "Darwin"
326330 else ""
327331 ),
332+ threads : get_rule_threads ("merge_variants" )
328333 log :
329334 "logs/calling/picard-merge-genotyped.log" ,
330335 benchmark :
0 commit comments