Skill Tracer
Skills › Scientific Agent Skills › gtars

gtars

skill · 325 lines · MIT · skills/gtars/SKILL.md

The facts

Its description

Supports 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.

The description the agent reads to decide when to use it.

From its settingsline 3

Tools it may use, or may not

allowed-tools: Read Write Edit Bash Glob

Tools it may use while it runs without asking you first.

From its settingsline 6

Runs scripts

bin/python, scripts/bed_validator.py (first 5 of 10 lines)

Scripts the text names. Found by matching words, so treat them as pointers.

Found by matching wordsline 60 line 61 line 62 line 118 line 271

Files it mentions

references/python-api.md, references/tokenizers.md, references/refget.md, references/cli.md (first 5 of 11 lines)

Files the text names, such as ones to read or write. Found by matching words, so treat them as pointers.

Found by matching wordsline 168 line 214 line 218 line 222 line 267

Licence

MIT, from the skill file

The terms its author shares it under, which let it be shown here.

From its settingsline 4 licence text

Other settings

compatibility: Python bindings require Python 3.10+ and gtars 0.10.0. The Rust meta-crate and gtars-cli are 0.10.0 and require a Rust toolchain supporting Edition 2024; upstream declares no rust-version. Bundled audit CLIs use only Python 3.10+ standard library and are local/network-free. Remote constructors, pretrained tokenizers, refget, and BEDbase caching require explicit network and storage approval. metadata: version: "1.5" last-reviewed: "2026-10-01" skill-author: K-Dense Inc.

More settings at the top of the file, shown as written.

From its settingsline 5 line 7
Other files in this skill (14) Close

The text

Open on GitHub

Most marks come from matching words in the file, so treat them as pointers.

1---
2name: gtars
3description: Supports 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.
4license: MIT
5compatibility: Python bindings require Python 3.10+ and gtars 0.10.0. The Rust meta-crate and gtars-cli are 0.10.0 and require a Rust toolchain supporting Edition 2024; upstream declares no rust-version. Bundled audit CLIs use only Python 3.10+ standard library and are local/network-free. Remote constructors, pretrained tokenizers, refget, and BEDbase caching require explicit network and storage approval.
6allowed-tools: Read Write Edit Bash Glob
7metadata:
8 version: "1.5"
9 last-reviewed: "2026-10-01"
10 skill-author: K-Dense Inc.
11---
13# Gtars
15Gtars provides native Rust implementations, Python bindings, and a feature-gated
16`gtars` binary for genomic interval and reference-sequence work. Start with the
17bundled local inspectors; call upstream code only after the data contract,
18provenance, resource bounds, and side effects are explicit.

Gtars

Gtars provides native Rust implementations, Python bindings, and a feature-gated gtars 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.

