What problem does it solve?
This Skill streamlines the processing of large genomic interval files (BED format) and enables their conversion into tokenized representations suitable for machine learning pipelines.
Core Features & Use Cases
- High-Performance I/O: Efficiently read and write large BED files using a Rust-backed core.
- Interval Operations: Perform set operations like intersection, union, merge, complement, and subtract on genomic regions.
- Tokenization: Convert genomic intervals into integer token IDs against a defined universe, crucial for ML preprocessing.
- Universe Building: Construct consensus universe BED files from multiple sample files.
- Use Case: Preprocess thousands of ATAC-seq or ChIP-seq peak files by filtering, merging, and tokenizing them for input into a geniml model.
Quick Start
Use the gtars skill to load 'peaks.bed', intersect it with 'other_peaks.bed', and print the number of overlapping intervals.