use-genomic-range 0.1.0

Primitive genomic range and interval vocabulary for RustUse
Documentation
  • Coverage
  • 100%
    26 out of 26 items documented1 out of 17 items with examples
  • Size
  • Source code size: 11.11 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 661.3 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 6s Average build duration of successful builds.
  • all releases: 6s 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-genomic-range

Primitive genomic range and interval vocabulary.

use-genomic-range stores start and end positions, strand labels, and coordinate-system labels. It validates that the end is not before the start. It does not parse BED/GFF/GTF/SAM/BAM, implement interval trees, or behave as a genome browser.

use use_genomic_range::{CoordinateSystem, GenomicPosition, GenomicRange, Strand};

let range = GenomicRange::new(GenomicPosition::new(10), GenomicPosition::new(20))
    .unwrap()
    .with_coordinate_system(CoordinateSystem::ZeroBasedHalfOpen)
    .with_strand(Strand::Forward);

assert_eq!(range.len(), 10);
assert_eq!(range.strand(), &Strand::Forward);