BAM to CRAM
Last updated: 2024/12/04 TL;DR As pointed out by Colin, converting a BAM file to CRAM is simply one command: samtools view -T genome/chrX.fa -C -o eg/ERR188273_chrX.cram eg/ERR188273_chrX.bam Of note is that the reference file used to produce the BAM file is required and is used as an argument for the -T option. As for why…