@@ -360,7 +360,7 @@ process vardict_tn {
360
360
-S \
361
361
-f 0.05 > ${ tumor.simpleName} _vs_${ normal.simpleName} _${ bed.simpleName} .vardict.vcf
362
362
363
- printf "${ normal.Name} \t ${ normalname} \t ${ tumor.Name} \t ${ tumorname} \n " > sampname
363
+ printf "${ normal.Name} \t ${ normalname} \n ${ tumor.Name} \t ${ tumorname} \n " > sampname
364
364
365
365
bcftools reheader -s sampname ${ tumor.simpleName} _vs_${ normal.simpleName} _${ bed.simpleName} .vardict.vcf \
366
366
| bcftools view -Oz -o ${ tumor.simpleName} _vs_${ normal.simpleName} _${ bed.simpleName} .vardict.vcf.gz
@@ -493,8 +493,15 @@ process lofreq_tn {
493
493
${ tumorname} _vs_${ normalname} _${ bed.simpleName} _somatic_final_minus-dbsnp.indels.vcf.gz --threads $task . cpus -Oz -o \
494
494
${ tumorname} _vs_${ normalname} _${ bed.simpleName} _temp_lofreq.vcf.gz
495
495
496
- $LOFREQ_CONVERT ${ tumorname} _vs_${ normalname} _${ bed.simpleName} _temp_lofreq.vcf.gz ${ tumorname} \
497
- | bcftools view -Oz -o ${ tumorname} _vs_${ normalname} _${ bed.simpleName} _lofreq.vcf.gz
496
+ $LOFREQ_CONVERT -i ${ tumorname} _vs_${ normalname} _${ bed.simpleName} _temp_lofreq.vcf.gz -g 1/0 \
497
+ -n ${ tumorname} -o ${ tumorname} _vs_${ normalname} _${ bed.simpleName} _temp1_lofreq.vcf.gz
498
+
499
+ bcftools view -h ${ tumorname} _vs_${ normalname} _${ bed.simpleName} _temp1_lofreq.vcf.gz >temphead
500
+
501
+ sed 's/^##FORMAT=<ID=DP4,Number=4,Type=Integer,Description="Counts for ref-forward bases, ref-reverse, alt-forward and alt-reverse bases">/##FORMAT=<ID=DP4,Number=1,Type=String,Description="Strand read counts: ref\\ /fwd, ref\\ /rev, var\\ /fwd, var\\ /rev">/' temphead > temphead1
502
+ bcftools reheader ${ tumorname} _vs_${ normalname} _${ bed.simpleName} _temp1_lofreq.vcf.gz -h temphead1 |\
503
+ bcftools view -Oz -o ${ tumorname} _vs_${ normalname} _${ bed.simpleName} _lofreq.vcf.gz
504
+
498
505
bcftools index -t ${ tumorname} _vs_${ normalname} _${ bed.simpleName} _lofreq.vcf.gz
499
506
500
507
"""
@@ -738,12 +745,12 @@ process somaticcombine {
738
745
vcfin1= [callers, vcfs]. transpose(). collect { a , b -> a + " " + b }
739
746
vcfin2= " -V:" + vcfin1. join(" -V:" )
740
747
741
- """
742
- java -jar \$ DISCVRSeq_JAR MergeVcfsAndGenotypes \
743
- -R $G ENOMEREF \
744
- --genotypeMergeOption PRIORITIZE \
745
- --priority_list mutect2,strelka,octopus,muse,lofreq,vardict,varscan \
746
- --filteredRecordsMergeType KEEP_IF_ANY_UNFILTERED \
748
+ """
749
+ java -jar \$ GATK_JAR -T CombineVariants \
750
+ -nt $t ask . cpus \
751
+ --filteredrecordsmergetype KEEP_IF_ANY_UNFILTERED \
752
+ --genotypemergeoption PRIORITIZE \
753
+ --rod_priority_list mutect2,strelka,muse,lofreq,vardict,varscan \
747
754
-O ${ tumorsample} _vs_${ normal} _combined.vcf.gz \
748
755
$vcfin2
749
756
"""
0 commit comments