Expand description
Amino acid conversion utilities.
Single-letter ↔ three-letter ↔ integer mappings for the 20 standard amino
acids plus the catch-all UNK / 'X' / index 20.
Structs§
- Amino
Acid Iter - An iterator over the variants of AminoAcid
Enums§
- Amino
Acid - The 20 standard amino acids plus Unknown, with integer discriminants matching the conventional protein-ML encoding (Ala=0 … Unknown=20).
Constants§
- ALPHABET
- One-letter code alphabet for the 20 standard amino acids plus UNK.
Functions§
- aa1to_
int - Convert a 1-letter amino acid code to an integer index (0–20, UNK→20).
- aa3to1
- Convert a 3-letter amino acid code to a 1-letter code.
- int_
to_ aa1 - Convert an integer index (0–20) to a 1-letter amino acid code.