@@ -45,7 +45,7 @@ workflow CNVSomaticPairWorkflow {
4545 #### optional basic arguments ####
4646 ##################################
4747 # For running oncotator
48- Boolean is_run_oncotator = false
48+ Boolean ? is_run_oncotator
4949 File ? gatk4_jar_override
5050 Int ? preemptible_attempts
5151 # Use as a last resort to increase the disk given to every task in case of ill behaving data
@@ -111,8 +111,12 @@ workflow CNVSomaticPairWorkflow {
111111 #########################################
112112 Int ? minimum_contig_length
113113
114- # Ignored if not running oncotator
115- String oncotator_docker = "broadinstitute/oncotator:1.9.5.0-eval-gatk-protected"
114+ ##########################################
115+ #### optional arguments for Oncotator ####
116+ ##########################################
117+ String ? additional_args_for_oncotator
118+ String ? oncotator_docker
119+ Int ? mem_gb_for_oncotator
116120
117121 Int ref_size = ceil (size (ref_fasta , "GB" ) + size (ref_fasta_dict , "GB" ) + size (ref_fasta_fai , "GB" ))
118122 Int read_count_pon_size = ceil (size (read_count_pon , "GB" ))
@@ -382,11 +386,11 @@ workflow CNVSomaticPairWorkflow {
382386 preemptible_attempts = preemptible_attempts
383387 }
384388
385- if (is_run_oncotator ) {
389+ if (select_first ([ is_run_oncotator , false ]) ) {
386390 call CNVOncotator .CNVOncotatorWorkflow as CNVOncotatorWorkflow {
387391 input :
388392 called_file = CallCopyRatioSegmentsTumor .called_copy_ratio_segments ,
389- additional_args = additional_args ,
393+ additional_args = additional_args_for_oncotator ,
390394 oncotator_docker = oncotator_docker ,
391395 mem_gb_for_oncotator = mem_gb_for_oncotator ,
392396 preemptible_attempts = preemptible_attempts
0 commit comments