|
cuSBF
|
An alphabet for encoding protein sequences, consisting of the 20 standard amino acids plus common ambiguous and rare residue symbols: More...
Static Public Member Functions | |
| constexpr __host__ __device__ static __forceinline__ uint8_t | encode (const char *input) |
| Maps one amino-acid letter to a 5-bit index, or invalidSymbol. | |
Static Public Attributes | |
| static constexpr uint64_t | symbolWidth = 1 |
| Input bytes per encoded symbol. | |
| static constexpr uint64_t | symbolCount = 26 |
| Number of letter symbols (A–Z). | |
| static constexpr uint8_t | invalidSymbol = 0xFFu |
| Sentinel returned by encode for invalid input bytes. | |
| static constexpr uint8_t | separator = '*' |
| Separator byte between concatenated records. | |
| static constexpr char | validBytes [] = "ABCDEFGHIJKLMNOPQRSTUVWXYZ" |
| Representative valid bytes for compile-time separator checks. | |
An alphabet for encoding protein sequences, consisting of the 20 standard amino acids plus common ambiguous and rare residue symbols:
A through Z.
Each symbol is encoded as a unique 5-bit value from 0 to 25. Invalid bytes are encoded as 0xFF.
Definition at line 189 of file Alphabet.cuh.
|
inlinestaticconstexpr |
Maps one amino-acid letter to a 5-bit index, or invalidSymbol.
Accepts A–Z in either case.
| input | Pointer to one raw byte. |
Definition at line 208 of file Alphabet.cuh.
|
staticconstexpr |
Sentinel returned by encode for invalid input bytes.
Definition at line 195 of file Alphabet.cuh.
|
staticconstexpr |
Separator byte between concatenated records.
Definition at line 197 of file Alphabet.cuh.
|
staticconstexpr |
Number of letter symbols (A–Z).
Definition at line 193 of file Alphabet.cuh.
|
staticconstexpr |
Input bytes per encoded symbol.
Definition at line 191 of file Alphabet.cuh.
|
staticconstexpr |
Representative valid bytes for compile-time separator checks.
Definition at line 199 of file Alphabet.cuh.