Browse Source

Fixbug: vcf2vcf parameter

master
YaqingLiu 3 years ago
parent
commit
78c1bc8c50
1 changed files with 6 additions and 4 deletions
  1. +6
    -4
      tasks/VEP.wdl

+ 6
- 4
tasks/VEP.wdl View File

@@ -29,9 +29,11 @@ task VEP {
# Judge the SAMPLE info of vcf file
ncol=`awk -F'\t' '{if($1!~"^#"){print NF}}' ${sample_id}.vcf | uniq`
if [ $ncol -lt 11 ]; then
SAMPLE="--tumor-id ${tumor_id} --normal-id ${normal_id}"
SAMPLE_vcf2maf="--tumor-id ${tumor_id} --normal-id ${normal_id}"
SAMPLE_vcf2vcf="--vcf-tumor-id ${tumor_id} --vcf-normal-id ${normal_id}"
else
SAMPLE="--tumor-id ${sample_id}"
SAMPLE_vcf2maf="--tumor-id ${sample_id}"
SAMPLE_vcf2vcf="--vcf-tumor-id ${sample_id}"
fi

# Set the buffer_size based on the data size
@@ -75,7 +77,7 @@ task VEP {
# vcf2vcf: transfer into a standardized format
perl ${vcf2maf_path}/vcf2vcf.pl \
--input-vcf ${sample_id}.vcf --output-vcf ${basename}.norm.vcf \
$SAMPLE \
$SAMPLE_vcf2vcf \
--ref-fasta ${ref_dir}/${fasta}

# VEP annotation
@@ -93,7 +95,7 @@ task VEP {
perl ${vcf2maf_path}/vcf2maf.pl \
--inhibit-vep \
--input-vcf ${basename}.vep.vcf --output-maf ${basename}.maf \
$SAMPLE \
$SAMPLE_vcf2maf \
--ref-fasta ${ref_dir}/${fasta} \
--ncbi-build ${ncbi_build} \
--species ${species} \

Loading…
Cancel
Save