stjudecloud / workflows

Bioinformatics workflows developed for and used on the St. Jude Cloud project.
MIT License
33 stars 10 forks source link

fix: make index optional #156

Closed adthrasher closed 3 months ago

adthrasher commented 3 months ago

For non-coordinate sorts, picard SortSam does not output a BAM index, even if CREATE_INDEX is true. This puts an existence check around the rename of the BAI file and also makes the output bam_index an optional output. Fortunately, it appears that we are not using the generated index in any of our pipelines as something always consumes and transforms the BAM downstream, so it ends up reindexed.

Resolves #155