diff --git a/gridss.wdl b/gridss.wdl index d3d251a5b2a811d38db2776784e2a41a60f1578c..92d7df1ec9aee08f2dbef8467643d2bb1ded33c1 100644 --- a/gridss.wdl +++ b/gridss.wdl @@ -116,6 +116,12 @@ task GRIDSS { ~{normalBam} \ ~{tumorBam} samtools index ~{outputPrefix}_assembly.bam ~{outputPrefix}_assembly.bai + + # For some reason the VCF index is sometimes missing + if [ ! -e ~{outputPrefix}.vcf.gz.tbi ] + then + tabix ~{outputPrefix}.vcf.gz + fi } output {