YaqingLiu 4 vuotta sitten
vanhempi
commit
4c370d775e
1 muutettua tiedostoa jossa 3 lisäystä ja 1 poistoa
  1. +3
    -1
      tasks/VEP.wdl

+ 3
- 1
tasks/VEP.wdl Näytä tiedosto

nt=$(nproc) nt=$(nproc)


source /etc/profile source /etc/profile
echo ${sample_id}
echo ${basename}


#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}`
normal_id=`awk -F'\t' '{if($1~"^#CHROM"){print $11}}' ${vcf}` normal_id=`awk -F'\t' '{if($1~"^#CHROM"){print $11}}' ${vcf}`
if [ $normal_id ]; then if [ $normal_id ]; then
SAMPLE_vcf2maf="--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" SAMPLE_vcf2vcf="--vcf-tumor-id $tumor_id --vcf-normal-id $normal_id"

Loading…
Peruuta
Tallenna