Expand description
§use-residue
Primitive residue vocabulary.
use-residue describes single biological residue symbols generically across nucleotide and amino-acid sequences. It supports gap and ambiguous residues, but does not infer chemistry, translate residues, score substitutions, or implement alignment algorithms.
use use_residue::{Residue, ResidueKind};
let gap = Residue::gap();
let ambiguous = Residue::new('N', ResidueKind::Ambiguous);
assert_eq!(gap.symbol().as_char(), '-');
assert_eq!(ambiguous.kind(), &ResidueKind::Ambiguous);Structs§
- Residue
- A single residue symbol with a descriptive kind.
- Residue
Symbol - A single residue symbol.
Enums§
- Residue
Error - Error returned by residue vocabulary constructors.
- Residue
Kind - A descriptive kind for a biological residue.