Browse Source

更新 'tasks/CNVkit.wdl'

master
meng 2 years ago
parent
commit
61b5b3b1db
1 changed files with 6 additions and 2 deletions
  1. +6
    -2
      tasks/CNVkit.wdl

+ 6
- 2
tasks/CNVkit.wdl View File

String? fasta String? fasta
File ref_flat File ref_flat
File bed_file File bed_file
String method
File hrd File hrd
File tumor_bam File tumor_bam
File tumor_bam_index File tumor_bam_index
echo ${sample} echo ${sample}
PURITY=`awk -F'\t' '{print $6}' ${hrd} | sed -n '2p'` PURITY=`awk -F'\t' '{print $6}' ${hrd} | sed -n '2p'`
echo $PURITY
center=`awk -v vv=$PURITY 'BEGIN {print log(2/vv)/log(2)}'` center=`awk -v vv=$PURITY 'BEGIN {print log(2/vv)/log(2)}'`
if [ ${normal_bam} ]; then if [ ${normal_bam} ]; then
/root/miniconda2/bin/cnvkit.py batch ${tumor_bam} \ /root/miniconda2/bin/cnvkit.py batch ${tumor_bam} \
--normal ${normal_bam} \ --normal ${normal_bam} \
--method wgs \
--method ${method} \
--fasta ${ref_dir} \ --fasta ${ref_dir} \
--annotate ${ref_flat} -p $nt \ --annotate ${ref_flat} -p $nt \
--drop-low-coverage \ --drop-low-coverage \
# Prepare the target bed # Prepare the target bed
#/root/miniconda2/bin/cnvkit.py --annotate ${ref_flat} --split --short-names -o my_baits.bed #/root/miniconda2/bin/cnvkit.py --annotate ${ref_flat} --split --short-names -o my_baits.bed
/root/miniconda2/bin/cnvkit.py autobin ${tumor_bam} --method wgs -g access.bed
/root/miniconda2/bin/cnvkit.py autobin ${tumor_bam} --method ${method} -g access.bed
/root/miniconda2/bin/cnvkit.py coverage ${tumor_bam} ${sample}.target.bed -o ${sample}.T.targetcoverage.cnn /root/miniconda2/bin/cnvkit.py coverage ${tumor_bam} ${sample}.target.bed -o ${sample}.T.targetcoverage.cnn
/root/miniconda2/bin/cnvkit.py coverage ${tumor_bam} ${sample}.antitarget.bed -o ${sample}.T.antitargetcoverage.cnn /root/miniconda2/bin/cnvkit.py coverage ${tumor_bam} ${sample}.antitarget.bed -o ${sample}.T.antitargetcoverage.cnn

Loading…
Cancel
Save