Skip to content

Commit

Permalink
generate index if not provided
Browse files Browse the repository at this point in the history
  • Loading branch information
anand-imcm committed Jul 26, 2024
1 parent 3545ab3 commit 2ccb9b0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions workflows/tasks/extract_info.wdl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2ccb9b0

Please sign in to comment.