genebears 0.3.0

Lightweight Rust client for the GeneBe genetic variant annotation API with DuckDB caching and rate limiting
//! # genebears
//!
//! A lightweight Rust client for the [GeneBe](https://genebe.net/) genetic
//! variant annotation API.
//!
//! ## Quick start
//!
//! ```rust, no_run
//! use genebears::{GeneBears, ClientConfig, Variant, Genome, AnnotateOptions};
//!
//! #[tokio::main]
//! async fn main() -> Result<(), genebears::GeneBearError> {
//!     let client = GeneBears::new(ClientConfig::default())?;
//!
//!     let variants = vec![
//!         Variant::new("22", 28_695_868, "AG", "A"),
//!         Variant::new("6",  160_585_140, "T",  "G"),
//!     ];
//!
//!     let results = client
//!         .annotate_variants(&variants, Genome::Hg38, AnnotateOptions::default())
//!         .await?;
//!
//!     for v in &results {
//!         println!(
//!             "gene={:?}  revel={:?}  alphamissense={:?}  acmg={:?}",
//!             v.gene_symbol, v.revel_score, v.alphamissense_score, v.acmg_classification,
//!         );
//!     }
//!     Ok(())
//! }
//! ```

pub mod cache;
pub mod client;
pub mod error;
pub mod models;
pub mod rate_limiter;

pub use client::{ClientConfig, GeneBears};
pub use error::GeneBearError;
pub use models::{AnnotateOptions, AnnotatedVariant, Genome, Variant};