geniml
Supports audited local Geniml genomic-interval workflows: validate BED and universe contracts, plan Region2Vec or scEmbed runs, inspect model/tokenizer compatibility, and assess consensus universes.
Install / Use
npx skills add K-Dense-AI/scientific-agent-skills --skill genimlInstalls into whichever agent you are using.
SKILL.md
Installable skill definition
Quality Score
Category
AutomationSupported Platforms
Our assessment of geniml
geniml scores 100/100 on our quality scale, 15th of 2,878 Automation skills we index (top 1%).
Its SKILL.md is 14 KB long, well organised into 21 sections with 10 code examples: a thorough specification that gives an agent plenty to work with.
With 46,441 GitHub stars, it is one of the more widely adopted skills in the catalogue.
Maintenance, license and trust
- The repository was last updated about 2 months ago, so geniml is actively maintained.
- Our last check on 2026-10-22 found the source still online.
- It is released under the MIT license, a permissive license that allows use, modification and commercial use with attribution.
- Its trust signals score 100/100, with no cautions. These come from repository metadata, not a code audit — read the skill file before letting an agent act on it.
Safety scan
No issues foundOur scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands. An AI review of the same text found nothing harmful.
AI review by kimi-k2.7-code on 2026-09-25. Automated pattern scan on 2026-09-25. It catches known dangerous patterns, not every risk — read a skill before letting an agent act on it.
geniml compared with similar skills
geniml has the highest quality score among these 4 similar skills, though 4 alternatives have been updated more recently.
| Skill | Score | Stars | Updated | Format |
|---|---|---|---|---|
| geniml (this skill)by K-Dense-AI | 100 | 46.4k | 48d ago | SKILL.md |
| Agent-Reachby Panniantong | 100 | 110.3k | 1d ago | CLAUDE.md |
| headroomby headroomlabs-ai | 100 | 79.1k | today | CLAUDE.md |
| Scraplingby D4Vinci | 100 | 99.8k | today | MCP Server |
| crawl4aiby unclecode | 100 | 87.1k | 4d ago | MCP Server |
Frequently asked questions
- How do I install geniml?
- Run
npx skills add K-Dense-AI/scientific-agent-skills --skill geniml. The install tabs above show the steps for each supported agent. - Which AI agents does geniml work with?
- It is written for Universal, as a SKILL.md file. Other agents that read the same format can often use it too.
- Is geniml safe to use?
- Our scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands. An AI review of the same text found nothing harmful. It is MIT-licensed and scores 100/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
- Is geniml still maintained?
- The repository was last updated about 2 months ago, so geniml is actively maintained.
Skill content
View source on GitHubname: geniml description: "Use Geniml for audited local genomic-interval workflows: validate BED and universe contracts, plan Region2Vec or scEmbed runs, inspect model/tokenizer compatibility, and assess consensus universes." license: MIT compatibility: Requires Python 3.10+ and uv. Guidance targets geniml 0.8.4 with gtars 0.9.2; ML workflows need the pinned ml extra and compatible native wheels. Bundled planners and inspectors are dependency-free, local-only, and make no network requests. allowed-tools: Read Write Edit Bash Glob metadata: version: "1.2" skill-author: "K-Dense Inc." upstream-version: "0.8.4" last-reviewed: "2026-07-23"
Geniml
Use Geniml for machine learning and statistical workflows over genomic interval sets. Treat coordinates, assemblies, token vocabularies, model artifacts, and sample grouping as explicit contracts. The bundled scripts validate or plan; they do not import Geniml, contact services, deserialize models, or execute training.
Bash is declared only for explicit, user-approved uv, Python, Geniml,
Gtars, Git, and native CLI commands shown in this guide; bundled Python helpers
do not spawn subprocesses. Example paths under data/, refs/, work/, and
models/ are user-provided project placeholders, not missing bundled files.
Verified release snapshot
- Latest stable PyPI release on 2026-07-23:
geniml==0.8.4(2026-01-14). - PyPI does not declare
Requires-Python; its classifiers list Python 3.10-3.14. Prefer Python 3.11 or 3.12 where all native/ML wheels resolve. geniml==0.8.4acceptsgtars>=0.2.5; the verified base smoke used currentgtars==0.9.2(2026-06-17, Python >=3.10).- Extras are
mlandtest. The base install omits Torch, Gensim, Scanpy, Hugging Face Hub, pyBigWig, and HMM dependencies. - Upstream documentation contains stale examples. Release source and installed
--helpoutput take precedence where they conflict.
Install reproducibly
Use a project environment and commit its generated lockfile:
uv venv --python 3.12
uv pip install "geniml==0.8.4" "gtars==0.9.2"
For Region2Vec, scEmbed, evaluation, or universe methods needing ML libraries:
uv pip install "geniml[ml]==0.8.4" "gtars==0.9.2"
For a durable project, prefer:
uv add "geniml[ml]==0.8.4" "gtars==0.9.2"
uv lock
Do not install an unpinned Git branch. Record Python, OS/architecture, the
resolved lockfile, and the PyPI artifact digest. Geniml itself is BSD-2-Clause;
the MIT frontmatter value licenses this skill's content.
Start with the safety gate
Before importing Geniml or running an external binary:
- Work only with explicit local regular files. Reject URLs, FIFOs, devices, and symlinks unless the user deliberately changes that policy.
- Validate BED structure and the declared assembly against a trusted local chromosome-sizes file.
- Bound file count, bytes, rows, workers, epochs, and output size.
- Separate train/validation/test by patient, donor, biological replicate, or other independent unit—not by BED row or cell alone.
- Inventory and checksum the universe, tokenizer, model, config, inputs, metadata manifest, and native binaries.
- Obtain explicit approval before any BEDbase or Hugging Face download. Never infer approval from a model ID or BEDbase identifier.
- Keep logs aggregate and bounded. BED filenames, sample IDs, phenotypes, labels, barcodes, and genomic intervals may be sensitive.
Coordinate and assembly contract
BED intervals are normally 0-based, half-open [start, end): start is
included, end is excluded, and length is end - start. Do not mix them with
1-based closed coordinates from VCF/GFF or user-facing genome browsers.
For every corpus and artifact, record:
- assembly and patch/accession where possible (for example GRCh38 versus GRCh38.p14), plus the chromosome-sizes checksum;
- contig naming convention (
chr1versus1), alt/random/decoy policy, and mitochondrial naming; - coordinate convention, sorting order, duplicate/overlap policy, and whether BED strand is meaningful;
- liftover tool, chain digest, source/target assemblies, unmapped fraction, and post-liftover validation.
Reject negative coordinates, end <= start, integer overflow, unknown
contigs, ends beyond contig length, malformed columns, mixed assemblies, and
silent contig renaming. Sorting and normalization never repair an assembly
mismatch. BED3 has no strand; when column 6 is present, preserve +, -, or
. unless the assay contract says otherwise.
Run a bounded validation and normalization plan before analysis:
python skills/geniml/scripts/bed_validator.py \
--input data/peaks.bed \
--assembly GRCh38 \
--chrom-sizes refs/GRCh38.chrom.sizes
The validator reports proposed actions but never rewrites the BED file.
Current API map
Region and tokenizer I/O
Prefer Gtars for new interval/tokenizer code:
from gtars.models import Region, RegionSet
from gtars.tokenizers import Tokenizer
regions = RegionSet("data/peaks.bed")
tokenizer = Toke…[redacted]("refs/universe.bed")
encoded = tokenizer(regions)
input_ids = encoded["input_ids"]
RegionSet and Tokenizer also accept remote inputs in some constructors;
this skill permits local paths only unless network access is explicitly
approved. geniml.io.RegionSet(regions, backed=False) remains available as a
legacy Python implementation; backed sets are iterable but not indexable.
geniml.io.Region uses stop, while gtars.models.Region uses end.
With gtars 0.9.2, seven special tokens are added to a BED vocabulary. Therefore
len(tokenizer) is not simply the number of universe rows. Preserve universe
row order and the exact special-token map.
Region2Vec
The modern class lives at a concrete module path:
from geniml.region2vec.main import Region2VecExModel
from geniml.region2vec.utils import Region2VecDataset
from gtars.tokenizers import Tokenizer
tokenizer = Toke…[redacted]("refs/universe.bed")
dataset = Region2VecDataset("work/tokens.parquet", shuffle=True)
model = Region2VecExModel(tokenizer=tokenizer, embedding_dim=100)
model.train(dataset, epochs=10, window_size=5, num_cpus=4, seed=42)
The Parquet input must contain one list-valued tokens column, one document
per row. See references/region2vec.md for export,
encoding, legacy CLI, and evaluation details.
scEmbed
Import ScEmbed from geniml.scembed.main. AnnData .var must contain
chr, start, and end; rows are cells and nonzero features identify
accessible regions. Pre-tokenize to a Parquet tokens column and use the same
Tokenizer for training and inference. See
references/scembed.md.
BEDspace
BEDspace remains in 0.8.4 and invokes an external StarSpace executable. StarSpace is archived and upstream Geniml does not pin a compatible revision. Treat BEDspace as a legacy reproduction path, not the default for new systems. See references/bedspace.md for the exact stable CLI spelling and an immutable, explicitly unverified build baseline.
Consensus universes and assessment
The installed 0.8.4 CLI uses:
geniml build-universe {cc,ccf,ml,hmm} ...
geniml assess-universe ...
geniml eval {gdst,npt,ctt,rct,bin-gen} ...
CC/CCF/ML/HMM consume precomputed coverage bigWigs. Do not concatenate or
generate coverage until all BED files pass the same assembly contract.
Assessment and embedding metrics are distinct: assess-universe measures fit
of a universe to interval collections, while eval implements CTT, RCT, GDST,
and NPT for embeddings. See
references/consensus_peaks.md and
references/utilities.md.
Important 0.8.4 migration notes
- The 0.7.0 changelog moved new RegionSet/tokenizer work toward Gtars.
- The 0.4.0 names
TreeTokenizerandAnnDataTokenizerare historical; the current Gtars API exposesTokenizer. - In the 0.8.4 wheel,
geniml.region2vecandgeniml.scembeddo not re-export their modern classes/functions. Use the concrete module paths above. geniml tokenizeandgeniml region2veccall names no longer exported by their package__init__files; do not build new workflows around those CLI paths without an installed-version smoke test.geniml scembedparses legacy MatrixMarket options but its command body is a no-op in 0.8.4. Usegeniml.scembed.main.ScEmbed.- Official pages still show
geniml assess; the release command isgeniml assess-universe. .gtokremains present in legacy datasets, but upstream issue #14 proposes deprecating many-file.gtokworkflows. Prefer one bounded Parquet corpus.- Config key
embedding_sizeis accepted only for backward compatibility; useembedding_dim.
Model and universe compatibility
A Region2Vec/scEmbed inference bundle is valid only when these agree:
- model
config.yamlvocab_sizeandembedding_dim; - exact
universe.bedbytes/order and assembly; - tokenizer implementation/version and special-token IDs;
- checkpoint tensor shapes and pooling policy;
- Geniml/Gtars versions and any tokenization parameters.
Geniml 0.8.4 defaults to checkpoint.pt, config.yaml, and universe.bed.
Its loader uses torch.load(..., weights_only=True), but .pt, Gensim
.model, pickle, joblib, and native binaries remain untrusted inputs. Inspect
and checksum artifacts before loading; use an isolated environment and never
load a checkpoint merely to discover its metadata.
python skills/geniml/scripts/model_artifact_inspector.py \
--model-dir models/region2vec
python skills/geniml/scripts/tokenizer_compatibility.py \
--model-dir models/region2vec \
--universe refs/universe.bed \
--assembly GRCh38
Region2VecExModel(model_path="org/repo"), ScEmbed(model_path="org/repo"),
and Gtars Tokenizer.from_pretrained(...) can download from Hugging Face.
Local from_pretrained("models/local") loads a local bundle. Pin Hub revision
and expected hashes when a user approves download; then work offline from the
verified cache.
BEDbase downloads and caches
BBClient.load_bed, load_bedset, and token-cache operations may contact
https://api.bedbase.org. The default cache is
$BBCLIENT_CACHE or ~/.bbcache; BEDBASE_API changes the endpoint. Do not
read unrelated environment variables. Set an explicit project cache, estimate
size, approve identifiers/endpoints, and verify returned checksums before use.
Local inspection commands are safer:
geniml bbclient seek ID --cache-folder /absolute/project/cache
geniml bbclient inspect-bedfiles --cache-folder /absolute/project/cache
geniml bbclient inspect-bedsets --cache-folder /absolute/project/cache
The cache-bed, cache-bedset, and cache-tokens subcommands may use the
network. Do not run them implicitly or include sensitive local BED files in an
upload/cache workflow.
Local audit and planning CLIs
All scripts are standard-library-only and default to redacted JSON:
# Audit manifest paths, checksums, assemblies, and patient/donor leakage
python skills/geniml/scripts/corpus_auditor.py \
--manifest data/manifest.tsv --assembly-column assembly \
--group-column patient_id --split-column split
# Plan tokenizer/model compatibility checks
python skills/geniml/scripts/tokenizer_compatibility.py \
--model-dir models/r2v --universe refs/universe.bed --assembly GRCh38
# Plan consensus construction; does not execute Geniml or coverage tools
python skills/geniml/scripts/consensus_plan.py \
--manifest data/manifest.tsv --chrom-sizes refs/GRCh38.chrom.sizes \
--assembly GRCh38 --method cc --output-dir work/consensus
# Plan an embedding run; does not import ML libraries
python skills/geniml/scripts/embedding_plan.py \
--mode region2vec --data work/tokens.parquet \
--universe refs/universe.bed --output
Truncated for display — read the full file on GitHub.
Related Skills
Agent-Reach
110.3kGive your AI agent eyes to see the entire internet. Read & search Twitter, Reddit, YouTube, GitHub, Bilibili, XiaoHongShu — one CLI, zero API fees.
headroom
79.1kCompress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens for coding agents, 60-95% fewer tokens for JSON, same answers. Library, proxy, MCP server.
Scrapling
99.8k🕷️ The BEST Web Scraping framework that handles everything from a single request to a full-scale crawl! Don't be shy, join here: https://discord.gg/EMgGbDceNQ and follow here for daily tips and tricks: https://x.com/Scrapling_dev
crawl4ai
87.1kOfficial Crawl4AI Cloud: a hosted web scraping, extraction, and search API for AI agents. Free API key, 1,000 credits a month, no card. Fully open source: this repo is the Apache-2.0 crawler that powers it, and you can self-host it.
Languages
Trust signals
From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.
