Gtars Genomic Interval Analysis
A guardrailed guide for using gtars across Python, Rust, and the CLI for BED set algebra, coverage, consensus, tokenization, and refget.
Data & AnalyticsAdvanced★ 33,030⑂ 3,248AI score 8/10Last updated: Aug 9, 2026
What it does
This skill teaches Claude to drive the gtars genomic-interval toolkit correctly and safely.
- Overlaps & set algebra:
count_overlaps,any_overlaps,find_overlaps,intersect_all,jaccard,setdiff,reduce,cluster,gapsagainst the real Python 0.9.2 API - Consensus & coverage: build consensus interval sets via
genomic_distributions.consensus; clearly separates coverage metrics from signal-track (uniwig) generation - Tokenizers, fragments, refget: local universe-BED tokenizers plus rules for in-memory/local/remote RefgetStore
- Enforced data contract: 0-based half-open coordinates, u32 bounds, recorded assembly accession + SHA-256, exact contig-name matching, explicit sort and strand policies
- Six bundled local CLIs: BED validator, execution planner, tokenizer manifest, refget digest plan, coverage preflight, artifact inspector — no network, no output files
- Safety gates: PyO3 wheels and Cargo build scripts are treated as code execution; downloads and cache writes require explicit approval
Who it's for
- Bioinformaticians working daily with BED files (ATAC-seq/ChIP-seq peaks, promoters, enhancers)
- Teams building interval-based ML pipelines (universes, tokenizers)
- Anyone who wants to avoid coordinate-system bugs, contig-name mismatches, and train/test leakage
- Groups needing patient/donor-level splits and reproducible provenance records
Usage examples
- Overlap summary: "How much of
peaks.bedoverlapspromoters.bed?" → validate coordinates and sorting, then generatecount_overlaps/jaccardcode - Consensus set: merge many sample BEDs into a consensus universe fit on training data only, preventing validation/test locus leakage
- Tokenizer prep: skip unapproved Hugging Face downloads and build
Tokenizer.from_bedfrom a reviewed local universe, recording a manifest and checksums
· · · Install guide · · ·
Install in the Claude app (no terminal)
- Download the ZIP with the button below.
- In Claude, open Settings → Capabilities and turn on 'Code execution and file creation'. (one time)
- Go to Customize → Skills → + → 'Upload a skill' and upload the ZIP.
Install in Claude Code
Let Claude do it — paste this into Claude Code
Install the skill I found on Claude Skill Mart. Copy the skills/gtars folder from the GitHub repo K-Dense-AI/scientific-agent-skills into my ~/.claude/skills/gtars/. When it's done, tell me in one line what this skill can do.
Install with a command instead
git clone https://github.com/K-Dense-AI/scientific-agent-skills.git && mkdir -p ~/.claude/skills && cp -r scientific-agent-skills/skills/gtars ~/.claude/skills/⚠ This is a third-party skill. Check the source repository before installing.
- Open a terminal and clone the repo:
git clone https://github.com/K-Dense-AI/scientific-agent-skills.git - Create the skills directory:
mkdir -p ~/.claude/skills - Copy the skill:
cp -r scientific-agent-skills/skills/gtars ~/.claude/skills/ - Confirm
~/.claude/skills/gtars/contains SKILL.md plus thereferences/andscripts/folders. - Restart Claude Code, then try a prompt like "analyze overlaps between these two BED files".
- (Optional) To actually run gtars, create a Python 3.10+ virtual environment and install it, e.g.
uv pip install "gtars==0.9.2". Verify the real current version and publisher on PyPI first — the pins listed in the skill may be out of date. - (Optional) For the CLI, install a Rust toolchain and run
cargo install gtars-cli --locked. - For network-capable features (pretrained tokenizers, remote refget, BEDbase cache) the skill will ask for approval, so decide your allowed hosts and cache paths in advance.
View source on GitHub ↗License: MIT