"cluster_config": "OnDemand bcs.a2.3xlarge img-ubuntu-vpc", | "cluster_config": "OnDemand bcs.a2.3xlarge img-ubuntu-vpc", | ||||
"set_annovar": "true", | "set_annovar": "true", | ||||
"set_vcf2maf": "true", | "set_vcf2maf": "true", | ||||
"germline": "false" | |||||
"germline": "false", | |||||
"TN": "true" | |||||
} | } |
{ | { | ||||
"{{ project_name }}.sample_id": "{{ sample_id }}", | "{{ project_name }}.sample_id": "{{ sample_id }}", | ||||
"{{ project_name }}.TN": {{ TN }}, | |||||
"{{ project_name }}.fastq_1": "{{ fastq_1 }}", | "{{ project_name }}.fastq_1": "{{ fastq_1 }}", | ||||
"{{ project_name }}.fastq_2": "{{ fastq_2 }}", | "{{ project_name }}.fastq_2": "{{ fastq_2 }}", | ||||
"{{ project_name }}.normal_recaled_bam": "{{ normal_recaled_bam }}", | "{{ project_name }}.normal_recaled_bam": "{{ normal_recaled_bam }}", |
String dbsnp | String dbsnp | ||||
String disk_size | String disk_size | ||||
Boolean TN | |||||
Boolean 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 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 | |||||
command <<< | command <<< | ||||
set -o pipefail | set -o pipefail | ||||
set -e | set -e | ||||
export SENTIEON_LICENSE=${SENTIEON_LICENSE} | export SENTIEON_LICENSE=${SENTIEON_LICENSE} | ||||
nt=$(nproc) | nt=$(nproc) | ||||
if ${set_pon}; then | if ${set_pon}; then | ||||
mkdir -p /cromwell_root/tmp/PON/ | mkdir -p /cromwell_root/tmp/PON/ | ||||
cp ${cosmic_dir}/${cosmic_vcf} /cromwell_root/tmp/PON/ | cp ${cosmic_dir}/${cosmic_vcf} /cromwell_root/tmp/PON/ |
File tumor_recaled_bam_index | File tumor_recaled_bam_index | ||||
String dbsnp | String dbsnp | ||||
String disk_size | String disk_size | ||||
Boolean TN | |||||
Boolean 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 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 | |||||
command <<< | command <<< | ||||
set -o pipefail | set -o pipefail | ||||
${SENTIEON_INSTALL_DIR}/bin/sentieon util vcfindex /cromwell_root/tmp/PON/${cosmic_vcf} | ${SENTIEON_INSTALL_DIR}/bin/sentieon util vcfindex /cromwell_root/tmp/PON/${cosmic_vcf} | ||||
${SENTIEON_INSTALL_DIR}/bin/sentieon util vcfindex /cromwell_root/tmp/PON/$(basename ${pon_vcf}) | ${SENTIEON_INSTALL_DIR}/bin/sentieon util vcfindex /cromwell_root/tmp/PON/$(basename ${pon_vcf}) | ||||
fi | fi | ||||
if ${TN}; then | if ${TN}; then | ||||
${SENTIEON_INSTALL_DIR}/bin/sentieon driver -t $nt -r ${ref_dir}/${fasta} -i ${corealigner_bam} --algo TNhaplotyper --tumor_sample ${tumor_name} --normal_sample ${normal_name} --dbsnp ${dbsnp_dir}/${dbsnp} ${pon_command} ${sample}.TNseq.TN.vcf | ${SENTIEON_INSTALL_DIR}/bin/sentieon driver -t $nt -r ${ref_dir}/${fasta} -i ${corealigner_bam} --algo TNhaplotyper --tumor_sample ${tumor_name} --normal_sample ${normal_name} --dbsnp ${dbsnp_dir}/${dbsnp} ${pon_command} ${sample}.TNseq.TN.vcf | ||||
else | else |
workflow {{ project_name }} { | workflow {{ project_name }} { | ||||
String sample_id | String sample_id | ||||
Boolean TN | |||||
File fastq_1 | File fastq_1 | ||||
File fastq_2 | File fastq_2 | ||||
File? normal_recaled_bam | File? normal_recaled_bam | ||||
} | } | ||||
} | } | ||||
if (type == "tumor" && defined(normal_recaled_bam)) { | |||||
if (type == "tumor" && TN) { | |||||
call corealigner.corealigner as corealigner { | call corealigner.corealigner as corealigner { | ||||
input: | input: | ||||
SENTIEON_INSTALL_DIR=SENTIEON_INSTALL_DIR, | SENTIEON_INSTALL_DIR=SENTIEON_INSTALL_DIR, | ||||
} | } | ||||
} | } | ||||
if (set_annovar && defined(TNscope.TNscope_vcf) && defined(TNseq.TNseq_vcf)){ | |||||
if (set_annovar){ | |||||
call annovar.annovar as annovar { | call annovar.annovar as annovar { | ||||
input: | input: | ||||
docker=annovar_docker, | docker=annovar_docker, |