1. Install samtools mamba install -c bioconda samtools -y 2. Sort sam files and output them as bam files samtools sort -o