diff --git a/workflows/tasks/extract_info.wdl b/workflows/tasks/extract_info.wdl index 461cc3c..4af3989 100644 --- a/workflows/tasks/extract_info.wdl +++ b/workflows/tasks/extract_info.wdl @@ -19,8 +19,8 @@ task extract { for vcf in ~{sep=' ' imputed_vcf}; do ln -s $vcf $(basename $vcf) if [[ $vcf == *.vcf.gz ]]; then - if [ ! -f $vcf.csi ]; then - bcftools index -c $vcf + if [ ! -f $vcf.csi ] && [ ! -f $vcf.tbi ]; then + bcftools index -c $(basename $vcf) fi fi done