diff --git a/variants/somatic_callers.sh b/variants/somatic_callers.sh index 9b9da3686b579d93b0557aec24d6e6cd46078c8f..4517c52fd4f30737223dba4046c057a3eb877362 100755 --- a/variants/somatic_callers.sh +++ b/variants/somatic_callers.sh @@ -75,7 +75,7 @@ fi if [ $algo == 'mutect' ] then - module load parallel python/2.7.x-anaconda gatk/3.5 bcftools/intel/1.3 bedtools/2.25.0 snpeff/4.2 vcftools/0.1.14 + module load parallel python/2.7.x-anaconda gatk/3.8 bcftools/intel/1.3 bedtools/2.25.0 snpeff/4.2 vcftools/0.1.14 cut -f 1 /project/shared/bicf_workflow_ref/GRCh38/genomefile.5M.txt | parallel --delay 2 -j 10 "java -Xmx20g -jar $GATK_JAR -R ${genome_reference} -D ${dbSnp_reference} -T MuTect2 -stand_call_conf 30 -stand_emit_conf 10.0 -A FisherStrand -A QualByDepth -A VariantType -A DepthPerAlleleBySample -A HaplotypeScore -A AlleleBalance -I:tumor ${tumor}.final.bam -I:normal ${normal}.final.bam --cosmic ${cosmic} -o ${tumor}.{}.mutect.vcf -L {}" vcf-concat ${tumor}*.vcf | vcf-sort | vcf-annotate -n --fill-type | java -jar $SNPEFF_HOME/SnpSift.jar filter -p '((FS <= 60) & GEN[*].DP >= 10)' | perl -pe 's/TUMOR/'${tumor}'/' | perl -pe 's/NORMAL/'${normal}'/g' |bgzip > ${tumor}_${normal}.mutect.vcf.gz fi diff --git a/variants/somatic_vc.sh b/variants/somatic_vc.sh index 3e43d778333131c712a7922ca334845d97e03928..207ac1bbc80cd010c6c6ff44caea0870f33abc2a 100755 --- a/variants/somatic_vc.sh +++ b/variants/somatic_vc.sh @@ -113,7 +113,7 @@ fi if [ $algo == 'mutect2' ] then - module load parallel gatk/3.7 snpeff/4.3q samtools/1.6 vcftools/0.1.14 + module load parallel gatk/3.8 snpeff/4.3q samtools/1.6 vcftools/0.1.14 if [ -z ${tbed} ] then cut -f 1 ${index_path}/genomefile.5M.txt | parallel --delay 2 -j 10 "java -Xmx20g -jar \$GATK_JAR -R ${reffa} -D ${dbsnp} -T MuTect2 -stand_call_conf 10 -A FisherStrand -A QualByDepth -A VariantType -A DepthPerAlleleBySample -A HaplotypeScore -A AlleleBalance -I:tumor ${tumor} -I:normal ${normal} --cosmic ${cosmic} -o ${tid}.{}.mutect.vcf -L {}" @@ -125,13 +125,13 @@ fi if [ $algo == 'varscan' ] then - module load samtools/1.6 VarScan/2.4.2 speedseq/20160506 vcftools/0.1.14 - sambamba mpileup --tmpdir=./ -t $SLURM_CPUS_ON_NODE ${tumor} --samtools "-C 50 -f ${reffa}" > t.mpileup - sambamba mpileup --tmpdir=./ -t $SLURM_CPUS_ON_NODE ${normal} --samtools "-C 50 -f ${reffa}" > n.mpileup - VarScan somatic n.mpileup t.mpileup vscan --output-vcf 1 - VarScan copynumber n.mpileup t.mpileup vscancnv + module load samtools/1.6 VarScan/2.4.2 vcftools/0.1.14 module rm java/oracle/jdk1.7.0_51 module load snpeff/4.3q + samtools mpileup -C 50 -f ${reffa} $tumor > t.mpileup + samtools mpileup -C 50 -f ${reffa} $normal > t.mpileup + VarScan somatic n.mpileup t.mpileup vscan --output-vcf 1 + VarScan copynumber n.mpileup t.mpileup vscancnv vcf-concat vscan*.vcf | vcf-sort | vcf-annotate -n --fill-type -n | java -jar $SNPEFF_HOME/SnpSift.jar filter '((exists SOMATIC) & (GEN[*].DP >= 10))' | perl -pe "s/TUMOR/${tid}/" | perl -pe "s/NORMAL/${nid}/g" | bgzip > ${pair_id}.varscan.vcf.gz fi