use-genomic-range 0.1.0

Primitive genomic range and interval vocabulary for RustUse
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# 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.

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