Przeglądaj źródła

Fixbug: vcf2vcf parameter

master
YaqingLiu 3 lat temu
rodzic
commit
78c1bc8c50
1 zmienionych plików z 6 dodań i 4 usunięć
  1. +6
    -4
      tasks/VEP.wdl

+ 6
- 4
tasks/VEP.wdl Wyświetl plik

# Judge the SAMPLE info of vcf file # Judge the SAMPLE info of vcf file
ncol=`awk -F'\t' '{if($1!~"^#"){print NF}}' ${sample_id}.vcf | uniq` ncol=`awk -F'\t' '{if($1!~"^#"){print NF}}' ${sample_id}.vcf | uniq`
if [ $ncol -lt 11 ]; then 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 else
SAMPLE="--tumor-id ${sample_id}"
SAMPLE_vcf2maf="--tumor-id ${sample_id}"
SAMPLE_vcf2vcf="--vcf-tumor-id ${sample_id}"
fi fi


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


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

Ładowanie…
Anuluj
Zapisz