Преглед на файлове

Alter: tumor-only

master
YaqingLiu преди 3 години
родител
ревизия
dbce0e5ce4
променени са 3 файла, в които са добавени 45 реда и са изтрити 29 реда
  1. +17
    -7
      tasks/TNscope.wdl
  2. +24
    -18
      tasks/TNseq.wdl
  3. +4
    -4
      workflow.wdl

+ 17
- 7
tasks/TNscope.wdl Целия файл

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

+ 24
- 18
tasks/TNseq.wdl Целия файл

String SENTIEON_LICENSE String SENTIEON_LICENSE
File tumor_recaled_bam File tumor_recaled_bam
File tumor_recaled_bam_index File tumor_recaled_bam_index
File normal_recaled_bam
File normal_recaled_bam_index
File? normal_recaled_bam
File? normal_recaled_bam_index
String tumor_name String tumor_name
String normal_name String normal_name


PON="" PON=""
fi fi


${SENTIEON_INSTALL_DIR}/bin/sentieon driver -t $nt \
-r ${ref_dir}/${fasta} $INTERVAL \
-i ${tumor_recaled_bam} -i ${normal_recaled_bam} \
--algo TNhaplotyper2 \
--tumor_sample ${tumor_name} --normal_sample ${normal_name} \
if [ ${normal_recaled_bam} ]; then
INPUT="-i ${tumor_recaled_bam} -i ${normal_recaled_bam}"
SAMPLE="--tumor_sample ${tumor_name} --normal_sample ${normal_name}"
typ="TN"
else
INPUT="-i ${tumor_recaled_bam}"
SAMPLE="--tumor_sample ${tumor_name}"
typ="T"
fi

${SENTIEON_INSTALL_DIR}/bin/sentieon driver -t $nt -r ${ref_dir}/${fasta} \
$INPUT $INTERVAL \
--algo TNhaplotyper2 $SAMPLE\
--germline_vcf ${germline_resource} \ --germline_vcf ${germline_resource} \
$PON \ $PON \
${sample}.TNseq.TN.tmp.vcf \
${sample}.TNseq.$typ.vcf \
--algo OrientationBias --tumor_sample ${tumor_name} \ --algo OrientationBias --tumor_sample ${tumor_name} \
${sample}.orientation \ ${sample}.orientation \
--algo ContaminationModel \
--tumor_sample ${tumor_name} --normal_sample ${normal_name} \
--algo ContaminationModel $SAMPLE \
--vcf ${germline_resource} \ --vcf ${germline_resource} \
--tumor_segments ${sample}.contamination.segments \ --tumor_segments ${sample}.contamination.segments \
${sample}.contamination ${sample}.contamination
${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 \
--tumor_sample ${tumor_name} --normal_sample ${normal_name} \
-v ${sample}.TNseq.TN.tmp.vcf \
--algo TNfilter $SAMPLE \
-v ${sample}.TNseq.$typ.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.TN.vcf
${sample}.TNseq.$typ.filter.vcf
>>> >>>


runtime { runtime {
} }


output { output {
File TNseq_vcf = "${sample}.TNseq.TN.vcf"
File TNseq_vcf_index = "${sample}.TNseq.TN.vcf.idx"
File TNseq_tmp_vcf = "${sample}.TNseq.TN.tmp.vcf"
File TNseq_tmp_vcf_index = "${sample}.TNseq.TN.tmp.vcf.idx"
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 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"

+ 4
- 4
workflow.wdl Целия файл

if (annovar) { if (annovar) {
call ANNOVAR.ANNOVAR as TNseq_annovar { call ANNOVAR.ANNOVAR as TNseq_annovar {
input: input:
vcf=TNseq.TNseq_vcf,
vcf=TNseq.TNseq_filter_vcf,
hg=hg, hg=hg,
only_pass=only_pass, only_pass=only_pass,
annovar_database=annovar_database, annovar_database=annovar_database,
if (vep) { if (vep) {
call VEP.VEP as TNseq_VEP { call VEP.VEP as TNseq_VEP {
input: input:
vcf=TNseq.TNseq_vcf,
vcf=TNseq.TNseq_filter_vcf,
hg=hg, hg=hg,
only_pass=only_pass, only_pass=only_pass,
sample_id=sample_id, sample_id=sample_id,
if (annovar) { if (annovar) {
call ANNOVAR.ANNOVAR as TNseq_annovar_fb { call ANNOVAR.ANNOVAR as TNseq_annovar_fb {
input: input:
vcf=TNseq_fb.TNseq_vcf,
vcf=TNseq_fb.TNseq_filter_vcf,
hg=hg, hg=hg,
only_pass=only_pass, only_pass=only_pass,
annovar_database=annovar_database, annovar_database=annovar_database,
if (vep) { if (vep) {
call VEP.VEP as TNseq_VEP_fb { call VEP.VEP as TNseq_VEP_fb {
input: input:
vcf=TNseq_fb.TNseq_vcf,
vcf=TNseq_fb.TNseq_filter_vcf,
hg=hg, hg=hg,
only_pass=only_pass, only_pass=only_pass,
sample_id=sample_id, sample_id=sample_id,

Loading…
Отказ
Запис