use-residue 0.1.0

Primitive biological residue vocabulary for RustUse
Documentation
  • Coverage
  • 100%
    21 out of 21 items documented1 out of 13 items with examples
  • Size
  • Source code size: 8.99 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 568.7 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 4s Average build duration of successful builds.
  • all releases: 4s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • RustUse/use-bioinformatics
    1 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • CloudBranch

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);