-
Notifications
You must be signed in to change notification settings - Fork 156
Open
Description
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
| uint16_t MapQuality; // mapping quality score |
bamtools/src/api/BamAlignment.h
Line 136 in 2bd8699
| 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:
Metadata
Metadata
Assignees
Labels
No labels