@pikaa-ai/pikaa 0.3.22 → 0.3.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/brand/orbit-logo-option4-whale.jpg +0 -0
- package/assets/brand/orbit-logo.jpg +0 -0
- package/assets/brand/orbit-logo.png +0 -0
- package/assets/brand/orbit-logo.svg +3 -0
- package/dist/cli.js +448 -181
- package/dist/index.js +22 -2
- package/package.json +1 -2
- package/skills/adaptyv/SKILL.md +0 -240
- package/skills/aeon/SKILL.md +0 -402
- package/skills/analytical-method-validation/SKILL.md +0 -299
- package/skills/anndata/SKILL.md +0 -431
- package/skills/arbor/SKILL.md +0 -152
- package/skills/arboreto/SKILL.md +0 -267
- package/skills/astropy/SKILL.md +0 -353
- package/skills/autoskill/SKILL.md +0 -233
- package/skills/benchling-integration/SKILL.md +0 -229
- package/skills/bgpt-paper-search/SKILL.md +0 -75
- package/skills/bids/SKILL.md +0 -237
- package/skills/biopython/SKILL.md +0 -472
- package/skills/bioservices/SKILL.md +0 -399
- package/skills/bulk-rnaseq/SKILL.md +0 -198
- package/skills/cellxgene-census/SKILL.md +0 -283
- package/skills/cirq/SKILL.md +0 -370
- package/skills/citation-management/SKILL.md +0 -329
- package/skills/clinical-decision-support/SKILL.md +0 -238
- package/skills/clinical-decision-support/references/README.md +0 -62
- package/skills/clinical-reports/SKILL.md +0 -248
- package/skills/clinical-reports/references/README.md +0 -34
- package/skills/cobrapy/SKILL.md +0 -496
- package/skills/consciousness-council/SKILL.md +0 -151
- package/skills/dask/SKILL.md +0 -482
- package/skills/database-lookup/SKILL.md +0 -386
- package/skills/datamol/SKILL.md +0 -200
- package/skills/deepchem/SKILL.md +0 -244
- package/skills/deepspot-m/SKILL.md +0 -175
- package/skills/deeptools/SKILL.md +0 -412
- package/skills/depmap/SKILL.md +0 -301
- package/skills/dhdna-profiler/SKILL.md +0 -184
- package/skills/diffdock/SKILL.md +0 -488
- package/skills/dnanexus-integration/SKILL.md +0 -325
- package/skills/docx/SKILL.md +0 -99
- package/skills/esm/SKILL.md +0 -334
- package/skills/etetoolkit/SKILL.md +0 -327
- package/skills/exa-search/SKILL.md +0 -102
- package/skills/executing-plans/SKILL.md +0 -14
- package/skills/experimental-design/SKILL.md +0 -234
- package/skills/exploratory-data-analysis/SKILL.md +0 -280
- package/skills/flowio/SKILL.md +0 -310
- package/skills/fluidsim/SKILL.md +0 -279
- package/skills/frontend-design/SKILL.md +0 -100
- package/skills/generate-image/SKILL.md +0 -304
- package/skills/geniml/SKILL.md +0 -310
- package/skills/genomic-coordinates/SKILL.md +0 -189
- package/skills/genomic-intelligence/SKILL.md +0 -243
- package/skills/geomaster/README.md +0 -105
- package/skills/geomaster/SKILL.md +0 -366
- package/skills/geopandas/SKILL.md +0 -250
- package/skills/get-available-resources/SKILL.md +0 -260
- package/skills/gget/SKILL.md +0 -153
- package/skills/ginkgo-cloud-lab/SKILL.md +0 -106
- package/skills/glycoengineering/SKILL.md +0 -339
- package/skills/gtars/SKILL.md +0 -282
- package/skills/guardian-rails/SKILL.md +0 -54
- package/skills/histolab/SKILL.md +0 -243
- package/skills/hugging-science/SKILL.md +0 -132
- package/skills/hypogenic/SKILL.md +0 -290
- package/skills/hypothesis-generation/SKILL.md +0 -264
- package/skills/imaging-data-commons/SKILL.md +0 -496
- package/skills/infographics/SKILL.md +0 -315
- package/skills/iso-standards-readiness/SKILL.md +0 -352
- package/skills/lab-hardware-cad/SKILL.md +0 -372
- package/skills/labarchive-integration/SKILL.md +0 -216
- package/skills/lamindb/SKILL.md +0 -408
- package/skills/latchbio-integration/SKILL.md +0 -227
- package/skills/latex-posters/SKILL.md +0 -369
- package/skills/latex-posters/references/README.md +0 -439
- package/skills/liteparse/SKILL.md +0 -295
- package/skills/literature-review/SKILL.md +0 -263
- package/skills/markdown-mermaid-writing/SKILL.md +0 -322
- package/skills/market-research-reports/SKILL.md +0 -337
- package/skills/markitdown/SKILL.md +0 -264
- package/skills/matchms/SKILL.md +0 -276
- package/skills/matlab/SKILL.md +0 -274
- package/skills/matplotlib/SKILL.md +0 -378
- package/skills/medchem/SKILL.md +0 -321
- package/skills/modal/SKILL.md +0 -468
- package/skills/molecular-dynamics/SKILL.md +0 -458
- package/skills/molfeat/SKILL.md +0 -348
- package/skills/ncats-arax/SKILL.md +0 -178
- package/skills/networkx/SKILL.md +0 -440
- package/skills/neurokit2/SKILL.md +0 -323
- package/skills/neuropixels-analysis/SKILL.md +0 -412
- package/skills/nextflow/SKILL.md +0 -195
- package/skills/omero-integration/SKILL.md +0 -222
- package/skills/onekgpd/SKILL.md +0 -371
- package/skills/ontology-term-resolution/SKILL.md +0 -147
- package/skills/open-notebook/SKILL.md +0 -297
- package/skills/openpiv/SKILL.md +0 -469
- package/skills/opentrons-integration/SKILL.md +0 -322
- package/skills/optimize-for-gpu/SKILL.md +0 -176
- package/skills/owasp-top10/SKILL.md +0 -48
- package/skills/pacsomatic/LICENSE +0 -21
- package/skills/pacsomatic/SKILL.md +0 -150
- package/skills/paper-lookup/SKILL.md +0 -263
- package/skills/paperclip/SKILL.md +0 -413
- package/skills/paperzilla/SKILL.md +0 -159
- package/skills/parallel-web/SKILL.md +0 -128
- package/skills/pathml/SKILL.md +0 -222
- package/skills/pathogen-variant-surveillance/SKILL.md +0 -208
- package/skills/pathway-enrichment/SKILL.md +0 -194
- package/skills/pdf/SKILL.md +0 -322
- package/skills/peer-review/SKILL.md +0 -288
- package/skills/penetration-testing/SKILL.md +0 -31
- package/skills/pennylane/SKILL.md +0 -240
- package/skills/phylogenetics/SKILL.md +0 -409
- package/skills/pi-agent/SKILL.md +0 -83
- package/skills/pkpd-modeling/SKILL.md +0 -381
- package/skills/polars/SKILL.md +0 -393
- package/skills/polars-bio/SKILL.md +0 -379
- package/skills/ponytail/SKILL.md +0 -31
- package/skills/ponytail-audit/SKILL.md +0 -18
- package/skills/pptx/SKILL.md +0 -246
- package/skills/pptx-posters/SKILL.md +0 -258
- package/skills/primekg/SKILL.md +0 -99
- package/skills/protocolsio-integration/SKILL.md +0 -236
- package/skills/pufferlib/SKILL.md +0 -328
- package/skills/pydeseq2/SKILL.md +0 -369
- package/skills/pydicom/SKILL.md +0 -381
- package/skills/pyhealth/SKILL.md +0 -124
- package/skills/pylabrobot/SKILL.md +0 -216
- package/skills/pymatgen/SKILL.md +0 -404
- package/skills/pymc/SKILL.md +0 -310
- package/skills/pymoo/SKILL.md +0 -276
- package/skills/pyopenms/SKILL.md +0 -179
- package/skills/pysam/SKILL.md +0 -330
- package/skills/pytdc/SKILL.md +0 -297
- package/skills/pytorch-lightning/SKILL.md +0 -191
- package/skills/pyzotero/SKILL.md +0 -137
- package/skills/qiskit/SKILL.md +0 -259
- package/skills/qutip/SKILL.md +0 -317
- package/skills/rdkit/SKILL.md +0 -94
- package/skills/relsa-severity-assessment/SKILL.md +0 -354
- package/skills/research-grants/SKILL.md +0 -296
- package/skills/research-grants/references/README.md +0 -287
- package/skills/research-lookup/README.md +0 -106
- package/skills/research-lookup/SKILL.md +0 -338
- package/skills/rowan/SKILL.md +0 -398
- package/skills/scanpy/SKILL.md +0 -303
- package/skills/scholar-evaluation/SKILL.md +0 -296
- package/skills/scientific-brainstorming/SKILL.md +0 -282
- package/skills/scientific-critical-thinking/SKILL.md +0 -180
- package/skills/scientific-schematics/SKILL.md +0 -370
- package/skills/scientific-slides/SKILL.md +0 -379
- package/skills/scientific-visualization/SKILL.md +0 -285
- package/skills/scientific-writing/SKILL.md +0 -356
- package/skills/scikit-bio/SKILL.md +0 -470
- package/skills/scikit-learn/SKILL.md +0 -324
- package/skills/scikit-survival/SKILL.md +0 -313
- package/skills/scvelo/SKILL.md +0 -328
- package/skills/scvi-tools/SKILL.md +0 -201
- package/skills/seaborn/SKILL.md +0 -254
- package/skills/security-auditor/SKILL.md +0 -37
- package/skills/shap/SKILL.md +0 -282
- package/skills/simpy/SKILL.md +0 -283
- package/skills/stable-baselines3/SKILL.md +0 -325
- package/skills/statistical-analysis/SKILL.md +0 -446
- package/skills/statistical-power/SKILL.md +0 -200
- package/skills/statsmodels/SKILL.md +0 -238
- package/skills/sympy/SKILL.md +0 -354
- package/skills/systematic-debugging/SKILL.md +0 -35
- package/skills/tamarind/SKILL.md +0 -285
- package/skills/tdd/SKILL.md +0 -26
- package/skills/tiledbvcf/SKILL.md +0 -456
- package/skills/timesfm-forecasting/SKILL.md +0 -408
- package/skills/timesfm-forecasting/examples/global-temperature/README.md +0 -178
- package/skills/torch-geometric/SKILL.md +0 -458
- package/skills/torchdrug/SKILL.md +0 -241
- package/skills/transformers/SKILL.md +0 -195
- package/skills/treatment-plans/SKILL.md +0 -174
- package/skills/treatment-plans/references/README.md +0 -19
- package/skills/umap-learn/SKILL.md +0 -488
- package/skills/uncertainty-and-units/SKILL.md +0 -384
- package/skills/usfiscaldata/SKILL.md +0 -171
- package/skills/vaex/SKILL.md +0 -204
- package/skills/venue-templates/SKILL.md +0 -269
- package/skills/verification-before-completion/SKILL.md +0 -22
- package/skills/waypoint-bio/SKILL.md +0 -273
- package/skills/what-if-oracle/SKILL.md +0 -184
- package/skills/writing-plans/SKILL.md +0 -15
- package/skills/xlsx/SKILL.md +0 -110
- package/skills/zarr-python/SKILL.md +0 -241
|
@@ -1,304 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: generate-image
|
|
3
|
-
description: Generate or edit images with AI models through the OpenRouter Image API (Gemini, Seedream, Recraft, GPT-Image, Riverflow). Use for photos, illustrations, artwork, concept art, visual assets, logos, and image editing or compositing from reference images. For flowcharts, circuits, pathways, and other technical diagrams, use the scientific-schematics skill instead.
|
|
4
|
-
license: MIT
|
|
5
|
-
compatibility: Requires Python 3.9+ and network access to openrouter.ai. The bundled script uses only the standard library. Image generation requires the OPENROUTER_API_KEY credential and bills per request; listing models, inspecting a model, and --dry-run do not. Targets the OpenRouter Image API (POST /api/v1/images) as verified on 2026-07-31.
|
|
6
|
-
allowed-tools: Read Write Edit Bash
|
|
7
|
-
metadata:
|
|
8
|
-
version: "3.0"
|
|
9
|
-
skill-author: K-Dense Inc.
|
|
10
|
-
last-reviewed: "2026-07-31"
|
|
11
|
-
openclaw:
|
|
12
|
-
primaryEnv: OPENROUTER_API_KEY
|
|
13
|
-
envVars:
|
|
14
|
-
- name: OPENROUTER_API_KEY
|
|
15
|
-
required: true
|
|
16
|
-
description: OpenRouter API key used for image generation.
|
|
17
|
-
---
|
|
18
|
-
|
|
19
|
-
# Generate Image
|
|
20
|
-
|
|
21
|
-
Generate and edit images through OpenRouter's Image API, which reaches Gemini, Seedream, Recraft,
|
|
22
|
-
GPT-Image, Riverflow, and roughly thirty other models behind one request shape.
|
|
23
|
-
|
|
24
|
-
## When to use
|
|
25
|
-
|
|
26
|
-
**Use this skill for:** photos and photorealistic images, illustrations and artwork, concept art,
|
|
27
|
-
presentation and poster visuals, logos and vector marks, image editing, and compositing from
|
|
28
|
-
reference images.
|
|
29
|
-
|
|
30
|
-
**Use `scientific-schematics` instead for:** flowcharts, circuit diagrams, biological pathways,
|
|
31
|
-
system architecture diagrams, CONSORT diagrams, and other technical schematics.
|
|
32
|
-
|
|
33
|
-
## API key
|
|
34
|
-
|
|
35
|
-
Generation requires an OpenRouter key. The script resolves it in this order:
|
|
36
|
-
|
|
37
|
-
1. `--api-key`
|
|
38
|
-
2. the `OPENROUTER_API_KEY` environment variable
|
|
39
|
-
3. `OPENROUTER_API_KEY=` in a `.env` file, searching the working directory upward, then the
|
|
40
|
-
script's own directory
|
|
41
|
-
|
|
42
|
-
If none is present the script exits with setup instructions. Keys: https://openrouter.ai/keys
|
|
43
|
-
|
|
44
|
-
`--list-models`, `--model-info`, and `--dry-run` need no key.
|
|
45
|
-
|
|
46
|
-
## Quick start
|
|
47
|
-
|
|
48
|
-
```bash
|
|
49
|
-
# Generate
|
|
50
|
-
python scripts/generate_image.py "A beautiful sunset over mountains"
|
|
51
|
-
|
|
52
|
-
# Edit an existing image
|
|
53
|
-
python scripts/generate_image.py "Make the sky purple" -i photo.jpg -o edited.png
|
|
54
|
-
```
|
|
55
|
-
|
|
56
|
-
Paths are relative to this skill's directory. Output defaults to `generated_image.<ext>`, where the
|
|
57
|
-
extension follows the media type the model returned. The per-request cost is printed after the run.
|
|
58
|
-
|
|
59
|
-
**Then look at the image.** Read the file back and check it before using it anywhere: composition,
|
|
60
|
-
aspect ratio, and any text are all things models get wrong silently.
|
|
61
|
-
|
|
62
|
-
## Choosing a model
|
|
63
|
-
|
|
64
|
-
Default: `google/gemini-3.1-flash-image`.
|
|
65
|
-
|
|
66
|
-
| Need | Model |
|
|
67
|
-
| --- | --- |
|
|
68
|
-
| General quality, prompt adherence | `google/gemini-3.1-flash-image` |
|
|
69
|
-
| Highest Gemini tier | `google/gemini-3-pro-image` |
|
|
70
|
-
| Cheap iteration | `google/gemini-3.1-flash-lite-image` (1K only), `openai/gpt-image-1-mini` |
|
|
71
|
-
| Photoreal control, reproducible seeds | `bytedance-seed/seedream-4.5` |
|
|
72
|
-
| Several images per request | `bytedance-seed/seedream-4.5`, `openai/gpt-image-2` (up to 10) |
|
|
73
|
-
| Vector / SVG output | `recraft/recraft-v4.1-vector` |
|
|
74
|
-
| Transparent background | `openai/gpt-image-1` with `--background transparent` |
|
|
75
|
-
| Legible text inside the image | `recraft/recraft-v4.1`, `sourceful/riverflow-v2.5-pro` — see the caveat below |
|
|
76
|
-
|
|
77
|
-
`references/models.md` carries the full catalogue with per-model parameters, allowed values, and
|
|
78
|
-
prices. The live listing is authoritative and free:
|
|
79
|
-
|
|
80
|
-
```bash
|
|
81
|
-
python scripts/generate_image.py --list-models # every model and its allowed values
|
|
82
|
-
python scripts/generate_image.py --list-models gemini # filtered by substring
|
|
83
|
-
python scripts/generate_image.py --model-info openai/gpt-image-1 # one model, plus pricing
|
|
84
|
-
```
|
|
85
|
-
|
|
86
|
-
## Parameter support varies by model
|
|
87
|
-
|
|
88
|
-
This is the main thing to get right. Models advertise different parameter sets **and different
|
|
89
|
-
allowed values**, and sending something a model does not support is rejected, not ignored.
|
|
90
|
-
|
|
91
|
-
The script checks the request against the live catalogue before spending anything, so a bad
|
|
92
|
-
parameter fails locally in under a second with the legal values printed:
|
|
93
|
-
|
|
94
|
-
```console
|
|
95
|
-
$ python scripts/generate_image.py "abstract pattern" -m openai/gpt-image-2 --background transparent
|
|
96
|
-
Error: Request rejected before billing (1 problem):
|
|
97
|
-
- background=transparent is not allowed; this model accepts: auto, opaque
|
|
98
|
-
```
|
|
99
|
-
|
|
100
|
-
Rough guide — but let the check be the authority, since the catalogue moves:
|
|
101
|
-
|
|
102
|
-
- `--resolution` — Gemini, Seedream, Riverflow, Krea, Grok. The tiers differ: `512` only on Gemini
|
|
103
|
-
3.1 Flash, `4K` on Gemini 3 Pro / Seedream / Riverflow, and **`1K` only** on
|
|
104
|
-
`gemini-3.1-flash-lite-image` and the Krea models.
|
|
105
|
-
- `--output-format` — Riverflow 2.5 only (`png`, `jpeg`, `webp`; the `fast` variant takes `jpeg`
|
|
106
|
-
alone). Gemini, OpenAI, Seedream, and Recraft all choose their own container.
|
|
107
|
-
- `--quality`, `--background`, `--output-compression` — the OpenAI family, plus `--background` on
|
|
108
|
-
Riverflow 2.5. **`--background transparent` is not available on `gpt-image-2` or
|
|
109
|
-
`gpt-5.4-image-2`** — use `gpt-image-1`, `gpt-image-1-mini`, `gpt-5-image`, or `gpt-5-image-mini`.
|
|
110
|
-
- `--seed` — Seedream and Krea. Not Gemini, not OpenAI.
|
|
111
|
-
- `--aspect-ratio` — nearly all models, but the enum differs sharply: `gpt-image-1` accepts only
|
|
112
|
-
`1:1`, `3:2`, `2:3`, `auto`, and `gpt-5-image*` does not accept it at all.
|
|
113
|
-
- `--n` — capped per model: 1 for Gemini, Riverflow, MAI and Grok, 6 for Recraft, 10 for Seedream
|
|
114
|
-
and OpenAI. The Krea models reject it outright.
|
|
115
|
-
|
|
116
|
-
Pass `--dry-run` to validate and print the exact request body without generating or billing.
|
|
117
|
-
`--no-preflight` skips the check when you want the API itself to arbitrate.
|
|
118
|
-
|
|
119
|
-
## Writing the prompt
|
|
120
|
-
|
|
121
|
-
Prompt quality decides output quality more than model choice does. Name, in one sentence each:
|
|
122
|
-
|
|
123
|
-
1. **Subject** — what is in frame, and how much of it. "A single pipette tip above a 96-well plate."
|
|
124
|
-
2. **Medium and style** — photograph, watercolour, 3D render, flat vector, scientific illustration.
|
|
125
|
-
3. **Lighting and palette** — "soft diffuse lighting, cool blue and white palette."
|
|
126
|
-
4. **Composition** — "wide shot, subject left of centre, empty space on the right for a title."
|
|
127
|
-
5. **What to avoid** — "no text, no labels, no watermark."
|
|
128
|
-
|
|
129
|
-
Asking for empty space where a caption or title will go is the single most useful compositional
|
|
130
|
-
instruction for posters and slides.
|
|
131
|
-
|
|
132
|
-
Iterate cheaply: draft on `gemini-3.1-flash-lite-image`, then regenerate the wording you settled on
|
|
133
|
-
with the model you actually want. To refine rather than restart, feed the last output back as a
|
|
134
|
-
reference (`-i out.png`) and describe only the change.
|
|
135
|
-
|
|
136
|
-
## Editing and reference images
|
|
137
|
-
|
|
138
|
-
`-i/--input` is repeatable and accepts local paths, HTTP(S) URLs, or data URLs. Local files are
|
|
139
|
-
base64-encoded and sent as `input_references`.
|
|
140
|
-
|
|
141
|
-
```bash
|
|
142
|
-
# Single-image edit
|
|
143
|
-
python scripts/generate_image.py "Add sunglasses to the person" -i portrait.png
|
|
144
|
-
|
|
145
|
-
# Composite several references
|
|
146
|
-
python scripts/generate_image.py "Blend these two styles" -i style_a.png -i style_b.jpg -o blend.png
|
|
147
|
-
|
|
148
|
-
# Reference an image already on the web
|
|
149
|
-
python scripts/generate_image.py "Restyle as a watercolor" -i https://example.com/photo.jpg
|
|
150
|
-
```
|
|
151
|
-
|
|
152
|
-
Reference limits differ: 16 for OpenAI, 14 for Gemini and Seedream, 10 for `riverflow-v2*-pro`,
|
|
153
|
-
3 for `gemini-2.5-flash-image` and Grok, 1 for Recraft, MAI, and Krea. Accepted local formats: PNG,
|
|
154
|
-
JPEG, GIF, WebP. Riverflow v2 bills $0.20 per reference image on top of the output.
|
|
155
|
-
|
|
156
|
-
## Worked examples
|
|
157
|
-
|
|
158
|
-
The `-o` paths are destinations the script creates, not files bundled with the skill.
|
|
159
|
-
|
|
160
|
-
```bash
|
|
161
|
-
# Wide hero image for a poster, with space reserved for the title
|
|
162
|
-
python scripts/generate_image.py \
|
|
163
|
-
"Laboratory with modern equipment, photorealistic, well-lit, wide shot, \
|
|
164
|
-
equipment on the left, empty wall on the right, no text" \
|
|
165
|
-
--aspect-ratio 21:9 --resolution 2K -o poster/hero.png
|
|
166
|
-
|
|
167
|
-
# Conceptual illustration for a manuscript — illustrative, never presented as data
|
|
168
|
-
python scripts/generate_image.py \
|
|
169
|
-
"Stylised illustration of immune cells surrounding a tumour cell, scientific illustration, \
|
|
170
|
-
cool palette, no text" \
|
|
171
|
-
--resolution 2K -o figures/immunotherapy_concept.png
|
|
172
|
-
|
|
173
|
-
# Vector logo
|
|
174
|
-
python scripts/generate_image.py \
|
|
175
|
-
"Minimal geometric fox logo, two colors" \
|
|
176
|
-
-m recraft/recraft-v4.1-vector -o assets/logo.svg
|
|
177
|
-
|
|
178
|
-
# Slide background with a transparent alpha channel
|
|
179
|
-
python scripts/generate_image.py \
|
|
180
|
-
"Abstract molecular pattern, subtle, blue and white, no text" \
|
|
181
|
-
-m openai/gpt-image-1 --background transparent -o slides/bg.png
|
|
182
|
-
|
|
183
|
-
# Four variations in one request
|
|
184
|
-
python scripts/generate_image.py \
|
|
185
|
-
"Stylized neuron network illustration" \
|
|
186
|
-
-m bytedance-seed/seedream-4.5 --n 4 -o variations.png
|
|
187
|
-
# -> variations_1.png ... variations_4.png
|
|
188
|
-
|
|
189
|
-
# Reproducible output
|
|
190
|
-
python scripts/generate_image.py "A cat astronaut" \
|
|
191
|
-
-m bytedance-seed/seedream-4.5 --seed 42
|
|
192
|
-
|
|
193
|
-
# Check a request costs nothing to get wrong
|
|
194
|
-
python scripts/generate_image.py "A cat astronaut" --resolution 4K --dry-run
|
|
195
|
-
```
|
|
196
|
-
|
|
197
|
-
## Script parameters
|
|
198
|
-
|
|
199
|
-
| Flag | Purpose |
|
|
200
|
-
| --- | --- |
|
|
201
|
-
| `prompt` | Image description, or the edit to apply (required unless `--list-models` / `--model-info`) |
|
|
202
|
-
| `-m`, `--model` | Model slug (default `google/gemini-3.1-flash-image`) |
|
|
203
|
-
| `-o`, `--output` | Output path; extension defaults to the returned media type |
|
|
204
|
-
| `-i`, `--input` | Reference image — path, URL, or data URL. Repeatable |
|
|
205
|
-
| `--n` | Images per request, model-capped |
|
|
206
|
-
| `--aspect-ratio` | `1:1`, `16:9`, `9:16`, `4:3`, `3:2`, `21:9`, … — enum differs per model |
|
|
207
|
-
| `--resolution` | `512`, `1K`, `2K`, `4K` — tiers differ per model |
|
|
208
|
-
| `--quality` | `auto`, `low`, `medium`, `high` (OpenAI) |
|
|
209
|
-
| `--output-format` | `png`, `jpeg`, `webp` (Riverflow 2.5) |
|
|
210
|
-
| `--background` | `auto`, `transparent`, `opaque` |
|
|
211
|
-
| `--output-compression` | 0–100, OpenAI models |
|
|
212
|
-
| `--seed` | Deterministic output where supported |
|
|
213
|
-
| `--api-key` | Overrides the environment and `.env` |
|
|
214
|
-
| `--timeout` | Request timeout, seconds (default 300) |
|
|
215
|
-
| `--retries` | Retries for rate limits and 5xx responses (default 2) |
|
|
216
|
-
| `--no-preflight` | Skip the free capability check before the billed request |
|
|
217
|
-
| `--dry-run` | Validate and print the request, then exit without generating |
|
|
218
|
-
| `--list-models` | Print the catalogue with allowed values, optionally filtered, then exit |
|
|
219
|
-
| `--model-info` | Print one model's allowed values and pricing, then exit |
|
|
220
|
-
|
|
221
|
-
There is no `--size`: no model in the catalogue accepts a `size` parameter. Shape output with
|
|
222
|
-
`--aspect-ratio` and `--resolution`.
|
|
223
|
-
|
|
224
|
-
## API shape
|
|
225
|
-
|
|
226
|
-
For direct requests without the script:
|
|
227
|
-
|
|
228
|
-
```bash
|
|
229
|
-
curl -s https://openrouter.ai/api/v1/images \
|
|
230
|
-
-H "Authorization: Bearer $OPENROUTER_API_KEY" \
|
|
231
|
-
-H "Content-Type: application/json" \
|
|
232
|
-
-d '{
|
|
233
|
-
"model": "google/gemini-3.1-flash-image",
|
|
234
|
-
"prompt": "A red bicycle against a white wall",
|
|
235
|
-
"aspect_ratio": "16:9"
|
|
236
|
-
}'
|
|
237
|
-
```
|
|
238
|
-
|
|
239
|
-
Response:
|
|
240
|
-
|
|
241
|
-
```json
|
|
242
|
-
{
|
|
243
|
-
"created": 1748372400,
|
|
244
|
-
"data": [{ "b64_json": "<base64>", "media_type": "image/png" }],
|
|
245
|
-
"usage": {
|
|
246
|
-
"prompt_tokens": 4,
|
|
247
|
-
"completion_tokens": 1120,
|
|
248
|
-
"total_tokens": 1124,
|
|
249
|
-
"cost": 0.0672,
|
|
250
|
-
"completion_tokens_details": { "image_tokens": 1120 }
|
|
251
|
-
}
|
|
252
|
-
}
|
|
253
|
-
```
|
|
254
|
-
|
|
255
|
-
`b64_json` is raw base64, **not** a data URL. `media_type` reflects the real format, so honour it
|
|
256
|
-
when naming files — vector models return `image/svg+xml`, and `gemini-3.1-flash-lite-image` returns
|
|
257
|
-
JPEG rather than PNG.
|
|
258
|
-
|
|
259
|
-
Streaming (`"stream": true`) emits `image_generation.partial_image`, `image_generation.completed`,
|
|
260
|
-
and `error` events, terminating with `data: [DONE]`. Only the OpenAI models support it, and the
|
|
261
|
-
bundled script does not use it.
|
|
262
|
-
|
|
263
|
-
Billing is all-or-nothing: a generation is either completed and billed in full, or it fails and is
|
|
264
|
-
not billed — so a rejected parameter costs nothing but time. Streaming preview frames are not
|
|
265
|
-
charged separately. On a bring-your-own-key account `usage.cost` reads `0` and the real amount is
|
|
266
|
-
in `cost_details.upstream_inference_cost`; the script reports that figure rather than claiming the
|
|
267
|
-
run was free.
|
|
268
|
-
|
|
269
|
-
## Cost
|
|
270
|
-
|
|
271
|
-
Per-image models are predictable: Seedream $0.04, Recraft v4.1 $0.035 (vector $0.08, pro $0.21),
|
|
272
|
-
Riverflow 2.5 fast $0.019 and pro $0.13–0.17, Grok $0.05–0.07.
|
|
273
|
-
|
|
274
|
-
Gemini, OpenAI, and MAI bill per output token, which scales with resolution — a 4K image costs
|
|
275
|
-
roughly sixteen times a 1K one. Measured: one 1K `gemini-3.1-flash-lite-image` render is 1120
|
|
276
|
-
output tokens, $0.034. At the same size `gemini-3.1-flash-image` is double that and
|
|
277
|
-
`gemini-3-pro-image` four times. Draft at low resolution on a cheap model; pay for size once.
|
|
278
|
-
|
|
279
|
-
## Notes and caveats
|
|
280
|
-
|
|
281
|
-
- **Models cannot be trusted with text.** Words inside a generated image come back misspelled,
|
|
282
|
-
garbled, or invented. Ask for "no text" and overlay real type in LaTeX, PowerPoint, or HTML — or
|
|
283
|
-
use `scientific-schematics` when labels are the point.
|
|
284
|
-
- **A generated image is an illustration, never evidence.** It shows nothing that was measured.
|
|
285
|
-
Never present one as microscopy, imaging, gel, or instrument output, never let it stand in for a
|
|
286
|
-
figure that reports results, and label it as an illustration in captions. Nature and Science both
|
|
287
|
-
require disclosure of generative-AI imagery, and several journals prohibit it outside
|
|
288
|
-
clearly-marked concept art — check the target venue before submitting.
|
|
289
|
-
- Generation is a paid API call. Prefer a cheap model and low resolution while iterating on wording.
|
|
290
|
-
- Generation takes roughly 5–60 seconds depending on model and resolution.
|
|
291
|
-
- Reference images are uploaded to OpenRouter. Do not send unpublished or sensitive data, patient
|
|
292
|
-
images, or anything under embargo.
|
|
293
|
-
- Never hardcode the API key. Keep it in the environment or an ignored `.env`.
|
|
294
|
-
- Prompt specifically when editing: "change the sky to sunset colours" beats "edit the sky".
|
|
295
|
-
- A refusal arrives as an HTTP 400 or 403 mentioning content policy, not as a bad image. Rephrase —
|
|
296
|
-
clinical and anatomical subjects trip moderation more often than the request warrants.
|
|
297
|
-
- Rate limits and 5xx responses are retried automatically; a 4xx is final, because the request
|
|
298
|
-
itself is what needs changing.
|
|
299
|
-
|
|
300
|
-
## Related skills
|
|
301
|
-
|
|
302
|
-
- `scientific-schematics` — technical diagrams, flowcharts, circuits, pathways
|
|
303
|
-
- `scientific-slides` — presentations that embed generated visuals
|
|
304
|
-
- `latex-posters` — posters that embed hero images
|
package/skills/geniml/SKILL.md
DELETED
|
@@ -1,310 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: geniml
|
|
3
|
-
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."
|
|
4
|
-
license: MIT
|
|
5
|
-
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.
|
|
6
|
-
allowed-tools: Read Write Edit Bash Glob
|
|
7
|
-
metadata:
|
|
8
|
-
version: "1.1"
|
|
9
|
-
skill-author: "K-Dense Inc."
|
|
10
|
-
upstream-version: "0.8.4"
|
|
11
|
-
last-reviewed: "2026-07-23"
|
|
12
|
-
---
|
|
13
|
-
|
|
14
|
-
# Geniml
|
|
15
|
-
|
|
16
|
-
Use Geniml for machine learning and statistical workflows over genomic interval
|
|
17
|
-
sets. Treat coordinates, assemblies, token vocabularies, model artifacts, and
|
|
18
|
-
sample grouping as explicit contracts. The bundled scripts validate or plan;
|
|
19
|
-
they do not import Geniml, contact services, deserialize models, or execute
|
|
20
|
-
training.
|
|
21
|
-
|
|
22
|
-
`Bash` is declared only for explicit, user-approved `uv`, Python, Geniml,
|
|
23
|
-
Gtars, Git, and native CLI commands shown in this guide; bundled Python helpers
|
|
24
|
-
do not spawn subprocesses. Example paths under `data/`, `refs/`, `work/`, and
|
|
25
|
-
`models/` are user-provided project placeholders, not missing bundled files.
|
|
26
|
-
|
|
27
|
-
## Verified release snapshot
|
|
28
|
-
|
|
29
|
-
- Latest stable PyPI release on 2026-07-23: `geniml==0.8.4` (2026-01-14).
|
|
30
|
-
- PyPI does not declare `Requires-Python`; its classifiers list Python
|
|
31
|
-
3.10-3.14. Prefer Python 3.11 or 3.12 where all native/ML wheels resolve.
|
|
32
|
-
- `geniml==0.8.4` accepts `gtars>=0.2.5`; the verified base smoke used current
|
|
33
|
-
`gtars==0.9.2` (2026-06-17, Python >=3.10).
|
|
34
|
-
- Extras are `ml` and `test`. The base install omits Torch, Gensim, Scanpy,
|
|
35
|
-
Hugging Face Hub, pyBigWig, and HMM dependencies.
|
|
36
|
-
- Upstream documentation contains stale examples. Release source and installed
|
|
37
|
-
`--help` output take precedence where they conflict.
|
|
38
|
-
|
|
39
|
-
## Install reproducibly
|
|
40
|
-
|
|
41
|
-
Use a project environment and commit its generated lockfile:
|
|
42
|
-
|
|
43
|
-
```bash
|
|
44
|
-
uv venv --python 3.12
|
|
45
|
-
uv pip install "geniml==0.8.4" "gtars==0.9.2"
|
|
46
|
-
```
|
|
47
|
-
|
|
48
|
-
For Region2Vec, scEmbed, evaluation, or universe methods needing ML libraries:
|
|
49
|
-
|
|
50
|
-
```bash
|
|
51
|
-
uv pip install "geniml[ml]==0.8.4" "gtars==0.9.2"
|
|
52
|
-
```
|
|
53
|
-
|
|
54
|
-
For a durable project, prefer:
|
|
55
|
-
|
|
56
|
-
```bash
|
|
57
|
-
uv add "geniml[ml]==0.8.4" "gtars==0.9.2"
|
|
58
|
-
uv lock
|
|
59
|
-
```
|
|
60
|
-
|
|
61
|
-
Do not install an unpinned Git branch. Record Python, OS/architecture, the
|
|
62
|
-
resolved lockfile, and the PyPI artifact digest. Geniml itself is BSD-2-Clause;
|
|
63
|
-
the `MIT` frontmatter value licenses this skill's content.
|
|
64
|
-
|
|
65
|
-
## Start with the safety gate
|
|
66
|
-
|
|
67
|
-
Before importing Geniml or running an external binary:
|
|
68
|
-
|
|
69
|
-
1. Work only with explicit local regular files. Reject URLs, FIFOs, devices,
|
|
70
|
-
and symlinks unless the user deliberately changes that policy.
|
|
71
|
-
2. Validate BED structure and the declared assembly against a trusted local
|
|
72
|
-
chromosome-sizes file.
|
|
73
|
-
3. Bound file count, bytes, rows, workers, epochs, and output size.
|
|
74
|
-
4. Separate train/validation/test by patient, donor, biological replicate, or
|
|
75
|
-
other independent unit—not by BED row or cell alone.
|
|
76
|
-
5. Inventory and checksum the universe, tokenizer, model, config, inputs,
|
|
77
|
-
metadata manifest, and native binaries.
|
|
78
|
-
6. Obtain explicit approval before any BEDbase or Hugging Face download. Never
|
|
79
|
-
infer approval from a model ID or BEDbase identifier.
|
|
80
|
-
7. Keep logs aggregate and bounded. BED filenames, sample IDs, phenotypes,
|
|
81
|
-
labels, barcodes, and genomic intervals may be sensitive.
|
|
82
|
-
|
|
83
|
-
## Coordinate and assembly contract
|
|
84
|
-
|
|
85
|
-
BED intervals are normally **0-based, half-open** `[start, end)`: start is
|
|
86
|
-
included, end is excluded, and length is `end - start`. Do not mix them with
|
|
87
|
-
1-based closed coordinates from VCF/GFF or user-facing genome browsers.
|
|
88
|
-
|
|
89
|
-
For every corpus and artifact, record:
|
|
90
|
-
|
|
91
|
-
- assembly and patch/accession where possible (for example GRCh38 versus
|
|
92
|
-
GRCh38.p14), plus the chromosome-sizes checksum;
|
|
93
|
-
- contig naming convention (`chr1` versus `1`), alt/random/decoy policy, and
|
|
94
|
-
mitochondrial naming;
|
|
95
|
-
- coordinate convention, sorting order, duplicate/overlap policy, and whether
|
|
96
|
-
BED strand is meaningful;
|
|
97
|
-
- liftover tool, chain digest, source/target assemblies, unmapped fraction, and
|
|
98
|
-
post-liftover validation.
|
|
99
|
-
|
|
100
|
-
Reject negative coordinates, `end <= start`, integer overflow, unknown
|
|
101
|
-
contigs, ends beyond contig length, malformed columns, mixed assemblies, and
|
|
102
|
-
silent contig renaming. Sorting and normalization never repair an assembly
|
|
103
|
-
mismatch. BED3 has no strand; when column 6 is present, preserve `+`, `-`, or
|
|
104
|
-
`.` unless the assay contract says otherwise.
|
|
105
|
-
|
|
106
|
-
Run a bounded validation and normalization **plan** before analysis:
|
|
107
|
-
|
|
108
|
-
```bash
|
|
109
|
-
python skills/geniml/scripts/bed_validator.py \
|
|
110
|
-
--input data/peaks.bed \
|
|
111
|
-
--assembly GRCh38 \
|
|
112
|
-
--chrom-sizes refs/GRCh38.chrom.sizes
|
|
113
|
-
```
|
|
114
|
-
|
|
115
|
-
The validator reports proposed actions but never rewrites the BED file.
|
|
116
|
-
|
|
117
|
-
## Current API map
|
|
118
|
-
|
|
119
|
-
### Region and tokenizer I/O
|
|
120
|
-
|
|
121
|
-
Prefer Gtars for new interval/tokenizer code:
|
|
122
|
-
|
|
123
|
-
```python
|
|
124
|
-
from gtars.models import Region, RegionSet
|
|
125
|
-
from gtars.tokenizers import Tokenizer
|
|
126
|
-
|
|
127
|
-
regions = RegionSet("data/peaks.bed")
|
|
128
|
-
tokenizer = Tokenizer.from_bed("refs/universe.bed")
|
|
129
|
-
encoded = tokenizer(regions)
|
|
130
|
-
input_ids = encoded["input_ids"]
|
|
131
|
-
```
|
|
132
|
-
|
|
133
|
-
`RegionSet` and `Tokenizer` also accept remote inputs in some constructors;
|
|
134
|
-
this skill permits local paths only unless network access is explicitly
|
|
135
|
-
approved. `geniml.io.RegionSet(regions, backed=False)` remains available as a
|
|
136
|
-
legacy Python implementation; backed sets are iterable but not indexable.
|
|
137
|
-
`geniml.io.Region` uses `stop`, while `gtars.models.Region` uses `end`.
|
|
138
|
-
|
|
139
|
-
With gtars 0.9.2, seven special tokens are added to a BED vocabulary. Therefore
|
|
140
|
-
`len(tokenizer)` is not simply the number of universe rows. Preserve universe
|
|
141
|
-
row order and the exact special-token map.
|
|
142
|
-
|
|
143
|
-
### Region2Vec
|
|
144
|
-
|
|
145
|
-
The modern class lives at a concrete module path:
|
|
146
|
-
|
|
147
|
-
```python
|
|
148
|
-
from geniml.region2vec.main import Region2VecExModel
|
|
149
|
-
from geniml.region2vec.utils import Region2VecDataset
|
|
150
|
-
from gtars.tokenizers import Tokenizer
|
|
151
|
-
|
|
152
|
-
tokenizer = Tokenizer.from_bed("refs/universe.bed")
|
|
153
|
-
dataset = Region2VecDataset("work/tokens.parquet", shuffle=True)
|
|
154
|
-
model = Region2VecExModel(tokenizer=tokenizer, embedding_dim=100)
|
|
155
|
-
model.train(dataset, epochs=10, window_size=5, num_cpus=4, seed=42)
|
|
156
|
-
```
|
|
157
|
-
|
|
158
|
-
The Parquet input must contain one list-valued `tokens` column, one document
|
|
159
|
-
per row. See [references/region2vec.md](references/region2vec.md) for export,
|
|
160
|
-
encoding, legacy CLI, and evaluation details.
|
|
161
|
-
|
|
162
|
-
### scEmbed
|
|
163
|
-
|
|
164
|
-
Import `ScEmbed` from `geniml.scembed.main`. AnnData `.var` must contain
|
|
165
|
-
`chr`, `start`, and `end`; rows are cells and nonzero features identify
|
|
166
|
-
accessible regions. Pre-tokenize to a Parquet `tokens` column and use the same
|
|
167
|
-
Tokenizer for training and inference. See
|
|
168
|
-
[references/scembed.md](references/scembed.md).
|
|
169
|
-
|
|
170
|
-
### BEDspace
|
|
171
|
-
|
|
172
|
-
BEDspace remains in 0.8.4 and invokes an external StarSpace executable.
|
|
173
|
-
StarSpace is archived and upstream Geniml does not pin a compatible revision.
|
|
174
|
-
Treat BEDspace as a legacy reproduction path, not the default for new systems.
|
|
175
|
-
See [references/bedspace.md](references/bedspace.md) for the exact stable CLI
|
|
176
|
-
spelling and an immutable, explicitly unverified build baseline.
|
|
177
|
-
|
|
178
|
-
### Consensus universes and assessment
|
|
179
|
-
|
|
180
|
-
The installed 0.8.4 CLI uses:
|
|
181
|
-
|
|
182
|
-
```text
|
|
183
|
-
geniml build-universe {cc,ccf,ml,hmm} ...
|
|
184
|
-
geniml assess-universe ...
|
|
185
|
-
geniml eval {gdst,npt,ctt,rct,bin-gen} ...
|
|
186
|
-
```
|
|
187
|
-
|
|
188
|
-
CC/CCF/ML/HMM consume precomputed coverage bigWigs. Do not concatenate or
|
|
189
|
-
generate coverage until all BED files pass the same assembly contract.
|
|
190
|
-
Assessment and embedding metrics are distinct: `assess-universe` measures fit
|
|
191
|
-
of a universe to interval collections, while `eval` implements CTT, RCT, GDST,
|
|
192
|
-
and NPT for embeddings. See
|
|
193
|
-
[references/consensus_peaks.md](references/consensus_peaks.md) and
|
|
194
|
-
[references/utilities.md](references/utilities.md).
|
|
195
|
-
|
|
196
|
-
## Important 0.8.4 migration notes
|
|
197
|
-
|
|
198
|
-
- The 0.7.0 changelog moved new RegionSet/tokenizer work toward Gtars.
|
|
199
|
-
- The 0.4.0 names `TreeTokenizer` and `AnnDataTokenizer` are historical; the
|
|
200
|
-
current Gtars API exposes `Tokenizer`.
|
|
201
|
-
- In the 0.8.4 wheel, `geniml.region2vec` and `geniml.scembed` do not re-export
|
|
202
|
-
their modern classes/functions. Use the concrete module paths above.
|
|
203
|
-
- `geniml tokenize` and `geniml region2vec` call names no longer exported by
|
|
204
|
-
their package `__init__` files; do not build new workflows around those CLI
|
|
205
|
-
paths without an installed-version smoke test.
|
|
206
|
-
- `geniml scembed` parses legacy MatrixMarket options but its command body is a
|
|
207
|
-
no-op in 0.8.4. Use `geniml.scembed.main.ScEmbed`.
|
|
208
|
-
- Official pages still show `geniml assess`; the release command is
|
|
209
|
-
`geniml assess-universe`.
|
|
210
|
-
- `.gtok` remains present in legacy datasets, but upstream issue #14 proposes
|
|
211
|
-
deprecating many-file `.gtok` workflows. Prefer one bounded Parquet corpus.
|
|
212
|
-
- Config key `embedding_size` is accepted only for backward compatibility;
|
|
213
|
-
use `embedding_dim`.
|
|
214
|
-
|
|
215
|
-
## Model and universe compatibility
|
|
216
|
-
|
|
217
|
-
A Region2Vec/scEmbed inference bundle is valid only when these agree:
|
|
218
|
-
|
|
219
|
-
- model `config.yaml` `vocab_size` and `embedding_dim`;
|
|
220
|
-
- exact `universe.bed` bytes/order and assembly;
|
|
221
|
-
- tokenizer implementation/version and special-token IDs;
|
|
222
|
-
- checkpoint tensor shapes and pooling policy;
|
|
223
|
-
- Geniml/Gtars versions and any tokenization parameters.
|
|
224
|
-
|
|
225
|
-
Geniml 0.8.4 defaults to `checkpoint.pt`, `config.yaml`, and `universe.bed`.
|
|
226
|
-
Its loader uses `torch.load(..., weights_only=True)`, but `.pt`, Gensim
|
|
227
|
-
`.model`, pickle, joblib, and native binaries remain untrusted inputs. Inspect
|
|
228
|
-
and checksum artifacts before loading; use an isolated environment and never
|
|
229
|
-
load a checkpoint merely to discover its metadata.
|
|
230
|
-
|
|
231
|
-
```bash
|
|
232
|
-
python skills/geniml/scripts/model_artifact_inspector.py \
|
|
233
|
-
--model-dir models/region2vec
|
|
234
|
-
|
|
235
|
-
python skills/geniml/scripts/tokenizer_compatibility.py \
|
|
236
|
-
--model-dir models/region2vec \
|
|
237
|
-
--universe refs/universe.bed \
|
|
238
|
-
--assembly GRCh38
|
|
239
|
-
```
|
|
240
|
-
|
|
241
|
-
`Region2VecExModel(model_path="org/repo")`, `ScEmbed(model_path="org/repo")`,
|
|
242
|
-
and Gtars `Tokenizer.from_pretrained(...)` can download from Hugging Face.
|
|
243
|
-
Local `from_pretrained("models/local")` loads a local bundle. Pin Hub revision
|
|
244
|
-
and expected hashes when a user approves download; then work offline from the
|
|
245
|
-
verified cache.
|
|
246
|
-
|
|
247
|
-
## BEDbase downloads and caches
|
|
248
|
-
|
|
249
|
-
`BBClient.load_bed`, `load_bedset`, and token-cache operations may contact
|
|
250
|
-
`https://api.bedbase.org`. The default cache is
|
|
251
|
-
`$BBCLIENT_CACHE` or `~/.bbcache`; `BEDBASE_API` changes the endpoint. Do not
|
|
252
|
-
read unrelated environment variables. Set an explicit project cache, estimate
|
|
253
|
-
size, approve identifiers/endpoints, and verify returned checksums before use.
|
|
254
|
-
|
|
255
|
-
Local inspection commands are safer:
|
|
256
|
-
|
|
257
|
-
```text
|
|
258
|
-
geniml bbclient seek ID --cache-folder /absolute/project/cache
|
|
259
|
-
geniml bbclient inspect-bedfiles --cache-folder /absolute/project/cache
|
|
260
|
-
geniml bbclient inspect-bedsets --cache-folder /absolute/project/cache
|
|
261
|
-
```
|
|
262
|
-
|
|
263
|
-
The `cache-bed`, `cache-bedset`, and `cache-tokens` subcommands may use the
|
|
264
|
-
network. Do not run them implicitly or include sensitive local BED files in an
|
|
265
|
-
upload/cache workflow.
|
|
266
|
-
|
|
267
|
-
## Local audit and planning CLIs
|
|
268
|
-
|
|
269
|
-
All scripts are standard-library-only and default to redacted JSON:
|
|
270
|
-
|
|
271
|
-
```bash
|
|
272
|
-
# Audit manifest paths, checksums, assemblies, and patient/donor leakage
|
|
273
|
-
python skills/geniml/scripts/corpus_auditor.py \
|
|
274
|
-
--manifest data/manifest.tsv --assembly-column assembly \
|
|
275
|
-
--group-column patient_id --split-column split
|
|
276
|
-
|
|
277
|
-
# Plan tokenizer/model compatibility checks
|
|
278
|
-
python skills/geniml/scripts/tokenizer_compatibility.py \
|
|
279
|
-
--model-dir models/r2v --universe refs/universe.bed --assembly GRCh38
|
|
280
|
-
|
|
281
|
-
# Plan consensus construction; does not execute Geniml or coverage tools
|
|
282
|
-
python skills/geniml/scripts/consensus_plan.py \
|
|
283
|
-
--manifest data/manifest.tsv --chrom-sizes refs/GRCh38.chrom.sizes \
|
|
284
|
-
--assembly GRCh38 --method cc --output-dir work/consensus
|
|
285
|
-
|
|
286
|
-
# Plan an embedding run; does not import ML libraries
|
|
287
|
-
python skills/geniml/scripts/embedding_plan.py \
|
|
288
|
-
--mode region2vec --data work/tokens.parquet \
|
|
289
|
-
--universe refs/universe.bed --output-dir work/r2v \
|
|
290
|
-
--assembly GRCh38
|
|
291
|
-
```
|
|
292
|
-
|
|
293
|
-
Use `--help` for resource limits and explicit path-disclosure controls.
|
|
294
|
-
|
|
295
|
-
## References
|
|
296
|
-
|
|
297
|
-
- [Region2Vec](references/region2vec.md): modern API, artifacts, CLI drift,
|
|
298
|
-
training, encoding, and evaluation.
|
|
299
|
-
- [scEmbed](references/scembed.md): AnnData/token preparation, training,
|
|
300
|
-
inference, annotation, privacy, and leakage.
|
|
301
|
-
- [BEDspace](references/bedspace.md): metadata schema, exact legacy CLI,
|
|
302
|
-
StarSpace status, artifacts, and retrieval.
|
|
303
|
-
- [Consensus peaks](references/consensus_peaks.md): coverage prerequisites,
|
|
304
|
-
CC/CCF/ML/HMM, assessment, and assembly safeguards.
|
|
305
|
-
- [Utilities](references/utilities.md): I/O, Gtars tokenizers, BBClient,
|
|
306
|
-
evaluation, model safety, migration, and dated sources.
|
|
307
|
-
|
|
308
|
-
Source snapshot and primary-paper links are dated in
|
|
309
|
-
[references/utilities.md](references/utilities.md). Re-check release metadata
|
|
310
|
-
and installed signatures before changing the pinned versions.
|