Raw lines 1 to 19
20## Verified snapshot (2026-10-01)
22- Published Python wheel: [`gtars==0.10.0`](https://pypi.org/project/gtars/0.10.0/),
23 released 2026-09-05, `Requires-Python >=3.10`; local examples were exercised
24 on Python 3.12 with synthetic intervals, fragments, and FASTA.
25- Rust meta-crate and CLI: [`gtars=0.10.0`](https://crates.io/crates/gtars/0.10.0)
26 and [`gtars-cli=0.10.0`](https://crates.io/crates/gtars-cli/0.10.0), released
27 2026-09-05. The binary is `gtars`; the wrapper's default feature set is empty.
28 Rust/CLI examples are source-reviewed templates, not compiled executions.
29- Direct [`gtars-refget=0.11.0`](https://crates.io/crates/gtars-refget/0.11.0)
30 was released 2026-09-22. Its Rust `list_sequences()` now returns a `Result`.
31 The wrapper requests refget 0.10.x; keep Cargo.lock because component
32 dependencies use compatible ranges, not exact pins.
33- A [`gtars-python-v0.11.0` Git tag](https://github.com/databio/gtars/releases/tag/gtars-python-v0.11.0)
34 exists, but PyPI still publishes 0.10.0. Do not assume that Git tags, Python
35 packages, components, or CLI versions coincide.
36- Published guides contain older examples. This review used the PyPI 0.10.0
37 source distribution/runtime, published CLI crate source, and current releases.
39The `license: MIT` field covers this skill. Published `gtars` crates declare MIT,
40while the GitHub repository currently displays BSD-2-Clause at the root; verify
41the exact artifact's license before redistribution.

Verified snapshot (2026-10-01)

  • Published Python wheel: [gtars==0.10.0](https://pypi.org/project/gtars/0.10.0/), released 2026-09-05, Requires-Python >=3.10; local examples were exercised on Python 3.12 with synthetic intervals, fragments, and FASTA.
  • Rust meta-crate and CLI: [gtars=0.10.0](https://crates.io/crates/gtars/0.10.0) and [gtars-cli=0.10.0](https://crates.io/crates/gtars-cli/0.10.0), released 2026-09-05. The binary is gtars; the wrapper's default feature set is empty. Rust/CLI examples are source-reviewed templates, not compiled executions.
  • Direct [gtars-refget=0.11.0](https://crates.io/crates/gtars-refget/0.11.0) was released 2026-09-22. Its Rust list_sequences() now returns a Result. The wrapper requests refget 0.10.x; keep Cargo.lock because component dependencies use compatible ranges, not exact pins.
  • A [gtars-python-v0.11.0 Git tag](https://github.com/databio/gtars/releases/tag/gtars-python-v0.11.0) exists, but PyPI still publishes 0.10.0. Do not assume that Git tags, Python packages, components, or CLI versions coincide.
  • Published guides contain older examples. This review used the PyPI 0.10.0 source distribution/runtime, published CLI crate source, and current releases.

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.

Raw lines 20 to 42
43## Native-code trust gate and exact pins
45The Python wheel contains a PyO3 native extension. Cargo installation compiles a
46native binary and can run dependency build scripts. Treat either path as code
47execution:
491. Confirm the official PyPI/crates.io/GitHub owner and immutable version.
502. Review filenames, platform tags, release provenance, license, and SHA-256.
51 Verify checksums from the exact release; do not reuse older binary archives.
523. Never run an untrusted prebuilt binary, wheel, source tree, Cargo build script,
53 or archive installer. Use isolation and CPU/RAM/disk/time limits.
544. Keep a lockfile and artifact hashes with the analysis manifest.
56After that review, create an isolated Python environment:
58```bash
59uv venv --python 3.11 .venv-gtars
60uv pip install --dry-run --python .venv-gtars/bin/python "gtars==0.10.0"
61uv pip install --python .venv-gtars/bin/python "gtars==0.10.0"
62.venv-gtars/bin/python -c \
63 "import gtars; assert gtars.__version__ == '0.10.0'; print(gtars.__version__)"
64```
66For the source-reviewed CLI release (installation template, not run in this audit):
68```bash
69cargo install gtars-cli --version 0.10.0 --locked
70gtars --version
71gtars --help
72```
74For a Rust project, this source-reviewed template pins the wrapper and enables
75only required features; retain Cargo.lock for transitive versions:
77```toml
78[dependencies]
79gtars = { version = "=0.10.0", default-features = false, features = [
80 "core", "overlaprs", "uniwig", "tokenizers", "refget"
81] }
82```
84Use `gtars-refget = "=0.11.0"` directly only when the newer direct component API is
85required and compatibility has been tested. Do not replace these pins with a Git
86branch or an unreviewed release.

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:

  1. Confirm the official PyPI/crates.io/GitHub owner and immutable version.
  2. Review filenames, platform tags, release provenance, license, and SHA-256. Verify checksums from the exact release; do not reuse older binary archives.
  3. Never run an untrusted prebuilt binary, wheel, source tree, Cargo build script, or archive installer. Use isolation and CPU/RAM/disk/time limits.
  4. 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.10.0"
uv pip install --python .venv-gtars/bin/python "gtars==0.10.0"
.venv-gtars/bin/python -c \
  "import gtars; assert gtars.__version__ == '0.10.0'; print(gtars.__version__)"

For the source-reviewed CLI release (installation template, not run in this audit):

cargo install gtars-cli --version 0.10.0 --locked
gtars --version
gtars --help

For a Rust project, this source-reviewed template pins the wrapper and enables only required features; retain Cargo.lock for transitive versions:

[dependencies]
gtars = { version = "=0.10.0", default-features = false, features = [
  "core", "overlaprs", "uniwig", "tokenizers", "refget"
] }

Use gtars-refget = "=0.11.0" 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.

Raw lines 43 to 87
Runs code bin/python :60
88## Genomic data contract
90Apply this contract before every operation:
921. **Coordinates:** BED intervals are 0-based and half-open: `[start, end)`.
93 Require `0 <= start < end <= contig_length`. Gtars coordinates are `u32`, so
94 reject values above `4,294,967,295`.
952. **Assembly:** record an assembly accession/version and the SHA-256 of the exact
96 chromosome-sizes or refget sequence-collection metadata. Never infer assembly
97 from filenames or `chr` prefixes.
983. **Contigs:** compare names exactly. `1` and `chr1`, alternate loci, decoys, and
99 mitochondrial aliases are not interchangeable. Rename or liftover only as a
100 separately reviewed transformation.
1014. **Sorting:** preserve the original file, then sort a copy by chromosome-sizes
102 order and numeric start/end when the operation requires it. Python
103 `RegionSet(path)` currently sorts lexicographically by contig and start while
104 loading; do not rely on original row order afterward. Construction does not
105 merge overlapping intervals; call `reduce()` explicitly when that is intended.
1065. **Strand:** BED6 uses `+`, `-`, or `.`. `Region.rest` retains trailing BED
107 fields, but a file-backed Python `RegionSet` currently initializes its separate
108 `strands` vector to `*`. `sort()` reorders regions without reordering that
109 vector, and several set operations drop strand. Preserve and
110 validate strand externally when it is scientifically meaningful.
1116. **Duplicates/adjacency:** choose policies explicitly. `reduce()` and consensus
112 merge overlapping **and adjacent** intervals; ordinary half-open overlap does
113 not treat `[0,10)` and `[10,20)` as overlapping.
115Run the local validator first:
117```bash
118python3 -B scripts/bed_validator.py \
119 --input data.bed.gz \
120 --assembly GRCh38.p14 \
121 --chrom-sizes GRCh38.p14.chrom.sizes \
122 --require-sorted
123```

Genomic data contract

Apply this contract before every operation:

  1. Coordinates: BED intervals are 0-based and half-open: [start, end). Require 0 <= start < end <= contig_length. Gtars coordinates are u32, so reject values above 4,294,967,295.
  2. 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 or chr prefixes.
  3. Contigs: compare names exactly. 1 and chr1, alternate loci, decoys, and mitochondrial aliases are not interchangeable. Rename or liftover only as a separately reviewed transformation.
  4. Sorting: preserve the original file, then sort a copy by chromosome-sizes order and numeric start/end when the operation requires it. Python RegionSet(path) currently sorts lexicographically by contig and start while loading; do not rely on original row order afterward. Construction does not merge overlapping intervals; call reduce() explicitly when that is intended.
  5. Strand: BED6 uses +, -, or .. Region.rest retains trailing BED fields, but a file-backed Python RegionSet currently initializes its separate strands vector to *. sort() reorders regions without reordering that vector, and several set operations drop strand. Preserve and validate strand externally when it is scientifically meaningful.
  6. 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
Raw lines 88 to 124
Runs code scripts/bed_validator.py :118
125## Safe local workflow
1271. Inventory local files, checksums, assembly, contig dictionary, coordinate
128 system, strand policy, patient/replicate groups, and intended outputs.
1292. Validate BED/fragments and estimate work. Pilot a small synthetic file.
1303. Choose Python, CLI, or Rust from the documented surface; do not translate API
131 names by guesswork.
1324. Set hard limits for input bytes/records/files, threads/jobs, memory, temporary
133 disk, output size, and wall time.
1345. Run in a dedicated output directory. Refuse collisions unless overwrite was
135 explicitly approved.
1366. Revalidate output sorting, bounds, row counts, checksums, and provenance.

Safe local workflow

  1. Inventory local files, checksums, assembly, contig dictionary, coordinate system, strand policy, patient/replicate groups, and intended outputs.
  2. Validate BED/fragments and estimate work. Pilot a small synthetic file.
  3. Choose Python, CLI, or Rust from the documented surface; do not translate API names by guesswork.
  4. Set hard limits for input bytes/records/files, threads/jobs, memory, temporary disk, output size, and wall time.
  5. Run in a dedicated output directory. Refuse collisions unless overwrite was explicitly approved.
  6. Revalidate output sorting, bounds, row counts, checksums, and provenance.
Raw lines 125 to 137
138## Current Python core
140Imports are from submodules, not the `gtars` top level:
142```python
143from gtars.models import Region, RegionSet
145query = RegionSet.from_regions(
146 [
147 Region(chr="chr1", start=100, end=200, rest=None),
148 Region(chr="chr1", start=300, end=400, rest=None),
149 ],
150 strands=["+", "-"],
152universe = RegionSet.from_vectors(
153 ["chr1", "chr1"],
154 [150, 500],
155 [350, 600],
158counts = query.count_overlaps(universe) # one count per query region
159flags = query.any_overlaps(universe) # one bool per query region
160indices = query.find_overlaps(universe) # indices into universe
161pieces = query.intersect_all(universe) # all intersection fragments
162fraction = query.coverage(universe) # fraction of query bp covered
163```
165`RegionSet.sort()` mutates and returns `None`. Set algebra includes `reduce`,
166`setdiff`, `pintersect` (pairs by index), `concat`, `union`, `jaccard`,
167`coverage`, `overlap_coefficient`, `intersect_all`, `closest`, `cluster`, and
168`gaps`. Read `references/python-api.md` before relying on ordering or strand.
170Consensus is a Python binding in a different module:
172```python
173from gtars.genomic_distributions import consensus
175rows = consensus([query, universe])
176# rows: [{"chr": ..., "start": ..., "end": ..., "count": ...}, ...]
177```
179The [consensus algorithm in the 0.10.0 release](https://github.com/databio/gtars/blob/gtars-v0.10.0/gtars-genomicdist/src/consensus.rs)
180counts input sets touching a merged union component, not support at every base.
181For example, `[0,10)` and `[5,15)` yield `[0,15)` with count 2, although its
182edges have one-set support. Do not describe a count-filtered consensus as
183basewise replicate agreement; use a support-segmenting method when that is the
184scientific requirement.
186Signal-track generation is **not** exposed as `gtars.uniwig` in Python 0.10.0;
187use the reviewed CLI or Rust API. `RegionSet.coverage()` is a base-pair set metric,
188not a WIG/bigWig generator.
190Coverage tracks, overlap counts, and consensus are separate analysis outputs.
191Do not feed a smoothed signal into interval consensus or interpret a consensus
192count as per-base support.

Current Python core

Imports are from submodules, not the gtars top level:

from gtars.models import Region, RegionSet

query = RegionSet.from_regions(
    [
        Region(chr="chr1", start=100, end=200, rest=None),
        Region(chr="chr1", start=300, end=400, rest=None),
    ],
    strands=["+", "-"],
)
universe = RegionSet.from_vectors(
    ["chr1", "chr1"],
    [150, 500],
    [350, 600],
)

counts = query.count_overlaps(universe)       # one count per query region
flags = query.any_overlaps(universe)          # one bool per query region
indices = query.find_overlaps(universe)       # indices into universe
pieces = query.intersect_all(universe)        # all intersection fragments
fraction = query.coverage(universe)           # fraction of query bp covered

RegionSet.sort() mutates and returns None. Set algebra includes reduce, setdiff, pintersect (pairs by index), concat, union, jaccard, coverage, overlap_coefficient, intersect_all, closest, cluster, and gaps. Read references/python-api.md before relying on ordering or strand.

Consensus is a Python binding in a different module:

from gtars.genomic_distributions import consensus

rows = consensus([query, universe])
# rows: [{"chr": ..., "start": ..., "end": ..., "count": ...}, ...]

The consensus algorithm in the 0.10.0 release counts input sets touching a merged union component, not support at every base. For example, [0,10) and [5,15) yield [0,15) with count 2, although its edges have one-set support. Do not describe a count-filtered consensus as basewise replicate agreement; use a support-segmenting method when that is the scientific requirement.

Signal-track generation is not exposed as gtars.uniwig in Python 0.10.0; use the reviewed CLI or Rust API. RegionSet.coverage() is a base-pair set metric, not a WIG/bigWig generator.

Coverage tracks, overlap counts, and consensus are separate analysis outputs. Do not feed a smoothed signal into interval consensus or interpret a consensus count as per-base support.

Raw lines 138 to 193
Reads a file references/python-api.md :168
194## Tokenizers, fragments, and reference stores
196Use only local constructors by default:
198```python
199from gtars.models import RegionSet
200from gtars.tokenizers import Tokenizer
202tokenizer = Tokenizer.from_bed("reviewed-universe.bed")
203regions = RegionSet("local-query.bed")
204tokens = tokenizer.tokenize(regions)
205encoding = tokenizer(regions)
206ids = encoding["input_ids"]
207assert tokenizer.vocab_size == len(tokenizer.get_vocab())
208```
210`Tokenizer.from_pretrained(name)` contacts Hugging Face and writes its cache when
211the argument is not an existing local directory; it exposes no revision or cache
212argument. Obtain explicit approval, fetch an immutable revision through a reviewed
213mechanism, verify checksums, then pass the local snapshot directory. See
216Python 0.10.0 refget batch imports return `ImportReport`, not a list; read
217`report.collections` and its per-run counters. The CLI adds `refget export` and
218`refget lock-status`; see `references/refget.md`.
220For refget, prefer `RefgetStore.in_memory()` or `RefgetStore.open_local(path)`.
221`open_remote(cache_path, remote_url)` contacts a remote service, creates/uses a
222local cache, and performs on-demand range reads. See `references/refget.md`.

Tokenizers, fragments, and reference stores

Use only local constructors by default:

from gtars.models import RegionSet
from gtars.tokenizers import Tokenizer

tokenizer = Tokenizer.from_bed("reviewed-universe.bed")
regions = RegionSet("local-query.bed")
tokens = tokenizer.tokenize(regions)
encoding = tokenizer(regions)
ids = encoding["input_ids"]
assert tokenizer.vocab_size == len(tokenizer.get_vocab())

Tokenizer.from_pretrained(name) contacts Hugging Face and writes its cache when the argument is not an existing local directory; it exposes no revision or cache argument. Obtain explicit approval, fetch an immutable revision through a reviewed mechanism, verify checksums, then pass the local snapshot directory. See references/tokenizers.md.

Python 0.10.0 refget batch imports return ImportReport, not a list; read report.collections and its per-run counters. The CLI adds refget export and refget lock-status; see references/refget.md.

For refget, prefer RefgetStore.in_memory() or RefgetStore.open_local(path). open_remote(cache_path, remote_url) contacts a remote service, creates/uses a local cache, and performs on-demand range reads. See references/refget.md.

Raw lines 194 to 223
Reads a file references/tokenizers.md :214
Reads a file references/refget.md :218
224## Network and cache gate
226No download or cache write is implicit in this skill. Before any network-capable
227upstream call:
229- obtain explicit user approval for the exact host, endpoint, data, and cache;
230- allowlist HTTPS hosts and reject unreviewed redirects;
231- record immutable revision/identifier, retrieval time, expected SHA-256 and
232 domain digest, assembly accession, size quota, and provenance;
233- disclose sensitive BED coordinates, barcodes, sample labels, and reference
234 choices that could leave the approved environment;
235- validate downloaded content as untrusted before using it.
237Important side effects:
239- `RegionSet(path)` has HTTP support; a nonexistent local string may be treated as
240 a URL. Check that the local path exists before construction.
241- `Tokenizer.from_pretrained` may download `universe.bed.gz` into the Hugging Face
242 cache.
243- `RefgetStore.on_disk` creates/writes a store. `open_remote` loads remote metadata
244 and enables persistence by default.
245- `gtars bbcache` creates cache directories even when constructing the client.
246 Cache/download commands use `BBCLIENT_CACHE` (default `~/.bbcache`) and
247 `BEDBASE_API` (default `https://api.bedbase.org`).

Network and cache gate

No download or cache write is implicit in this skill. Before any network-capable upstream call:

  • obtain explicit user approval for the exact host, endpoint, data, and cache;
  • allowlist HTTPS hosts and reject unreviewed redirects;
  • record immutable revision/identifier, retrieval time, expected SHA-256 and domain digest, assembly accession, size quota, and provenance;
  • disclose sensitive BED coordinates, barcodes, sample labels, and reference choices that could leave the approved environment;
  • validate downloaded content as untrusted before using it.

Important side effects:

  • RegionSet(path) has HTTP support; a nonexistent local string may be treated as a URL. Check that the local path exists before construction.
  • Tokenizer.from_pretrained may download universe.bed.gz into the Hugging Face cache.
  • RefgetStore.on_disk creates/writes a store. open_remote loads remote metadata and enables persistence by default.
  • gtars bbcache creates cache directories even when constructing the client. Cache/download commands use BBCLIENT_CACHE (default ~/.bbcache) and BEDBASE_API (default https://api.bedbase.org).
Raw lines 224 to 248
249## Sensitive metadata and leakage
251Genomic intervals, rare loci, barcodes, sample names, phenotypes, and assembly
252choices can be identifying. Keep full paths and raw coordinates out of logs;
253default bundled reports redact paths and emit only counts/checksums.
255Freeze splits by patient/donor first, then keep all technical and biological
256replicates in the same split. Fit consensus sets, universes, tokenizers, scaling,
257thresholds, and QC rules on training data only. Do not create a universe from all
258samples and then split: that leaks validation/test locus support. Record excluded
259samples and replicate aggregation separately.

Sensitive metadata and leakage

Genomic intervals, rare loci, barcodes, sample names, phenotypes, and assembly choices can be identifying. Keep full paths and raw coordinates out of logs; default bundled reports redact paths and emit only counts/checksums.

Freeze splits by patient/donor first, then keep all technical and biological replicates in the same split. Fit consensus sets, universes, tokenizers, scaling, thresholds, and QC rules on training data only. Do not create a universe from all samples and then split: that leaks validation/test locus support. Record excluded samples and replicate aggregation separately.

Raw lines 249 to 260
261## Bundled deterministic CLIs
263All six helpers reject URLs, traversal, symlinks, and special files; apply byte,
264record, file, coordinate, and worker caps; use no network or gtars import; and
265write no output files. Plans contain fixed argv templates and never launch them.
266The fragment-score planner rejects the source-confirmed invalid right-cut query
267in the CLI 0.10.0 default ATAC mode; see `references/cli.md` before choosing
268fragment-body counts or a separately validated cut-site method.
270```bash
271python3 -B scripts/bed_validator.py --help
272python3 -B scripts/execution_plan.py --help
273python3 -B scripts/tokenizer_manifest.py --help
274python3 -B scripts/refget_digest_plan.py --help
275python3 -B scripts/coverage_preflight.py --help
276python3 -B scripts/artifact_inspector.py --help
277```
279Run synthetic tests without bytecode:
281```bash
282PYTHONDONTWRITEBYTECODE=1 python3 -B -m unittest discover \
283 -s tests/gtars -p 'test_*.py' -v
284```

Bundled deterministic CLIs

All six helpers reject URLs, traversal, symlinks, and special files; apply byte, record, file, coordinate, and worker caps; use no network or gtars import; and write no output files. Plans contain fixed argv templates and never launch them. The fragment-score planner rejects the source-confirmed invalid right-cut query in the CLI 0.10.0 default ATAC mode; see references/cli.md before choosing fragment-body counts or a separately validated cut-site method.

python3 -B scripts/bed_validator.py --help
python3 -B scripts/execution_plan.py --help
python3 -B scripts/tokenizer_manifest.py --help
python3 -B scripts/refget_digest_plan.py --help
python3 -B scripts/coverage_preflight.py --help
python3 -B scripts/artifact_inspector.py --help

Run synthetic tests without bytecode:

PYTHONDONTWRITEBYTECODE=1 python3 -B -m unittest discover \
  -s tests/gtars -p 'test_*.py' -v
Raw lines 261 to 285
Reads a file references/cli.md :267
Runs code scripts/bed_validator.py :271
Runs code scripts/execution_plan.py :272
Runs code scripts/tokenizer_manifest.py :273
Runs code scripts/refget_digest_plan.py :274
Runs code scripts/coverage_preflight.py :275
Runs code scripts/artifact_inspector.py :276
286## Migration traps removed in 1.1
288Do not use stale examples containing `gtars.RegionSet`,
289`RegionSet.from_bed`, `TreeTokenizer`, `gtars.igd.build_index`,
290`gtars.uniwig.coverage_from_bed`, `gtars.RefgetStore`, global
291`set_option`/`set_log_level`, `parallel_apply`, or invented exception classes.
292CLI forms such as `uniwig generate`, `igd build`, `scoring score`, and
293`fragsplit cluster-split` are also stale for 0.10.0.
295Upstream's published docs and stubs have some drift (for example the older
296`GlobalRefgetStore` tutorial and incomplete 0.10.0 stubs). Prefer installed
297signature smoke tests plus immutable tagged source when they conflict.

Migration traps removed in 1.1

Do not use stale examples containing gtars.RegionSet, RegionSet.from_bed, TreeTokenizer, gtars.igd.build_index, gtars.uniwig.coverage_from_bed, gtars.RefgetStore, global set_option/set_log_level, parallel_apply, or invented exception classes. CLI forms such as uniwig generate, igd build, scoring score, and fragsplit cluster-split are also stale for 0.10.0.

Upstream's published docs and stubs have some drift (for example the older GlobalRefgetStore tutorial and incomplete 0.10.0 stubs). Prefer installed signature smoke tests plus immutable tagged source when they conflict.

Raw lines 286 to 298
299## Bundled references
301These are the only six bundled references; all links are local and present:
303- `references/python-api.md` — exact Python 0.10.0 imports and behavior
304- `references/overlap.md` — overlap/count/set algebra and consensus semantics
305- `references/coverage.md` — uniwig, bigWig, coverage, sorting, and resources
306- `references/tokenizers.md` — tokenizer/universe and fragment compatibility
307- `references/refget.md` — digests, stores, BEDbase, network/cache controls
308- `references/cli.md` — CLI 0.10.0 commands, features, and migrations

Bundled references

These are the only six bundled references; all links are local and present:

Raw lines 299 to 309
Reads a file references/python-api.md :303
Reads a file references/overlap.md :304
Reads a file references/coverage.md :305
Reads a file references/tokenizers.md :306
Reads a file references/refget.md :307
Reads a file references/cli.md :308
Boilerplate, lines 310 to 325. The same text appears in 125 other files here. Close
310## Citing Scientific Agent Skills
312This skill is part of Scientific Agent Skills by K-Dense. If it materially contributed to a
313manuscript, report, presentation, or code release, add the paper to the references or
314software section and tell the user you did so:
316> Kassis, T., Agarwal, V., He, Y., Patel, D., & Brueckner, A. M. (2026). Scientific Agent
317> Skills: A Library of Procedural Knowledge for Research Agents. arXiv:2609.00065.
318> https://doi.org/10.48550/arXiv.2609.00065
320Always cite the current version. The DOI and https://arxiv.org/abs/2609.00065 resolve to the
321latest arXiv version, so never append a version suffix such as `v1`. When network access is
322available, fetch https://arxiv.org/abs/2609.00065 (or
323http://export.arxiv.org/api/query?id_list=2609.00065) before writing the reference and take
324the author list, year, and version from that record. If the record lists a journal reference
325or publisher DOI, cite the published version instead.

From K-Dense-AI/scientific-agent-skills at 5f2bc03, 2026-10-26. Not read by a model yet. Summary and techniques by Claude Opus 5.5 on 2026-11-06.