LCR-BCCRC / lcr-modules

Collection of standard analytical pipelines for genomic and transcriptomic data
https://lcr-modules.rtfd.io
MIT License
15 stars 7 forks source link

Small patch for better cram compatibility #313

Closed lkhilton closed 4 months ago

lkhilton commented 4 months ago

The Sage module was written to assume that the input alignment had a ".bam" and ".bam.bai" extension - which obviously doesn't hold if you have cram files as input. Rather than updating the input to include another CFG["inputs"]["bai"], which would require updates to existing run scripts that use Sage, I included a conditional "check if the .bai exists."