Browse Source

Fixbug: remove

master
YaqingLiu 3 years ago
parent
commit
fe311d4483
2 changed files with 10 additions and 14 deletions
  1. +3
    -5
      tasks/TNscope.wdl
  2. +7
    -9
      tasks/TNseq.wdl

+ 3
- 5
tasks/TNscope.wdl View File

if [ ${normal_recaled_bam} ]; then if [ ${normal_recaled_bam} ]; then
INPUT="-i ${tumor_recaled_bam} -i ${normal_recaled_bam}" INPUT="-i ${tumor_recaled_bam} -i ${normal_recaled_bam}"
SAMPLE="--tumor_sample ${tumor_name} --normal_sample ${normal_name}" SAMPLE="--tumor_sample ${tumor_name} --normal_sample ${normal_name}"
typ="TN"
else else
INPUT="-i ${tumor_recaled_bam}" INPUT="-i ${tumor_recaled_bam}"
SAMPLE="--tumor_sample ${tumor_name}" SAMPLE="--tumor_sample ${tumor_name}"
typ="T"
fi fi
${SENTIEON_INSTALL_DIR}/bin/sentieon driver -t $nt -r ${ref_dir}/${fasta} \ ${SENTIEON_INSTALL_DIR}/bin/sentieon driver -t $nt -r ${ref_dir}/${fasta} \
$SAMPLE \ $SAMPLE \
--dbsnp ${dbsnp_dir}/${dbsnp} \ --dbsnp ${dbsnp_dir}/${dbsnp} \
$PON \ $PON \
${sample}.TNscope.$typ.vcf
${sample}.TNscope.vcf
>>> >>>
runtime { runtime {
} }
output { output {
File TNscope_vcf= "${sample}.TNscope.$typ.vcf"
File TNscope_vcf_index = "${sample}.TNscope.$typ.vcf.idx"
File TNscope_vcf= "${sample}.TNscope.vcf"
File TNscope_vcf_index = "${sample}.TNscope.vcf.idx"
} }
} }

+ 7
- 9
tasks/TNseq.wdl View File

if [ ${normal_recaled_bam} ]; then if [ ${normal_recaled_bam} ]; then
INPUT="-i ${tumor_recaled_bam} -i ${normal_recaled_bam}" INPUT="-i ${tumor_recaled_bam} -i ${normal_recaled_bam}"
SAMPLE="--tumor_sample ${tumor_name} --normal_sample ${normal_name}" SAMPLE="--tumor_sample ${tumor_name} --normal_sample ${normal_name}"
typ="TN"
else else
INPUT="-i ${tumor_recaled_bam}" INPUT="-i ${tumor_recaled_bam}"
SAMPLE="--tumor_sample ${tumor_name}" SAMPLE="--tumor_sample ${tumor_name}"
typ="T"
fi fi


${SENTIEON_INSTALL_DIR}/bin/sentieon driver -t $nt -r ${ref_dir}/${fasta} \ ${SENTIEON_INSTALL_DIR}/bin/sentieon driver -t $nt -r ${ref_dir}/${fasta} \
--algo TNhaplotyper2 $SAMPLE \ --algo TNhaplotyper2 $SAMPLE \
--germline_vcf ${germline_resource} \ --germline_vcf ${germline_resource} \
$PON \ $PON \
${sample}.TNseq.$typ.vcf \
${sample}.TNseq.vcf \
--algo OrientationBias --tumor_sample ${tumor_name} \ --algo OrientationBias --tumor_sample ${tumor_name} \
${sample}.orientation \ ${sample}.orientation \
--algo ContaminationModel $SAMPLE \ --algo ContaminationModel $SAMPLE \
${SENTIEON_INSTALL_DIR}/bin/sentieon driver -t $nt \ ${SENTIEON_INSTALL_DIR}/bin/sentieon driver -t $nt \
-r ${ref_dir}/${fasta} \ -r ${ref_dir}/${fasta} \
--algo TNfilter $SAMPLE \ --algo TNfilter $SAMPLE \
-v ${sample}.TNseq.$typ.vcf \
-v ${sample}.TNseq.vcf \
--contamination ${sample}.contamination \ --contamination ${sample}.contamination \
--tumor_segments ${sample}.contamination.segments \ --tumor_segments ${sample}.contamination.segments \
--orientation_priors ${sample}.orientation \ --orientation_priors ${sample}.orientation \
${sample}.TNseq.$typ.filter.vcf
${sample}.TNseq.filter.vcf
>>> >>>


runtime { runtime {
} }


output { output {
File TNseq_filter_vcf='${sample}.TNseq.$typ.filter.vcf'
File TNseq_filter_vcf_index = "${sample}.TNseq.$typ.filter.vcf.idx"
File TNseq_vcf = "${sample}.TNseq.$typ.vcf"
File TNseq_vcf_index = "${sample}.TNseq.$typ.vcf.idx"
File TNseq_filter_vcf='${sample}.TNseq.filter.vcf'
File TNseq_filter_vcf_index = "${sample}.TNseq.filter.vcf.idx"
File TNseq_vcf = "${sample}.TNseq.vcf"
File TNseq_vcf_index = "${sample}.TNseq.vcf.idx"
File contamination = "${sample}.contamination" File contamination = "${sample}.contamination"
File contamination_segments = "${sample}.contamination.segments" File contamination_segments = "${sample}.contamination.segments"
File orientation = "${sample}.orientation" File orientation = "${sample}.orientation"

Loading…
Cancel
Save