Write to bam/cram instead of sam
mflevine opened this issue · comments
Right now if I try to write a bam file, it will only output uncompressed SAM. Is it possible to support writing BAMs and possibly CRAM too?
if you use mode="wb", it will write bam, mode="wc" it will be cram. I'll add a change to detect file extension and set these automatically if mode == "w".
Awesome thanks!
auto-detect bam/cram writer (as was already implemented for vcf/bcf) is now in latest tag.
thanks for reporting.