String dbsnp | String dbsnp | ||||
String disk_size | String disk_size | ||||
String set_pon | |||||
Boolean set_pon | |||||
String? cosmic_vcf | String? cosmic_vcf | ||||
File? cosmic_dir | File? cosmic_dir | ||||
File? pon_vcf | File? pon_vcf | ||||
String pon_command = if (set_pon == "true") then "--pon /cromwell_root/tmp/PON/$(basename ${pon_vcf}) --cosmic /cromwell_root/tmp/PON/${cosmic_vcf}" else "" | |||||
String pon_command = if set_pon then "--pon /cromwell_root/tmp/PON/$(basename ${pon_vcf}) --cosmic /cromwell_root/tmp/PON/${cosmic_vcf}" else "" | |||||
Boolean TN = if defined(corealigner_bam) then true else false | Boolean TN = if defined(corealigner_bam) then true else false | ||||
command <<< | command <<< |
String dbsnp | String dbsnp | ||||
String disk_size | String disk_size | ||||
String set_pon | |||||
Boolean set_pon | |||||
String? cosmic_vcf | String? cosmic_vcf | ||||
File? cosmic_dir | File? cosmic_dir | ||||
File? pon_vcf | File? pon_vcf | ||||
String pon_command = if (set_pon == "true") then "--pon /cromwell_root/tmp/PON/$(basename ${pon_vcf}) --cosmic /cromwell_root/tmp/PON/${cosmic_vcf}" else "" | |||||
String pon_command = if set_pon then "--pon /cromwell_root/tmp/PON/$(basename ${pon_vcf}) --cosmic /cromwell_root/tmp/PON/${cosmic_vcf}" else "" | |||||
Boolean TN = if defined(corealigner_bam) then true else false | Boolean TN = if defined(corealigner_bam) then true else false | ||||
command <<< | command <<< |
String docker | String docker | ||||
String cluster_config | String cluster_config | ||||
String disk_size | String disk_size | ||||
String set_pon | |||||
Boolean set_pon | |||||
command <<< | command <<< | ||||
set -o pipefail | set -o pipefail | ||||
set -e | set -e | ||||
if [ ${set_pon} == "true" ] ; then | |||||
if ${set_pon} ; then | |||||
mkdir -p /cromwell_root/tmp/bcftools/ | mkdir -p /cromwell_root/tmp/bcftools/ | ||||
for i in ${sep=" " pon_vcf} | for i in ${sep=" " pon_vcf} | ||||
do | do |
String disk_size | String disk_size | ||||
String cluster_config | String cluster_config | ||||
String set_pon | |||||
Boolean set_pon | |||||
File? pon_vcf | File? pon_vcf | ||||
File? cosmic_dir | File? cosmic_dir | ||||
String? cosmic_vcf | String? cosmic_vcf | ||||
String set_annovar | |||||
Boolean set_annovar | |||||
File? database | File? database | ||||
String set_vcf2maf | |||||
String germline | |||||
Boolean set_vcf2maf | |||||
Boolean germline | |||||
call mapping.mapping as mapping { | call mapping.mapping as mapping { | ||||
cluster_config=cluster_config | cluster_config=cluster_config | ||||
} | } | ||||
if (set_pon == "true" && type == "normal") { | |||||
if (set_pon && type == "normal") { | |||||
call PON.PON as PON { | call PON.PON as PON { | ||||
input: | input: | ||||
SENTIEON_INSTALL_DIR=SENTIEON_INSTALL_DIR, | SENTIEON_INSTALL_DIR=SENTIEON_INSTALL_DIR, | ||||
} | } | ||||
} | } | ||||
if (germline == "true") { | |||||
if (germline) { | |||||
call Haplotyper.Haplotyper as Haplotyper { | call Haplotyper.Haplotyper as Haplotyper { | ||||
input: | input: | ||||
SENTIEON_INSTALL_DIR=SENTIEON_INSTALL_DIR, | SENTIEON_INSTALL_DIR=SENTIEON_INSTALL_DIR, | ||||
} | } | ||||
} | } | ||||
if (set_annovar == "true" && defined(TNscope.TNscope_vcf) && defined(TNseq.TNseq_vcf)){ | |||||
if (set_annovar && defined(TNscope.TNscope_vcf) && defined(TNseq.TNseq_vcf)){ | |||||
call annovar.annovar as annovar { | call annovar.annovar as annovar { | ||||
input: | input: | ||||
docker=annovar_docker, | docker=annovar_docker, | ||||
disk_size=disk_size | disk_size=disk_size | ||||
} | } | ||||
if (set_vcf2maf == "true"){ | |||||
if (set_vcf2maf){ | |||||
call vcf2maf.vcf2maf as vcf2maf { | call vcf2maf.vcf2maf as vcf2maf { | ||||
input: | input: | ||||
docker=maftools_docker, | docker=maftools_docker, |