use-motif 0.1.0

Primitive biological motif vocabulary for RustUse
Documentation
  • Coverage
  • 100%
    28 out of 28 items documented1 out of 18 items with examples
  • Size
  • Source code size: 11.55 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 668.4 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 3s Average build duration of successful builds.
  • all releases: 3s 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-motif

Primitive biological motif vocabulary.

use-motif stores motif names, plain motif patterns, motif kind labels, and optional hit locations. It does not implement motif search algorithms, regex engines, position-weight matrices, or biological significance inference.

use use_motif::{MotifHit, MotifKind, MotifName, MotifPattern};

let hit = MotifHit::new(
    MotifName::new("TATA box").unwrap(),
    MotifPattern::new("TATA").unwrap(),
    MotifKind::Dna,
)
.with_sequence_range(3, 7)
.unwrap();

assert_eq!(hit.pattern().as_str(), "TATA");
assert_eq!(hit.sequence_range(), Some((3, 7)));