File ref_dir | File ref_dir | ||||
File dbsnp_dir | File dbsnp_dir | ||||
File regions | |||||
String sample | String sample | ||||
String SENTIEON_INSTALL_DIR | String SENTIEON_INSTALL_DIR | ||||
String SENTIEON_LICENSE | String SENTIEON_LICENSE | ||||
String tumor_name | String tumor_name | ||||
fi | fi | ||||
if ${TN}; then | if ${TN}; then | ||||
${SENTIEON_INSTALL_DIR}/bin/sentieon driver -t $nt -r ${ref_dir}/${fasta} -i ${corealigner_bam} --algo TNscope --tumor_sample ${tumor_name} --normal_sample ${normal_name} --dbsnp ${dbsnp_dir}/${dbsnp} ${pon_command} ${sample}.TNscope.TN.vcf | |||||
${SENTIEON_INSTALL_DIR}/bin/sentieon driver -t $nt --interval ${regions} -r ${ref_dir}/${fasta} -i ${corealigner_bam} --algo TNscope --tumor_sample ${tumor_name} --normal_sample ${normal_name} --dbsnp ${dbsnp_dir}/${dbsnp} ${pon_command} ${sample}.TNscope.TN.vcf | |||||
else | else | ||||
${SENTIEON_INSTALL_DIR}/bin/sentieon driver -t $nt -r ${ref_dir}/${fasta} -i ${tumor_recaled_bam} --algo TNscope --tumor_sample ${tumor_name} --dbsnp ${dbsnp_dir}/${dbsnp} ${pon_command} ${sample}.TNscope.TN.vcf | |||||
${SENTIEON_INSTALL_DIR}/bin/sentieon driver -t $nt --interval ${regions} -r ${ref_dir}/${fasta} -i ${tumor_recaled_bam} --algo TNscope --tumor_sample ${tumor_name} --dbsnp ${dbsnp_dir}/${dbsnp} ${pon_command} ${sample}.TNscope.TN.vcf | |||||
fi | fi | ||||
>>> | >>> |
task TNseq { | task TNseq { | ||||
File ref_dir | File ref_dir | ||||
File dbsnp_dir | File dbsnp_dir | ||||
File regions | |||||
String sample | String sample | ||||
String SENTIEON_INSTALL_DIR | String SENTIEON_INSTALL_DIR | ||||
String SENTIEON_LICENSE | String SENTIEON_LICENSE | ||||
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 --interval ${regions} -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 | ||||
${SENTIEON_INSTALL_DIR}/bin/sentieon driver -t $nt -r ${ref_dir}/${fasta} -i ${tumor_recaled_bam} --algo TNhaplotyper --tumor_sample ${tumor_name} --dbsnp ${dbsnp_dir}/${dbsnp} ${pon_command} ${sample}.TNseq.TN.vcf | |||||
${SENTIEON_INSTALL_DIR}/bin/sentieon driver -t $nt --interval ${regions} -r ${ref_dir}/${fasta} -i ${tumor_recaled_bam} --algo TNhaplotyper --tumor_sample ${tumor_name} --dbsnp ${dbsnp_dir}/${dbsnp} ${pon_command} ${sample}.TNseq.TN.vcf | |||||
fi | fi | ||||
>>> | >>> | ||||
} | } | ||||
output { | output { | ||||
File avinput_TNscope = "${sample}_TNscope.avinput" | |||||
File multianno_TNscope_txt = "${sample}_TNscope.hg38_multianno.txt" | |||||
File multianno_TNscope_vcf = "${sample}_TNscope.hg38_multianno.vcf" | |||||
File avinput_TNseq = "${sample}_TNseq.avinput" | |||||
File multianno_TNseq_txt = "${sample}_TNseq.hg38_multianno.txt" | |||||
File multianno_TNseq_vcf = "${sample}_TNseq.hg38_multianno.vcf" | |||||
File avinput_TNscope = "${sample}.TNscope.avinput" | |||||
File multianno_TNscope_txt = "${sample}.TNscope.hg38_multianno.txt" | |||||
File multianno_TNscope_vcf = "${sample}.TNscope.hg38_multianno.vcf" | |||||
File avinput_TNseq = "${sample}.TNseq.avinput" | |||||
File multianno_TNseq_txt = "${sample}.TNseq.hg38_multianno.txt" | |||||
File multianno_TNseq_vcf = "${sample}.TNseq.hg38_multianno.vcf" | |||||
} | } | ||||
} | } |
String disk_size | String disk_size | ||||
command <<< | command <<< | ||||
vcf2maf ${multianno_TNscope_txt} ${sample}_TNscope.MAF | |||||
vcf2maf ${multianno_TNseq_txt} ${sample}_TNseq.MAF | |||||
vcf2maf ${multianno_TNscope_txt} ${sample}.TNscope.MAF | |||||
vcf2maf ${multianno_TNseq_txt} ${sample}.TNseq.MAF | |||||
awk -F '\t' '{if(($1=="Tumor_Sample_Barcode")||($1~"^${sample}" && $180=="PASS")){print $0}}' ${sample}.TNscope.MAF > ${sample}.TNscope.PASS.MAF | |||||
awk -F '\t' '{if(($1=="Tumor_Sample_Barcode")||($1~"^${sample}" && $180=="PASS")){print $0}}' ${sample}.TNseq.MAF > ${sample}.TNseq.PASS.MAF | |||||
>>> | >>> | ||||
runtime { | runtime { | ||||
} | } | ||||
output { | output { | ||||
File tnscope_maf = "${sample}_TNscope.MAF" | |||||
File tnseq_maf = "${sample}_TNseq.MAF" | |||||
File tnscope_maf = "${sample}.TNscope.MAF" | |||||
File tnseq_maf = "${sample}.TNseq.MAF" | |||||
File tnscope_pass_maf = "${sample}.TNscope.PASS.MAF" | |||||
File tnseq_pass_maf = "${sample}.TNseq.PASS.MAF" | |||||
} | } | ||||
} | } |
SENTIEON_LICENSE=SENTIEON_LICENSE, | SENTIEON_LICENSE=SENTIEON_LICENSE, | ||||
fasta=fasta, | fasta=fasta, | ||||
ref_dir=ref_dir, | ref_dir=ref_dir, | ||||
regions=regions, | |||||
corealigner_bam=corealigner.corealigner_bam, | corealigner_bam=corealigner.corealigner_bam, | ||||
corealigner_bam_index=corealigner.corealigner_bam_index, | corealigner_bam_index=corealigner.corealigner_bam_index, | ||||
tumor_recaled_bam=BQSR.recaled_bam, | tumor_recaled_bam=BQSR.recaled_bam, | ||||
SENTIEON_LICENSE=SENTIEON_LICENSE, | SENTIEON_LICENSE=SENTIEON_LICENSE, | ||||
fasta=fasta, | fasta=fasta, | ||||
ref_dir=ref_dir, | ref_dir=ref_dir, | ||||
regions=regions, | |||||
corealigner_bam=corealigner.corealigner_bam, | corealigner_bam=corealigner.corealigner_bam, | ||||
corealigner_bam_index=corealigner.corealigner_bam_index, | corealigner_bam_index=corealigner.corealigner_bam_index, | ||||
tumor_recaled_bam=BQSR.recaled_bam, | tumor_recaled_bam=BQSR.recaled_bam, |