[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M73GT5DEDHG7C7R9MV7DCN94":3,"skill-same:01M73GT5DEDHG7C7R9MV7DCN94":54},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":30,"commitSha":31,"skillDirectory":32,"forksCount":33,"repositoryHtmlUrl":34,"repositoryHomepageUrl":35,"ownerHtmlUrl":36,"ownerBlogUrl":37,"ownerDescription":38,"updatedAt":39,"install":40,"resources":53},"01M73GT5DEDHG7C7R9MV7DCN94","gtars",null,"Supports Gtars for local genomic interval models and set algebra, overlaps and counts, consensus and coverage, tokenization, fragment processing, and refget\u002FBEDbase planning across Python, Rust, and the CLI.","bg-szy\u002FTOP-SKILLS","bg-szy","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F106576190?v=4","01M73A4E8KPV67SFXRY8XZGNBX","ShuZhiyong","01M73A4E96MQ294MHM74TZBVQD",6,"MIT","https:\u002F\u002Fgithub.com\u002Fbg-szy\u002FTOP-SKILLS\u002Fblob\u002Fmaster\u002Fskills\u002Fawesome-skills\u002Fgtars\u002FSKILL.md",[],[],"2026-11-11 15:11:14",false,"---\nname: gtars\ndescription: Supports Gtars for local genomic interval models and set algebra, overlaps and counts, consensus and coverage, tokenization, fragment processing, and refget\u002FBEDbase planning across Python, Rust, and the CLI.\nlicense: MIT\ncompatibility: 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\u002Fnetwork-free. Remote constructors, pretrained tokenizers, refget, and BEDbase caching require explicit network and storage approval.\nallowed-tools: Read Write Edit Bash Glob\nmetadata:\n  version: \"1.5\"\n  last-reviewed: \"2026-10-01\"\n  skill-author: K-Dense Inc.\n---\n\n# Gtars\n\nGtars provides native Rust implementations, Python bindings, and a feature-gated\n`gtars` binary for genomic interval and reference-sequence work. Start with the\nbundled local inspectors; call upstream code only after the data contract,\nprovenance, resource bounds, and side effects are explicit.\n\n## Verified snapshot (2026-10-01)\n\n- Published Python wheel: [`gtars==0.10.0`](https:\u002F\u002Fpypi.org\u002Fproject\u002Fgtars\u002F0.10.0\u002F),\n  released 2026-09-05, `Requires-Python >=3.10`; local examples were exercised\n  on Python 3.12 with synthetic intervals, fragments, and FASTA.\n- Rust meta-crate and CLI: [`gtars=0.10.0`](https:\u002F\u002Fcrates.io\u002Fcrates\u002Fgtars\u002F0.10.0)\n  and [`gtars-cli=0.10.0`](https:\u002F\u002Fcrates.io\u002Fcrates\u002Fgtars-cli\u002F0.10.0), released\n  2026-09-05. The binary is `gtars`; the wrapper's default feature set is empty.\n  Rust\u002FCLI examples are source-reviewed templates, not compiled executions.\n- Direct [`gtars-refget=0.11.0`](https:\u002F\u002Fcrates.io\u002Fcrates\u002Fgtars-refget\u002F0.11.0)\n  was released 2026-09-22. Its Rust `list_sequences()` now returns a `Result`.\n  The wrapper requests refget 0.10.x; keep Cargo.lock because component\n  dependencies use compatible ranges, not exact pins.\n- A [`gtars-python-v0.11.0` Git tag](https:\u002F\u002Fgithub.com\u002Fdatabio\u002Fgtars\u002Freleases\u002Ftag\u002Fgtars-python-v0.11.0)\n  exists, but PyPI still publishes 0.10.0. Do not assume that Git tags, Python\n  packages, components, or CLI versions coincide.\n- Published guides contain older examples. This review used the PyPI 0.10.0\n  source distribution\u002Fruntime, published CLI crate source, and current releases.\n\nThe `license: MIT` field covers this skill. Published `gtars` crates declare MIT,\nwhile the GitHub repository currently displays BSD-2-Clause at the root; verify\nthe exact artifact's license before redistribution.\n\n## Native-code trust gate and exact pins\n\nThe Python wheel contains a PyO3 native extension. Cargo installation compiles a\nnative binary and can run dependency build scripts. Treat either path as code\nexecution:\n\n1. Confirm the official PyPI\u002Fcrates.io\u002FGitHub owner and immutable version.\n2. Review filenames, platform tags, release provenance, license, and SHA-256.\n   Verify checksums from the exact release; do not reuse older binary archives.\n3. Never run an untrusted prebuilt binary, wheel, source tree, Cargo build script,\n   or archive installer. Use isolation and CPU\u002FRAM\u002Fdisk\u002Ftime limits.\n4. Keep a lockfile and artifact hashes with the analysis manifest.\n\nAfter that review, create an isolated Python environment:\n\n```bash\nuv venv --python 3.11 .venv-gtars\nuv pip install --dry-run --python .venv-gtars\u002Fbin\u002Fpython \"gtars==0.10.0\"\nuv pip install --python .venv-gtars\u002Fbin\u002Fpython \"gtars==0.10.0\"\n.venv-gtars\u002Fbin\u002Fpython -c \\\n  \"import gtars; assert gtars.__version__ == '0.10.0'; print(gtars.__version__)\"\n```\n\nFor the source-reviewed CLI release (installation template, not run in this audit):\n\n```bash\ncargo install gtars-cli --version 0.10.0 --locked\ngtars --version\ngtars --help\n```\n\nFor a Rust project, this source-reviewed template pins the wrapper and enables\nonly required features; retain Cargo.lock for transitive versions:\n\n```toml\n[dependencies]\ngtars = { version = \"=0.10.0\", default-features = false, features = [\n  \"core\", \"overlaprs\", \"uniwig\", \"tokenizers\", \"refget\"\n] }\n```\n\nUse `gtars-refget = \"=0.11.0\"` directly only when the newer direct component API is\nrequired and compatibility has been tested. Do not replace these pins with a Git\nbranch or an unreviewed release.\n\n## Genomic data contract\n\nApply this contract before every operation:\n\n1. **Coordinates:** BED intervals are 0-based and half-open: `[start, end)`.\n   Require `0 \u003C= start \u003C end \u003C= contig_length`. Gtars coordinates are `u32`, so\n   reject values above `4,294,967,295`.\n2. **Assembly:** record an assembly accession\u002Fversion and the SHA-256 of the exact\n   chromosome-sizes or refget sequence-collection metadata. Never infer assembly\n   from filenames or `chr` prefixes.\n3. **Contigs:** compare names exactly. `1` and `chr1`, alternate loci, decoys, and\n   mitochondrial aliases are not interchangeable. Rename or liftover only as a\n   separately reviewed transformation.\n4. **Sorting:** preserve the original file, then sort a copy by chromosome-sizes\n   order and numeric start\u002Fend when the operation requires it. Python\n   `RegionSet(path)` currently sorts lexicographically by contig and start while\n   loading; do not rely on original row order afterward. Construction does not\n   merge overlapping intervals; call `reduce()` explicitly when that is intended.\n5. **Strand:** BED6 uses `+`, `-`, or `.`. `Region.rest` retains trailing BED\n   fields, but a file-backed Python `RegionSet` currently initializes its separate\n   `strands` vector to `*`. `sort()` reorders regions without reordering that\n   vector, and several set operations drop strand. Preserve and\n   validate strand externally when it is scientifically meaningful.\n6. **Duplicates\u002Fadjacency:** choose policies explicitly. `reduce()` and consensus\n   merge overlapping **and adjacent** intervals; ordinary half-open overlap does\n   not treat `[0,10)` and `[10,20)` as overlapping.\n\nRun the local validator first:\n\n```bash\npython3 -B scripts\u002Fbed_validator.py \\\n  --input data.bed.gz \\\n  --assembly GRCh38.p14 \\\n  --chrom-sizes GRCh38.p14.chrom.sizes \\\n  --require-sorted\n```\n\n## Safe local workflow\n\n1. Inventory local files, checksums, assembly, contig dictionary, coordinate\n   system, strand policy, patient\u002Freplicate groups, and intended outputs.\n2. Validate BED\u002Ffragments and estimate work. Pilot a small synthetic file.\n3. Choose Python, CLI, or Rust from the documented surface; do not translate API\n   names by guesswork.\n4. Set hard limits for input bytes\u002Frecords\u002Ffiles, threads\u002Fjobs, memory, temporary\n   disk, output size, and wall time.\n5. Run in a dedicated output directory. Refuse collisions unless overwrite was\n   explicitly approved.\n6. Revalidate output sorting, bounds, row counts, checksums, and provenance.\n\n## Current Python core\n\nImports are from submodules, not the `gtars` top level:\n\n```python\nfrom gtars.models import Region, RegionSet\n\nquery = RegionSet.from_regions(\n    [\n        Region(chr=\"chr1\", start=100, end=200, rest=None),\n        Region(chr=\"chr1\", start=300, end=400, rest=None),\n    ],\n    strands=[\"+\", \"-\"],\n)\nuniverse = RegionSet.from_vectors(\n    [\"chr1\", \"chr1\"],\n    [150, 500],\n    [350, 600],\n)\n\ncounts = query.count_overlaps(universe)       # one count per query region\nflags = query.any_overlaps(universe)          # one bool per query region\nindices = query.find_overlaps(universe)       # indices into universe\npieces = query.intersect_all(universe)        # all intersection fragments\nfraction = query.coverage(universe)           # fraction of query bp covered\n```\n\n`RegionSet.sort()` mutates and returns `None`. Set algebra includes `reduce`,\n`setdiff`, `pintersect` (pairs by index), `concat`, `union`, `jaccard`,\n`coverage`, `overlap_coefficient`, `intersect_all`, `closest`, `cluster`, and\n`gaps`. Read `references\u002Fpython-api.md` before relying on ordering or strand.\n\nConsensus is a Python binding in a different module:\n\n```python\nfrom gtars.genomic_distributions import consensus\n\nrows = consensus([query, universe])\n# rows: [{\"chr\": ..., \"start\": ..., \"end\": ..., \"count\": ...}, ...]\n```\n\nThe [consensus algorithm in the 0.10.0 release](https:\u002F\u002Fgithub.com\u002Fdatabio\u002Fgtars\u002Fblob\u002Fgtars-v0.10.0\u002Fgtars-genomicdist\u002Fsrc\u002Fconsensus.rs)\ncounts input sets touching a merged union component, not support at every base.\nFor example, `[0,10)` and `[5,15)` yield `[0,15)` with count 2, although its\nedges have one-set support. Do not describe a count-filtered consensus as\nbasewise replicate agreement; use a support-segmenting method when that is the\nscientific requirement.\n\nSignal-track generation is **not** exposed as `gtars.uniwig` in Python 0.10.0;\nuse the reviewed CLI or Rust API. `RegionSet.coverage()` is a base-pair set metric,\nnot a WIG\u002FbigWig generator.\n\nCoverage tracks, overlap counts, and consensus are separate analysis outputs.\nDo not feed a smoothed signal into interval consensus or interpret a consensus\ncount as per-base support.\n\n## Tokenizers, fragments, and reference stores\n\nUse only local constructors by default:\n\n```python\nfrom gtars.models import RegionSet\nfrom gtars.tokenizers import Tokenizer\n\ntokenizer = Tokenizer.from_bed(\"reviewed-universe.bed\")\nregions = RegionSet(\"local-query.bed\")\ntokens = tokenizer.tokenize(regions)\nencoding = tokenizer(regions)\nids = encoding[\"input_ids\"]\nassert tokenizer.vocab_size == len(tokenizer.get_vocab())\n```\n\n`Tokenizer.from_pretrained(name)` contacts Hugging Face and writes its cache when\nthe argument is not an existing local directory; it exposes no revision or cache\nargument. Obtain explicit approval, fetch an immutable revision through a reviewed\nmechanism, verify checksums, then pass the local snapshot directory. See\n`references\u002Ftokenizers.md`.\n\nPython 0.10.0 refget batch imports return `ImportReport`, not a list; read\n`report.collections` and its per-run counters. The CLI adds `refget export` and\n`refget lock-status`; see `references\u002Frefget.md`.\n\nFor refget, prefer `RefgetStore.in_memory()` or `RefgetStore.open_local(path)`.\n`open_remote(cache_path, remote_url)` contacts a remote service, creates\u002Fuses a\nlocal cache, and performs on-demand range reads. See `references\u002Frefget.md`.\n\n## Network and cache gate\n\nNo download or cache write is implicit in this skill. Before any network-capable\nupstream call:\n\n- obtain explicit user approval for the exact host, endpoint, data, and cache;\n- allowlist HTTPS hosts and reject unreviewed redirects;\n- record immutable revision\u002Fidentifier, retrieval time, expected SHA-256 and\n  domain digest, assembly accession, size quota, and provenance;\n- disclose sensitive BED coordinates, barcodes, sample labels, and reference\n  choices that could leave the approved environment;\n- validate downloaded content as untrusted before using it.\n\nImportant side effects:\n\n- `RegionSet(path)` has HTTP support; a nonexistent local string may be treated as\n  a URL. Check that the local path exists before construction.\n- `Tokenizer.from_pretrained` may download `universe.bed.gz` into the Hugging Face\n  cache.\n- `RefgetStore.on_disk` creates\u002Fwrites a store. `open_remote` loads remote metadata\n  and enables persistence by default.\n- `gtars bbcache` creates cache directories even when constructing the client.\n  Cache\u002Fdownload commands use `BBCLIENT_CACHE` (default `~\u002F.bbcache`) and\n  `BEDBASE_API` (default `https:\u002F\u002Fapi.bedbase.org`).\n\n## Sensitive metadata and leakage\n\nGenomic intervals, rare loci, barcodes, sample names, phenotypes, and assembly\nchoices can be identifying. Keep full paths and raw coordinates out of logs;\ndefault bundled reports redact paths and emit only counts\u002Fchecksums.\n\nFreeze splits by patient\u002Fdonor first, then keep all technical and biological\nreplicates in the same split. Fit consensus sets, universes, tokenizers, scaling,\nthresholds, and QC rules on training data only. Do not create a universe from all\nsamples and then split: that leaks validation\u002Ftest locus support. Record excluded\nsamples and replicate aggregation separately.\n\n## Bundled deterministic CLIs\n\nAll six helpers reject URLs, traversal, symlinks, and special files; apply byte,\nrecord, file, coordinate, and worker caps; use no network or gtars import; and\nwrite no output files. Plans contain fixed argv templates and never launch them.\nThe fragment-score planner rejects the source-confirmed invalid right-cut query\nin the CLI 0.10.0 default ATAC mode; see `references\u002Fcli.md` before choosing\nfragment-body counts or a separately validated cut-site method.\n\n```bash\npython3 -B scripts\u002Fbed_validator.py --help\npython3 -B scripts\u002Fexecution_plan.py --help\npython3 -B scripts\u002Ftokenizer_manifest.py --help\npython3 -B scripts\u002Frefget_digest_plan.py --help\npython3 -B scripts\u002Fcoverage_preflight.py --help\npython3 -B scripts\u002Fartifact_inspector.py --help\n```\n\nRun synthetic tests without bytecode:\n\n```bash\nPYTHONDONTWRITEBYTECODE=1 python3 -B -m unittest discover \\\n  -s tests\u002Fgtars -p 'test_*.py' -v\n```\n\n## Migration traps removed in 1.1\n\nDo not use stale examples containing `gtars.RegionSet`,\n`RegionSet.from_bed`, `TreeTokenizer`, `gtars.igd.build_index`,\n`gtars.uniwig.coverage_from_bed`, `gtars.RefgetStore`, global\n`set_option`\u002F`set_log_level`, `parallel_apply`, or invented exception classes.\nCLI forms such as `uniwig generate`, `igd build`, `scoring score`, and\n`fragsplit cluster-split` are also stale for 0.10.0.\n\nUpstream's published docs and stubs have some drift (for example the older\n`GlobalRefgetStore` tutorial and incomplete 0.10.0 stubs). Prefer installed\nsignature smoke tests plus immutable tagged source when they conflict.\n\n## Bundled references\n\nThese are the only six bundled references; all links are local and present:\n\n- `references\u002Fpython-api.md` — exact Python 0.10.0 imports and behavior\n- `references\u002Foverlap.md` — overlap\u002Fcount\u002Fset algebra and consensus semantics\n- `references\u002Fcoverage.md` — uniwig, bigWig, coverage, sorting, and resources\n- `references\u002Ftokenizers.md` — tokenizer\u002Funiverse and fragment compatibility\n- `references\u002Frefget.md` — digests, stores, BEDbase, network\u002Fcache controls\n- `references\u002Fcli.md` — CLI 0.10.0 commands, features, and migrations\n\n## Citing Scientific Agent Skills\n\nThis skill is part of Scientific Agent Skills by K-Dense. If it materially contributed to a\nmanuscript, report, presentation, or code release, add the paper to the references or\nsoftware section and tell the user you did so:\n\n> Kassis, T., Agarwal, V., He, Y., Patel, D., & Brueckner, A. M. (2026). Scientific Agent\n> Skills: A Library of Procedural Knowledge for Research Agents. arXiv:2609.00065.\n> https:\u002F\u002Fdoi.org\u002F10.48550\u002FarXiv.2609.00065\n\nAlways cite the current version. The DOI and https:\u002F\u002Farxiv.org\u002Fabs\u002F2609.00065 resolve to the\nlatest arXiv version, so never append a version suffix such as `v1`. When network access is\navailable, fetch https:\u002F\u002Farxiv.org\u002Fabs\u002F2609.00065 (or\nhttp:\u002F\u002Fexport.arxiv.org\u002Fapi\u002Fquery?id_list=2609.00065) before writing the reference and take\nthe author list, year, and version from that record. If the record lists a journal reference\nor publisher DOI, cite the published version instead.\n","# Gtars\n\nGtars provides native Rust implementations, Python bindings, and a feature-gated\n`gtars` binary for genomic interval and reference-sequence work. Start with the\nbundled local inspectors; call upstream code only after the data contract,\nprovenance, resource bounds, and side effects are explicit.\n\n## Verified snapshot (2026-10-01)\n\n- Published Python wheel: [`gtars==0.10.0`](https:\u002F\u002Fpypi.org\u002Fproject\u002Fgtars\u002F0.10.0\u002F),\n  released 2026-09-05, `Requires-Python >=3.10`; local examples were exercised\n  on Python 3.12 with synthetic intervals, fragments, and FASTA.\n- Rust meta-crate and CLI: [`gtars=0.10.0`](https:\u002F\u002Fcrates.io\u002Fcrates\u002Fgtars\u002F0.10.0)\n  and [`gtars-cli=0.10.0`](https:\u002F\u002Fcrates.io\u002Fcrates\u002Fgtars-cli\u002F0.10.0), released\n  2026-09-05. The binary is `gtars`; the wrapper's default feature set is empty.\n  Rust\u002FCLI examples are source-reviewed templates, not compiled executions.\n- Direct [`gtars-refget=0.11.0`](https:\u002F\u002Fcrates.io\u002Fcrates\u002Fgtars-refget\u002F0.11.0)\n  was released 2026-09-22. Its Rust `list_sequences()` now returns a `Result`.\n  The wrapper requests refget 0.10.x; keep Cargo.lock because component\n  dependencies use compatible ranges, not exact pins.\n- A [`gtars-python-v0.11.0` Git tag](https:\u002F\u002Fgithub.com\u002Fdatabio\u002Fgtars\u002Freleases\u002Ftag\u002Fgtars-python-v0.11.0)\n  exists, but PyPI still publishes 0.10.0. Do not assume that Git tags, Python\n  packages, components, or CLI versions coincide.\n- Published guides contain older examples. This review used the PyPI 0.10.0\n  source distribution\u002Fruntime, published CLI crate source, and current releases.\n\nThe `license: MIT` field covers this skill. Published `gtars` crates declare MIT,\nwhile the GitHub repository currently displays BSD-2-Clause at the root; verify\nthe exact artifact's license before redistribution.\n\n## Native-code trust gate and exact pins\n\nThe Python wheel contains a PyO3 native extension. Cargo installation compiles a\nnative binary and can run dependency build scripts. Treat either path as code\nexecution:\n\n1. Confirm the official PyPI\u002Fcrates.io\u002FGitHub owner and immutable version.\n2. Review filenames, platform tags, release provenance, license, and SHA-256.\n   Verify checksums from the exact release; do not reuse older binary archives.\n3. Never run an untrusted prebuilt binary, wheel, source tree, Cargo build script,\n   or archive installer. Use isolation and CPU\u002FRAM\u002Fdisk\u002Ftime limits.\n4. Keep a lockfile and artifact hashes with the analysis manifest.\n\nAfter that review, create an isolated Python environment:\n\n```bash\nuv venv --python 3.11 .venv-gtars\nuv pip install --dry-run --python .venv-gtars\u002Fbin\u002Fpython \"gtars==0.10.0\"\nuv pip install --python .venv-gtars\u002Fbin\u002Fpython \"gtars==0.10.0\"\n.venv-gtars\u002Fbin\u002Fpython -c \\\n  \"import gtars; assert gtars.__version__ == '0.10.0'; print(gtars.__version__)\"\n```\n\nFor the source-reviewed CLI release (installation template, not run in this audit):\n\n```bash\ncargo install gtars-cli --version 0.10.0 --locked\ngtars --version\ngtars --help\n```\n\nFor a Rust project, this source-reviewed template pins the wrapper and enables\nonly required features; retain Cargo.lock for transitive versions:\n\n```toml\n[dependencies]\ngtars = { version = \"=0.10.0\", default-features = false, features = [\n  \"core\", \"overlaprs\", \"uniwig\", \"tokenizers\", \"refget\"\n] }\n```\n\nUse `gtars-refget = \"=0.11.0\"` directly only when the newer direct component API is\nrequired and compatibility has been tested. Do not replace these pins with a Git\nbranch or an unreviewed release.\n\n## Genomic data contract\n\nApply this contract before every operation:\n\n1. **Coordinates:** BED intervals are 0-based and half-open: `[start, end)`.\n   Require `0 \u003C= start \u003C end \u003C= contig_length`. Gtars coordinates are `u32`, so\n   reject values above `4,294,967,295`.\n2. **Assembly:** record an assembly accession\u002Fversion and the SHA-256 of the exact\n   chromosome-sizes or refget sequence-collection metadata. Never infer assembly\n   from filenames or `chr` prefixes.\n3. **Contigs:** compare names exactly. `1` and `chr1`, alternate loci, decoys, and\n   mitochondrial aliases are not interchangeable. Rename or liftover only as a\n   separately reviewed transformation.\n4. **Sorting:** preserve the original file, then sort a copy by chromosome-sizes\n   order and numeric start\u002Fend when the operation requires it. Python\n   `RegionSet(path)` currently sorts lexicographically by contig and start while\n   loading; do not rely on original row order afterward. Construction does not\n   merge overlapping intervals; call `reduce()` explicitly when that is intended.\n5. **Strand:** BED6 uses `+`, `-`, or `.`. `Region.rest` retains trailing BED\n   fields, but a file-backed Python `RegionSet` currently initializes its separate\n   `strands` vector to `*`. `sort()` reorders regions without reordering that\n   vector, and several set operations drop strand. Preserve and\n   validate strand externally when it is scientifically meaningful.\n6. **Duplicates\u002Fadjacency:** choose policies explicitly. `reduce()` and consensus\n   merge overlapping **and adjacent** intervals; ordinary half-open overlap does\n   not treat `[0,10)` and `[10,20)` as overlapping.\n\nRun the local validator first:\n\n```bash\npython3 -B scripts\u002Fbed_validator.py \\\n  --input data.bed.gz \\\n  --assembly GRCh38.p14 \\\n  --chrom-sizes GRCh38.p14.chrom.sizes \\\n  --require-sorted\n```\n\n## Safe local workflow\n\n1. Inventory local files, checksums, assembly, contig dictionary, coordinate\n   system, strand policy, patient\u002Freplicate groups, and intended outputs.\n2. Validate BED\u002Ffragments and estimate work. Pilot a small synthetic file.\n3. Choose Python, CLI, or Rust from the documented surface; do not translate API\n   names by guesswork.\n4. Set hard limits for input bytes\u002Frecords\u002Ffiles, threads\u002Fjobs, memory, temporary\n   disk, output size, and wall time.\n5. Run in a dedicated output directory. Refuse collisions unless overwrite was\n   explicitly approved.\n6. Revalidate output sorting, bounds, row counts, checksums, and provenance.\n\n## Current Python core\n\nImports are from submodules, not the `gtars` top level:\n\n```python\nfrom gtars.models import Region, RegionSet\n\nquery = RegionSet.from_regions(\n    [\n        Region(chr=\"chr1\", start=100, end=200, rest=None),\n        Region(chr=\"chr1\", start=300, end=400, rest=None),\n    ],\n    strands=[\"+\", \"-\"],\n)\nuniverse = RegionSet.from_vectors(\n    [\"chr1\", \"chr1\"],\n    [150, 500],\n    [350, 600],\n)\n\ncounts = query.count_overlaps(universe)       # one count per query region\nflags = query.any_overlaps(universe)          # one bool per query region\nindices = query.find_overlaps(universe)       # indices into universe\npieces = query.intersect_all(universe)        # all intersection fragments\nfraction = query.coverage(universe)           # fraction of query bp covered\n```\n\n`RegionSet.sort()` mutates and returns `None`. Set algebra includes `reduce`,\n`setdiff`, `pintersect` (pairs by index), `concat`, `union`, `jaccard`,\n`coverage`, `overlap_coefficient`, `intersect_all`, `closest`, `cluster`, and\n`gaps`. Read `references\u002Fpython-api.md` before relying on ordering or strand.\n\nConsensus is a Python binding in a different module:\n\n```python\nfrom gtars.genomic_distributions import consensus\n\nrows = consensus([query, universe])\n# rows: [{\"chr\": ..., \"start\": ..., \"end\": ..., \"count\": ...}, ...]\n```\n\nThe [consensus algorithm in the 0.10.0 release](https:\u002F\u002Fgithub.com\u002Fdatabio\u002Fgtars\u002Fblob\u002Fgtars-v0.10.0\u002Fgtars-genomicdist\u002Fsrc\u002Fconsensus.rs)\ncounts input sets touching a merged union component, not support at every base.\nFor example, `[0,10)` and `[5,15)` yield `[0,15)` with count 2, although its\nedges have one-set support. Do not describe a count-filtered consensus as\nbasewise replicate agreement; use a support-segmenting method when that is the\nscientific requirement.\n\nSignal-track generation is **not** exposed as `gtars.uniwig` in Python 0.10.0;\nuse the reviewed CLI or Rust API. `RegionSet.coverage()` is a base-pair set metric,\nnot a WIG\u002FbigWig generator.\n\nCoverage tracks, overlap counts, and consensus are separate analysis outputs.\nDo not feed a smoothed signal into interval consensus or interpret a consensus\ncount as per-base support.\n\n## Tokenizers, fragments, and reference stores\n\nUse only local constructors by default:\n\n```python\nfrom gtars.models import RegionSet\nfrom gtars.tokenizers import Tokenizer\n\ntokenizer = Tokenizer.from_bed(\"reviewed-universe.bed\")\nregions = RegionSet(\"local-query.bed\")\ntokens = tokenizer.tokenize(regions)\nencoding = tokenizer(regions)\nids = encoding[\"input_ids\"]\nassert tokenizer.vocab_size == len(tokenizer.get_vocab())\n```\n\n`Tokenizer.from_pretrained(name)` contacts Hugging Face and writes its cache when\nthe argument is not an existing local directory; it exposes no revision or cache\nargument. Obtain explicit approval, fetch an immutable revision through a reviewed\nmechanism, verify checksums, then pass the local snapshot directory. See\n`references\u002Ftokenizers.md`.\n\nPython 0.10.0 refget batch imports return `ImportReport`, not a list; read\n`report.collections` and its per-run counters. The CLI adds `refget export` and\n`refget lock-status`; see `references\u002Frefget.md`.\n\nFor refget, prefer `RefgetStore.in_memory()` or `RefgetStore.open_local(path)`.\n`open_remote(cache_path, remote_url)` contacts a remote service, creates\u002Fuses a\nlocal cache, and performs on-demand range reads. See `references\u002Frefget.md`.\n\n## Network and cache gate\n\nNo download or cache write is implicit in this skill. Before any network-capable\nupstream call:\n\n- obtain explicit user approval for the exact host, endpoint, data, and cache;\n- allowlist HTTPS hosts and reject unreviewed redirects;\n- record immutable revision\u002Fidentifier, retrieval time, expected SHA-256 and\n  domain digest, assembly accession, size quota, and provenance;\n- disclose sensitive BED coordinates, barcodes, sample labels, and reference\n  choices that could leave the approved environment;\n- validate downloaded content as untrusted before using it.\n\nImportant side effects:\n\n- `RegionSet(path)` has HTTP support; a nonexistent local string may be treated as\n  a URL. Check that the local path exists before construction.\n- `Tokenizer.from_pretrained` may download `universe.bed.gz` into the Hugging Face\n  cache.\n- `RefgetStore.on_disk` creates\u002Fwrites a store. `open_remote` loads remote metadata\n  and enables persistence by default.\n- `gtars bbcache` creates cache directories even when constructing the client.\n  Cache\u002Fdownload commands use `BBCLIENT_CACHE` (default `~\u002F.bbcache`) and\n  `BEDBASE_API` (default `https:\u002F\u002Fapi.bedbase.org`).\n\n## Sensitive metadata and leakage\n\nGenomic intervals, rare loci, barcodes, sample names, phenotypes, and assembly\nchoices can be identifying. Keep full paths and raw coordinates out of logs;\ndefault bundled reports redact paths and emit only counts\u002Fchecksums.\n\nFreeze splits by patient\u002Fdonor first, then keep all technical and biological\nreplicates in the same split. Fit consensus sets, universes, tokenizers, scaling,\nthresholds, and QC rules on training data only. Do not create a universe from all\nsamples and then split: that leaks validation\u002Ftest locus support. Record excluded\nsamples and replicate aggregation separately.\n\n## Bundled deterministic CLIs\n\nAll six helpers reject URLs, traversal, symlinks, and special files; apply byte,\nrecord, file, coordinate, and worker caps; use no network or gtars import; and\nwrite no output files. Plans contain fixed argv templates and never launch them.\nThe fragment-score planner rejects the source-confirmed invalid right-cut query\nin the CLI 0.10.0 default ATAC mode; see `references\u002Fcli.md` before choosing\nfragment-body counts or a separately validated cut-site method.\n\n```bash\npython3 -B scripts\u002Fbed_validator.py --help\npython3 -B scripts\u002Fexecution_plan.py --help\npython3 -B scripts\u002Ftokenizer_manifest.py --help\npython3 -B scripts\u002Frefget_digest_plan.py --help\npython3 -B scripts\u002Fcoverage_preflight.py --help\npython3 -B scripts\u002Fartifact_inspector.py --help\n```\n\nRun synthetic tests without bytecode:\n\n```bash\nPYTHONDONTWRITEBYTECODE=1 python3 -B -m unittest discover \\\n  -s tests\u002Fgtars -p 'test_*.py' -v\n```\n\n## Migration traps removed in 1.1\n\nDo not use stale examples containing `gtars.RegionSet`,\n`RegionSet.from_bed`, `TreeTokenizer`, `gtars.igd.build_index`,\n`gtars.uniwig.coverage_from_bed`, `gtars.RefgetStore`, global\n`set_option`\u002F`set_log_level`, `parallel_apply`, or invented exception classes.\nCLI forms such as `uniwig generate`, `igd build`, `scoring score`, and\n`fragsplit cluster-split` are also stale for 0.10.0.\n\nUpstream's published docs and stubs have some drift (for example the older\n`GlobalRefgetStore` tutorial and incomplete 0.10.0 stubs). Prefer installed\nsignature smoke tests plus immutable tagged source when they conflict.\n\n## Bundled references\n\nThese are the only six bundled references; all links are local and present:\n\n- `references\u002Fpython-api.md` — exact Python 0.10.0 imports and behavior\n- `references\u002Foverlap.md` — overlap\u002Fcount\u002Fset algebra and consensus semantics\n- `references\u002Fcoverage.md` — uniwig, bigWig, coverage, sorting, and resources\n- `references\u002Ftokenizers.md` — tokenizer\u002Funiverse and fragment compatibility\n- `references\u002Frefget.md` — digests, stores, BEDbase, network\u002Fcache controls\n- `references\u002Fcli.md` — CLI 0.10.0 commands, features, and migrations\n\n## Citing Scientific Agent Skills\n\nThis skill is part of Scientific Agent Skills by K-Dense. If it materially contributed to a\nmanuscript, report, presentation, or code release, add the paper to the references or\nsoftware section and tell the user you did so:\n\n> Kassis, T., Agarwal, V., He, Y., Patel, D., & Brueckner, A. M. (2026). Scientific Agent\n> Skills: A Library of Procedural Knowledge for Research Agents. arXiv:2609.00065.\n> https:\u002F\u002Fdoi.org\u002F10.48550\u002FarXiv.2609.00065\n\nAlways cite the current version. The DOI and https:\u002F\u002Farxiv.org\u002Fabs\u002F2609.00065 resolve to the\nlatest arXiv version, so never append a version suffix such as `v1`. When network access is\navailable, fetch https:\u002F\u002Farxiv.org\u002Fabs\u002F2609.00065 (or\nhttp:\u002F\u002Fexport.arxiv.org\u002Fapi\u002Fquery?id_list=2609.00065) before writing the reference and take\nthe author list, year, and version from that record. If the record lists a journal reference\nor publisher DOI, cite the published version instead.\n",{"name":5,"license":15,"metadata":24,"description":7,"allowed-tools":28,"compatibility":29},{"version":25,"skill-author":26,"last-reviewed":27},"1.5","K-Dense Inc.","2026-10-01","Read Write Edit Bash Glob","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\u002Fnetwork-free. Remote constructors, pretrained tokenizers, refget, and BEDbase caching require explicit network and storage approval.","master","fd76f882a04e445e899d5cfb2732f2105ea054ee","skills\u002Fawesome-skills\u002Fgtars",0,"https:\u002F\u002Fgithub.com\u002Fbg-szy\u002FTOP-SKILLS","https:\u002F\u002Fbg-szy.github.io\u002FTOP-SKILLS\u002F","https:\u002F\u002Fgithub.com\u002Fbg-szy","https:\u002F\u002Fwww.ecust.edu.cn\u002F","a student of East China University of Science and Technology","2026-11-15 03:38:02",{"source":8,"skillName":5,"commands":41,"prompt":51,"zipAvailable":52},[42,45,48],{"tool":43,"command":44},"npx","npx skills add bg-szy\u002FTOP-SKILLS --skill gtars",{"tool":46,"command":47},"bunx","bunx skills add bg-szy\u002FTOP-SKILLS --skill gtars",{"tool":49,"command":50},"pnpm","pnpm dlx skills add bg-szy\u002FTOP-SKILLS --skill gtars","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fbg-szy\u002FTOP-SKILLS\u002Fblob\u002Fmaster\u002Fskills\u002Fawesome-skills\u002Fgtars\u002FSKILL.md",true,[],[55,63,70,77,84,91],{"skillNo":56,"name":57,"nameZh":6,"description":58,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":59,"categories":60,"keywords":61,"publishedAt":62},"01M7DXW9N826PKXK174PVW3038","serpmaven","Scrape Google search results (SERP) to JSON with SERP Maven (serpmaven) - a real Chrome browser on a residential proxy with sticky sessions. Run it as a CLI, a Python library, a local HTTP search API (`serve`), an MCP server or a Docker image; set the proxy login, workers, pages and cost tracking. Use when the user wants Google results, rank tracking, a self-hosted SERP API, or live Google search for an AI agent.","https:\u002F\u002Fgithub.com\u002Fbg-szy\u002FTOP-SKILLS\u002Fblob\u002Fmaster\u002Fskills\u002Fmarketplace\u002Fserpmaven\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":64,"name":65,"nameZh":6,"description":66,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":67,"categories":68,"keywords":69,"publishedAt":62},"01M7DXVHSTWDV65475QEQ915M7","revnu-landing-page-audit","Find out why a landing page isn't turning visitors into signups, demos or sales. Audits one page against what the ad, post or search that sends people there promised, then checks the first screen, proof, call to action, friction and mobile. Returns at most 7 prioritized fixes, plus what is fine and what could not be checked; rewrites specific lines and fixes the page in the repo when asked. Never promises a conversion lift. Works without a Revnu account. Use when the user says or asks: \"audit my landing page\", \"why isn't this page converting\", \"review my homepage\", \"my ads get clicks but no signups\", \"people bounce from the pricing page\", \"CRO review\", \"improve conversion rate\", \"is my hero section clear\", \"roast my landing page\", \"rewrite my headline\", \"what's wrong with this page\", \"landing page feedback\", \"make the signup page convert better\". Not for SEO or AI-search audits, page speed engineering on its own, or building a new page from scratch.","https:\u002F\u002Fgithub.com\u002Fbg-szy\u002FTOP-SKILLS\u002Fblob\u002Fmaster\u002Fskills\u002Fmarketplace\u002Frevnu-landing-page-audit\u002FSKILL.md",[],[],{"skillNo":71,"name":72,"nameZh":6,"description":73,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":74,"categories":75,"keywords":76,"publishedAt":62},"01M7DXV8X2D7B3VTD4HHYYHTGR","revnu-growth-context","Write down once who buys, what they're stuck on, what it costs, what proof you have and what you've already tried, so every growth task starts from facts instead of a questionnaire. Creates or updates .agents\u002Frevnu-growth.md from the repo, the live site and the user, and imports an existing product-marketing.md. Use when the user says \"set up our marketing context\", \"who is our ideal customer\", \"write our ICP\", \"describe the product for marketing\", \"positioning doc\", \"what's our brand voice\", \"remember this about our customers\", \"log what we tried\", \"what have we learned from marketing\", \"we changed pricing, update the context\", \"update our growth notes\", \"summarize the business for the agent\", \"import my product-marketing.md\", \"start a growth doc\", or before a first marketing, SEO, outreach or launch task when no context file exists. Works without a Revnu account.","https:\u002F\u002Fgithub.com\u002Fbg-szy\u002FTOP-SKILLS\u002Fblob\u002Fmaster\u002Fskills\u002Fmarketplace\u002Frevnu-growth-context\u002FSKILL.md",[],[],{"skillNo":78,"name":79,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":62},"01M7DXV0DGJ1G0A60PAHC6J3C5","revnu-get-listed","Get onto the third-party pages AI answers and search cite when buyers ask for the best tool in your category: \"best X\" roundups, directories, review sites, GitHub awesome lists, community threads and comparison pages. Finds which ones are cited, ranks them by fit and effort, and drafts each submission, PR or pitch by the target's own rules. Use when the user says \"get us listed\", \"which directories should we submit to\", \"how do we get into best-of lists\", \"why does ChatGPT recommend competitors and not us\", \"get mentioned in AI answers\", \"submit to awesome lists\", \"get on G2\", \"where are our competitors listed\", \"pitch listicle authors\", \"find backlink opportunities\", \"launch directories\", \"get into roundups\", \"Product Hunt alternatives\", \"where should we be listed\", \"get cited by Perplexity\". Never submits, pays or posts without a yes. Works without a Revnu account.","https:\u002F\u002Fgithub.com\u002Fbg-szy\u002FTOP-SKILLS\u002Fblob\u002Fmaster\u002Fskills\u002Fmarketplace\u002Frevnu-get-listed\u002FSKILL.md",[],[],{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":62},"01M7DXTSPMGT9D6DSS0HP9BSTA","revnu-ai-readiness-audit","Audit whether your website gives ChatGPT, Perplexity, Claude, Gemini and Google's AI Overviews something worth quoting, and fix the pages that don't. Use when the user says or asks \"is my site ready for AI search\", \"audit my site for AI answers\", \"AEO audit\", \"GEO audit\", \"why doesn't ChatGPT quote our pricing\", \"make our pages citable by AI\", \"do I need llms.txt\", \"does schema help with ChatGPT\", \"check our structured data\", \"is our content visible without JavaScript\", \"AI SEO audit\", \"optimize our homepage for AI answers\", \"LLM SEO check\", \"why does AI get our product wrong\", \"fix our site for AI Overviews\". Checks fetchability and indexability, answers in the raw HTML, entity facts, schema (including JS-injected markup), headings, dates and llms.txt, then gives at most 10 prioritised fixes and edits the repo when asked. Works without a Revnu account.","https:\u002F\u002Fgithub.com\u002Fbg-szy\u002FTOP-SKILLS\u002Fblob\u002Fmaster\u002Fskills\u002Fmarketplace\u002Frevnu-ai-readiness-audit\u002FSKILL.md",[],[],{"skillNo":92,"name":93,"nameZh":6,"description":94,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":95,"categories":96,"keywords":97,"publishedAt":62},"01M7DXSZHCVTRS620GC3S97JZV","proxy-troubleshooting","Diagnose residential proxy failures, with NodeMaven's gateway as the reference - 407 with correct credentials, 406, 410, 500, a connection that hangs, ERR_TUNNEL_CONNECTION_FAILED in a browser, Playwright or Puppeteer ignoring proxy credentials, a sticky session that changes IP, geo-targeting that is silently ignored, passwords with special characters, and unexpected traffic from headless Chrome. Use when a proxy connection fails, returns the wrong location, or costs more traffic than expected.","https:\u002F\u002Fgithub.com\u002Fbg-szy\u002FTOP-SKILLS\u002Fblob\u002Fmaster\u002Fskills\u002Fmarketplace\u002Fproxy-troubleshooting\u002FSKILL.md",[],[]]