Pārlūkot izejas kodu

Update: remove filtering process

master
YaqingLiu pirms 3 gadiem
vecāks
revīzija
560f8f59ef
1 mainītis faili ar 6 papildinājumiem un 3 dzēšanām
  1. +6
    -3
      tasks/VEP.wdl

+ 6
- 3
tasks/VEP.wdl Parādīt failu



source /etc/profile source /etc/profile


awk -F'\t' '{if(($1~"^#")||($1!~"^#" && $7=="PASS")){print $0}}' ${vcf} > ${sample_id}.vcf
#awk -F'\t' '{if(($1~"^#")||($1!~"^#" && $7=="PASS")){print $0}}' ${vcf} > ${sample_id}.vcf
# Judge the SAMPLE info of vcf file # Judge the SAMPLE info of vcf file
tumor_id=`awk -F'\t' '{if($1~"^#CHROM"){print $10}}' ${vcf}` tumor_id=`awk -F'\t' '{if($1~"^#CHROM"){print $10}}' ${vcf}`
SAMPLE_vcf2vcf="--vcf-tumor-id $tumor_id" SAMPLE_vcf2vcf="--vcf-tumor-id $tumor_id"
fi fi



# Set the buffer_size based on the data size # Set the buffer_size based on the data size
nrow=`awk -F'\t' '{if($1~"^chr"){print $0}}' ${sample_id}.vcf | wc -l`
nrow=`awk -F'\t' '{if($1~"^chr"){print $0}}' ${vcf} | wc -l`
if [ $nrow -lt 5000 ]; then if [ $nrow -lt 5000 ]; then
buffer_size="--buffer_size 5000" buffer_size="--buffer_size 5000"
else else
buffer_size="--buffer_size 1000" buffer_size="--buffer_size 1000"
fi fi



# vcf2vcf: transfer into a standardized format # vcf2vcf: transfer into a standardized format
echo "Transfer the VCF file into a standardized format..." echo "Transfer the VCF file 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 ${vcf} --output-vcf ${basename}.norm.vcf \
$SAMPLE_vcf2vcf \ $SAMPLE_vcf2vcf \
--ref-fasta ${ref_dir}/${fasta} --ref-fasta ${ref_dir}/${fasta}


--cache --dir_cache ${cache} \ --cache --dir_cache ${cache} \
--fasta ${ref_dir}/${fasta} \ --fasta ${ref_dir}/${fasta} \
$buffer_size \ $buffer_size \
--fork $nt \
--input_file ${basename}.norm.vcf --output_file ${basename}.vep.vcf --input_file ${basename}.norm.vcf --output_file ${basename}.vep.vcf



Notiek ielāde…
Atcelt
Saglabāt