pipeline/script/mpileup2cns.sh

54 lines
1.4 KiB
Bash
Raw Normal View History

2023-08-25 10:06:31 +08:00
#!/bin/bash
:<<!
if [ $3 == "cfDNA" ];then
java -jar $VARSCAN somatic $1 $2\
--output-snp $4/mutation/$5.snp.vcf \
--output-indel $4/mutation/$5.indel.vcf \
--min-var-freq 0.005 \
--min-freq-for-hom 0.9 \
--output-vcf 1 \
--min-avg-qual 20 \
--somatic-p-value 0.99 \
--min-reads2 1
java -jar $VARSCAN processSomatic \
$4/mutation/$5.snp.vcf \
--min-tumor-freq 0.005 \
--max-normal-freq 0.01 \
--p-value 0.99
java -jar $VARSCAN processSomatic \
$4/mutation/$5.indel.vcf \
--min-tumor-freq 0.005 \
--max-normal-freq 0.01 \
--p-value 0.99
!
#elif [ $3 == "tissue" ];then
java -jar $VARSCAN somatic $1 $2\
--output-snp $3/mutation/$4.snp.vcf \
--output-indel $3/mutation/$4.indel.vcf \
--min-var-freq 0.01 \
--min-freq-for-hom 0.9 \
--somatic-p-value 0.05 \
--output-vcf 1 \
--min-avg-qual 20 \
--min-coverage-normal 10 \
--min-coverage-tumor 30 --min-reads2 3
# --strand-filter 1
java -jar $VARSCAN processSomatic \
$3/mutation/$4.snp.vcf \
--min-tumor-freq 0.01 \
--max-normal-freq 0.01 \
--p-value 0.05
java -jar $VARSCAN processSomatic \
$3/mutation/$4.indel.vcf \
--min-tumor-freq 0.01 \
--max-normal-freq 0.01 \
--p-value 0.05
#fi