gtars-bbcache
A Rust implementation of bbcache: a caching system for BED files from BEDbase.org.
Overview
gtars-bbcache provides an efficient local caching layer for BED files and BED sets retrieved from
the BEDbase API. It handles downloading, storage, and retrieval of genomic region data.
Features
- Smart Caching: Automatically downloads and caches BED files from BEDbase API on first access
- BEDset Support: Manages collections of related BED files as coherent sets
- Local File Import: Add local BED files to the cache for unified access
- Efficient Storage: Organizes cached files in a hierarchical directory structure
- SQLite Tracking: Uses biocache for fast lookups and resource management
- Configurable: Customize cache location and API endpoints via environment variables
Quick Start
use BBClient;
use PathBuf;
#
Configuration
The cache behavior can be configured through environment variables:
BBCLIENT_CACHE: Custom cache directory (default:~/.bbcache/)BEDBASE_API: Custom BEDbase API endpoint (default:https://api.bedbase.org)
Or programmatically via the builder:
use BBClient;
use PathBuf;
#