Hi,
I performed the following steps for SAM to bai file conversion:
samtools import ${REF_LIST} ${SAM_FILE} ${BAM_FILE}
# Sort BAM
samtools sort ${BAM_FILE} ${BAM_FILE}.sorted
# Generated 20 GB sorted.bam file
# Index sorted bam, output in default file ${BAM_FILE}.sorted.bai
samtools index ${BAM_FILE}.sorted.bam
Last step generated a .bai file with just 200 bytes in it. Is this expected size?
I did not see any error messages
Thanks!!!
I performed the following steps for SAM to bai file conversion:
samtools import ${REF_LIST} ${SAM_FILE} ${BAM_FILE}
# Sort BAM
samtools sort ${BAM_FILE} ${BAM_FILE}.sorted
# Generated 20 GB sorted.bam file
# Index sorted bam, output in default file ${BAM_FILE}.sorted.bai
samtools index ${BAM_FILE}.sorted.bam
Last step generated a .bai file with just 200 bytes in it. Is this expected size?
I did not see any error messages
Thanks!!!
Comment