|
cuSBF
|
An alphabet for encoding DNA sequences, consisting of the symbols A, C, G, and T. More...
Static Public Member Functions | |
| constexpr __host__ __device__ static __forceinline__ uint8_t | encode (const char *input) |
| Maps one byte to a 2-bit symbol index, or invalidSymbol. | |
Static Public Attributes | |
| static constexpr uint64_t | symbolWidth = 1 |
| Input bytes per encoded symbol. | |
| static constexpr uint64_t | symbolCount = 4 |
| Number of valid symbols (A, C, G, T). | |
| static constexpr uint8_t | invalidSymbol = 0xFFu |
| Sentinel returned by encode for invalid input bytes. | |
| static constexpr uint8_t | separator = 'N' |
| Byte value used between concatenated records (must not encode as a valid symbol). | |
| static constexpr char | validBytes [] = "ACGT" |
| Representative valid bytes for compile-time separator checks. | |
An alphabet for encoding DNA sequences, consisting of the symbols A, C, G, and T.
Each symbol is encoded as a 2-bit value: A=0, C=1, T=2, G=3. Invalid bytes are encoded as 0xFF.
Definition at line 113 of file Alphabet.cuh.
|
inlinestaticconstexpr |
Maps one byte to a 2-bit symbol index, or invalidSymbol.
Accepts A/C/G/T in either case.
| input | Pointer to one raw byte. |
Definition at line 132 of file Alphabet.cuh.
|
staticconstexpr |
Sentinel returned by encode for invalid input bytes.
Definition at line 119 of file Alphabet.cuh.
|
staticconstexpr |
Byte value used between concatenated records (must not encode as a valid symbol).
Definition at line 121 of file Alphabet.cuh.
|
staticconstexpr |
Number of valid symbols (A, C, G, T).
Definition at line 117 of file Alphabet.cuh.
|
staticconstexpr |
Input bytes per encoded symbol.
Definition at line 115 of file Alphabet.cuh.
|
staticconstexpr |
Representative valid bytes for compile-time separator checks.
Definition at line 123 of file Alphabet.cuh.