|
cuSBF
|
An alphabet that encodes non-overlapping DNA triplets as single symbols. More...
Static Public Member Functions | |
| constexpr __host__ __device__ static __forceinline__ uint8_t | encode (const char *input) |
| Maps three DNA bytes to a 6-bit triplet index, or invalidSymbol. | |
Static Public Attributes | |
| static constexpr uint64_t | symbolWidth = 3 |
| Input bytes per encoded symbol (one DNA triplet). | |
| static constexpr uint64_t | symbolCount = 64 |
| Number of packed triplet symbols. | |
| static constexpr uint8_t | invalidSymbol = 0xFFu |
| Sentinel returned by encode for invalid triplets. | |
| static constexpr uint8_t | separator = 'N' |
| Separator byte between concatenated records. | |
| static constexpr char | validBytes [] = "ACGT" |
| Representative valid bytes for compile-time separator checks. | |
An alphabet that encodes non-overlapping DNA triplets as single symbols.
Each triplet is encoded as a 6-bit value. Invalid bytes in any triplet position produce invalidSymbol.
Definition at line 150 of file Alphabet.cuh.
|
inlinestaticconstexpr |
Maps three DNA bytes to a 6-bit triplet index, or invalidSymbol.
| input | Pointer to three raw bytes. |
Definition at line 167 of file Alphabet.cuh.
|
staticconstexpr |
Sentinel returned by encode for invalid triplets.
Definition at line 156 of file Alphabet.cuh.
|
staticconstexpr |
Separator byte between concatenated records.
Definition at line 158 of file Alphabet.cuh.
|
staticconstexpr |
Number of packed triplet symbols.
Definition at line 154 of file Alphabet.cuh.
|
staticconstexpr |
Input bytes per encoded symbol (one DNA triplet).
Definition at line 152 of file Alphabet.cuh.
|
staticconstexpr |
Representative valid bytes for compile-time separator checks.
Definition at line 160 of file Alphabet.cuh.