@@ -478,7 +478,8 @@ sub bsub_strelka{
478
478
print STREKA " SG_DIR=" .$sample_full_path ." /strelka\n " ;
479
479
print STREKA " RUNDIR=" .$sample_full_path ." \n " ;
480
480
print STREKA " STRELKA_OUT=" .$sample_full_path ." /strelka/strelka_out" ." \n " ;
481
- print STREKA " STRELKA_VCF=" .$sample_full_path ." /strelka/strelka_out/results/passed.somatic.snvs.vcf" ." \n " ;
481
+ print STREKA " STRELKA_VCF=" .$sample_full_path ." /strelka/strelka_out/results/somatic.snvs.vcf.gz" ." \n " ;
482
+ # print STREKA "STRELKA_VCF=".$sample_full_path."/strelka/strelka_out/results/passed.somatic.snvs.vcf"."\n";
482
483
# print STREKA "CONFDIR="."/gscmnt/gc2521/dinglab/cptac_prospective_samples/exome/config\n";
483
484
print STREKA " TASK_STATUS=" .$sample_full_path ." /strelka/strelka_out/task.complete" ." \n " ;
484
485
print STREKA " export SAMTOOLS_DIR=$samtools \n " ;
@@ -494,7 +495,7 @@ sub bsub_strelka{
494
495
print STREKA " then\n " ;
495
496
print STREKA " rm \$ {TASK_STATUS}\n " ;
496
497
print STREKA " fi\n " ;
497
-
498
+ # # if STRELKA_VCF not existed
498
499
print STREKA " if [ ! -f \$ {STRELKA_VCF} ]\n " ;
499
500
print STREKA " then\n " ;
500
501
print STREKA " rm \$ {TASK_STATUS}\n " ;
@@ -624,6 +625,7 @@ sub bsub_varscan{
624
625
print VARSCAN " del_local=\" rm -f\"\n " ;
625
626
print VARSCAN " statfile=complete.vs_som_snvindels\n " ;
626
627
print VARSCAN " localstatus=\$ {myRUNDIR}\/ status\/\$ {statfile}\n " ;
628
+ print VARSCAN " varscan_vcf=\$ {myRUNDIR}\/ varscan.out.som_snv.vcf\n " ;
627
629
print VARSCAN " if [ ! -d \$ {myRUNDIR}\/ status ]\n " ;
628
630
print VARSCAN " then\n " ;
629
631
print VARSCAN " mkdir \$ {myRUNDIR}\/ status\n " ;
@@ -633,6 +635,11 @@ sub bsub_varscan{
633
635
print VARSCAN " then\n " ;
634
636
print VARSCAN " rm \$ {localstatus}\n " ;
635
637
print VARSCAN " fi\n " ;
638
+ # check if vcf file exists
639
+ print VARSCAN " if [ ! -f \$ {varscan_vcf} ]\n " ;
640
+ print VARSCAN " then\n " ;
641
+ print VARSCAN " rm \$ {localstatus}\n " ;
642
+ print VARSCAN " fi\n " ;
636
643
print VARSCAN " if [ ! -f \$ {localstatus} ]\n " ;
637
644
print VARSCAN " then\n " ;
638
645
print VARSCAN " cd \$ {RUNDIR}/varscan\n " ;
@@ -974,6 +981,7 @@ sub bsub_pindel{
974
981
print PINDEL " CONFIG=\$ {myRUNDIR}" ." /" .$sample_name ." .config\n " ;
975
982
print PINDEL " statfile=complete.pindel\n " ;
976
983
print PINDEL " localstatus=\$ {myRUNDIR}\/ status\/\$ {statfile}\n " ;
984
+ print PINDEL " pindel_vcf=\$ {myRUNDIR}\/ " .$sample_name ." _D\n " ;
977
985
print PINDEL " if [ ! -d \$ {myRUNDIR} ]\n " ;
978
986
print PINDEL " then\n " ;
979
987
print PINDEL " mkdir \$ {myRUNDIR}\n " ;
@@ -986,6 +994,10 @@ sub bsub_pindel{
986
994
print PINDEL " then\n " ;
987
995
print PINDEL " rm \$ {localstatus}\n " ;
988
996
print PINDEL " fi\n " ;
997
+ print PINDEL " if [ ! -f \$ {pindel_vcf} ]\n " ;
998
+ print PINDEL " then\n " ;
999
+ print PINDEL " rm \$ {localstatus}\n " ;
1000
+ print PINDEL " fi\n " ;
989
1001
print PINDEL " if [ ! -f \$ {localstatus} ]\n " ;
990
1002
print PINDEL " then\n " ;
991
1003
print PINDEL " echo \" $IN_bam_T \t 500\t $sample_name .T\" > \$ {CONFIG}\n " ;
0 commit comments