Skip to main content

Crate grit_genomics

Crate grit_genomics 

Source
Expand description

GRIT: Genomic Range Interval Toolkit

This library provides efficient interval operations for genomic data analysis.

§Features

  • Parallel processing: Uses Rayon for multi-core parallelism
  • Streaming I/O: Memory-efficient processing of large files
  • Drop-in compatibility: Matches bedtools CLI arguments

§Example

use grit_genomics::{bed, interval::Interval, commands::IntersectCommand};

// Read BED files
let a = bed::read_intervals("a.bed").unwrap();
let b = bed::read_intervals("b.bed").unwrap();

// Find intersections
let cmd = IntersectCommand::new();
let results = cmd.find_intersections_parallel(a, b);

Re-exports§

pub use bed::read_intervals;
pub use bed::read_records;
pub use bed::BedReader;
pub use index::IntervalIndex;
pub use interval::BedRecord;
pub use interval::Interval;
pub use interval::Strand;

Modules§

bed
Streaming BED file parser.
commands
Command implementations for bedtools-rs.
config
Global configuration for GRIT runtime behavior.
genome
Genome file parser for chromosome sizes.
index
Interval indexing for fast overlap queries.
interval
Core interval types for genomic region representation.
parallel
Parallel processing utilities using Rayon.
prelude
Prelude module for convenient imports.
streaming
Centralized streaming utilities for GRIT.

Constants§

VERSION
Library version