What is the algorithm or formula for converting SAM to BAM?
I have seen some tools which converts SAM to BAM format. I wanted to know how they are converted. SAM file contains nucleotides (A, T, G, C) and how these data are converted to binaries?
• 2,033 views
•
link
2 answers
Section 4 page 11. SAM file contains more than just nucleotides. Original paper from Heng et al here.
• 0 views
•
link
You'll want to read the BAM specification. In short, bases are encoded as 4 bit integers (see section 4.2).
• 0 views
•
link
Log in to answer this question.