Gtars
Introduction
Section titled “Introduction”gtars is a high-performance toolkit for genomic tools and algorithms in Rust. Built with Rust for speed and reliability, gtars provides core utilities for machine learning on genomic intervals for the geniml Python package. It also provides lots of utility as a standalone library for alternative downstream use cases.
Installation
Section titled “Installation”Rust Library
Section titled “Rust Library”Gtars uses a feature-flag system to allow you to include only the modules you need. Add to your Cargo.toml:
[dependencies]# Install specific featuresgtars = { version = "0.5", features = ["overlaprs", "tokenizers"] }
# Or install from GitHubgtars = { git = "https://github.com/databio/gtars", features = ["overlaprs", "tokenizers"] }Modules:
core- Core functionality and data structurestokenizers- Genomic region tokenizersio- I/O utilitiesrefget- Reference sequence accessoverlaprs- Overlap operationsuniwig- Coverage computationigd- Interval searchbbcache- BED file cachingscoring- Fragment scoringfragsplit- Fragment splitting
Example combinations:
# For machine learning tasksgtars = { version = "0.5", features = ["tokenizers", "core"] }
# For genomic analysisgtars = { version = "0.5", features = ["overlaprs", "uniwig", "scoring"] }
# For data accessgtars = { version = "0.5", features = ["refget", "bbcache", "io"] }Python Package
Section titled “Python Package”pip install gtarsSee further documentation under Python bindings.
Command-Line Interface
Section titled “Command-Line Interface”Install from source:
git clone https://github.com/databio/gtarscd gtarscargo install --path gtars-cliOr download precompiled binaries from the releases page.
Development
Section titled “Development”Run tests with cargo test from the workspace root. Please see CONTRIBUTING.md for development guidelines.
Module organization
Section titled “Module organization”gtars is organized into modules. The modules section gives an overview of each module.