You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
uint32_t AlignmentFlag; // alignment bit-flag (use provided methods to query/modify)
mapq has a maximum value of 255 so an 8bit integer would suffice, and there are only 12 boolean fields in the flag, so a 16 bit integer would be enough. You can confirm this on the SAM format spec by looking at the "Range" column in section 1.4:
Not sure if this is intentional or not, but there are two fields in the BamAlignment class which seem to be oversized:
bamtools/src/api/BamAlignment.h
Line 135 in 2bd8699
bamtools/src/api/BamAlignment.h
Line 136 in 2bd8699
mapq has a maximum value of 255 so an 8bit integer would suffice, and there are only 12 boolean fields in the flag, so a 16 bit integer would be enough. You can confirm this on the SAM format spec by looking at the "Range" column in section 1.4:
https://samtools.github.io/hts-specs/SAMv1.pdf
The text was updated successfully, but these errors were encountered: