gtars
Use Gtars for local genomic interval models and set algebra, overlaps and counts, consensus and coverage, tokenization, fragment processing, and…
от lilinji★ 18 звёзд на GitHub
Установить gtars в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Gtars
Gtars provides native Rust implementations, Python bindings, and a feature-gatedgtars binary for genomic interval and reference-sequence work. Start with the
bundled local inspectors; call upstream code only after the data contract,
provenance, resource bounds, and side effects are explicit.
Verified snapshot (2026-07-23)
- Python:
gtars==0.9.2, released
2026-06-17,Requires-Python >=3.10. - Rust meta-crate:
gtars=0.9.0, released
2026-06-15. Its default feature set is empty. - CLI crate/binary:
gtars-cli=0.9.0;
the installed binary is namedgtars. - Direct refget crate:
gtars-refget=0.9.1,
released 2026-06-17.gtars=0.9.0itself pins its component release set, which
includes refget 0.9.0. - Upstream intentionally versions workspace crates, Python bindings, and CLI
independently. Do not assume matching numbers mean matching artifacts. - The published docs changelog stops at 0.5.1. API examples here were checked
against the 0.9.2 Python stubs/runtime and thev0.9.0CLI/Rust source.
The license: MIT field covers this skill. Published gtars crates declare MIT,
while the GitHub repository currently displays BSD-2-Clause at the root; verify
the exact artifact's license before redistribution.
Native-code trust gate and exact pins
The Python wheel contains a PyO3 native extension. Cargo installation compiles a
native binary and can run dependency build scripts. Treat either path as code
execution:
- Confirm the official PyPI/crates.io/GitHub owner and immutable version.
- Review filenames, platform tags, release provenance, license, and SHA-256.
GitHub's v0.9.0 binary release includes per-archive.sha256sidecars. - Never run an untrusted prebuilt binary, wheel, source tree, Cargo build script,
or archive installer. Use isolation and CPU/RAM/disk/time limits. - Keep a lockfile and artifact hashes with the analysis manifest.
After that review, create an isolated Python environment:
uv venv --python 3.11 .venv-gtars
uv pip install --dry-run --python .venv-gtars/bin/python "gtars==0.9.2"
uv pip install --python .venv-gtars/bin/python "gtars==0.9.2"
.venv-gtars/bin/python -c \
"import gtars; assert gtars.__version__ == '0.9.2'; print(gtars.__version__)"
For the reviewed CLI source release:
cargo install gtars-cli --version 0.9.0 --locked
gtars --version
gtars --help
For a Rust project, pin the wrapper exactly and enable only required features:
[dependencies]
gtars = { version = "=0.9.0", default-features = false, features = [
"core", "overlaprs", "uniwig", "tokenizers", "refget"
] }
Use gtars-refget = "=0.9.1" directly only when the newer direct component API is
required and compatibility has been tested. Do not replace these pins with a Git
branch or an unreviewed release.
Genomic data contract
Apply this contract before every operation:
- Coordinates: BED intervals are 0-based and half-open:
[start, end).
Require0 <= start < end <= contig_length. Gtars coordinates areu32, so
reject values above4,294,967,295. - Assembly: record an assembly accession/version and the SHA-256 of the exact
chromosome-sizes or refget sequence-collection metadata. Never infer assembly
from filenames orchrprefixes. - Contigs: compare names exactly.
1andchr1, alternate loci, decoys, and
mitochondrial aliases are not interchangeable. Rename or liftover only as a
separately reviewed transformation. - Sorting: preserve the original file, then sort a copy by chromosome-sizes
order and numeric start/end when the operation requires it. PythonRegionSet(path)currently sorts lexicographically by contig and start while
loading; do not rely on original row order afterward. - Strand: BED6 uses
+,-, or..Region.restretains trailing BED
fields, but a file-backed PythonRegionSetcurrently initializes its separatestrandsvector to*. Several set operations drop strand. Preserve and
validate strand externally when it is scientifically meaningful. - Duplicates/adjacency: choose policies explicitly.
reduce()and consensus
merge overlapping and adjacent intervals; ordinary half-open overlap does
not treat[0,10)and[10,20)as overlapping.
Run the local validator first:
python3 -B scripts/bed_validator.py \
--input data.bed.gz \
--assembly GRCh38.p14 \
--chrom-sizes GRCh38.p14.chrom.sizes \
--require-sorted
Safe local workflow
- Inventory local files, checksums, assembly, contig dictionary, coordinate
system, strand policy, patient/replicate groups, and intended outputs. - Validate BED/fragments and estimate work. Pilot a small synthetic file.
- Choose Python, CLI, or Rust from the documented surface; do not translate API
names by gues
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
- 01
Read - 02
Write - 03
Edit - 04
Bash - 05
Glob
Вложенные файлы
- references/cli.md
- references/coverage.md
- references/overlap.md
- references/python-api.md
- references/refget.md
- references/tokenizers.md
- scripts/__init__.py
- scripts/_common.py
- scripts/artifact_inspector.py
- scripts/bed_validator.py
- scripts/coverage_preflight.py
- scripts/execution_plan.py
- scripts/refget_digest_plan.py
- scripts/tokenizer_manifest.py
FAQ
Что делает скилл gtars?
Use Gtars for local genomic interval models and set algebra, overlaps and counts, consensus and coverage, tokenization, fragment processing, and refget/BEDbase planning across Python, Rust, and the CLI.
Как установить скилл gtars?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл gtars запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
theme-factory
AnthropicToolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
access
AnthropicManage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
configure
AnthropicSet up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
access
AnthropicManage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…