geniml
This skill should be used when working with genomic interval data (BED files) for machine learning tasks.
Skill by qinyan-ai
Chalk Labs
Need help deploying geniml?
Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/qinyan-ai-geniml
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: data, ml
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions: not checked yet.
What's inside
- Skill name
geniml- Description
- This skill should be used when working with genomic interval data (BED files) for machine learning tasks. Use for training region embeddings (Region2Vec, BEDspace), single-cell ATAC-seq analysis (scEmbed), building consensus peaks (universes), or any ML-based analysis of genomic regions. Applies to BED file collections, scATAC-seq data, chromatin accessibility datasets, and region-based genomic feature learning.
- License
- MIT
- Metadata
- skill-author: K-Dense Inc.
- Instructions
- 310 lines in SKILL.md · view on GitHub
Files (6)
- SKILL.md
- bedspace.md · references/
- consensus_peaks.md · references/
- region2vec.md · references/
- scembed.md · references/
- utilities.md · references/
SKILL.md (first lines)
# Geniml: Genomic Interval Machine Learning
## Overview
Geniml is a Python package for building machine learning models on genomic interval data from BED files. It provides unsupervised methods for learning embeddings of genomic regions, single cells, and metadata labels, enabling similarity searches, clustering, and downstream ML tasks.
## Installation
Install geniml using uv:
```bash
uv uv pip install geniml
```
For ML dependencies (PyTorch, etc.):
```bash
uv uv pip install 'geniml[ml]'
```
Development version from GitHub:
```bash
uv uv pip install git+https://github.com/databio/geniml.git
```
## Core Capabilities
Geniml provides five primary capabilities, each detailed in dedicated reference files:
### 1. Region2Vec: Genomic Region Embeddings
Train unsupervised embeddings of genomic regions using word2vec-style learning.
**Use for:** Dimensionality reduction of BED files, region similarity analysis, feature vectors for downstream ML.
**Workflow:**
1. Tokenize BED files using a universe reference
2. Train Region2Vec model on tokens
3. Generate embeddings for regions
**Reference:** See `references/region2vec.md` for detailed workflow, parameters, and examples.
### 2. BEDspace: Joint Region and Metadata Embeddings
Train shared embeddings for region sets and metadata labels using StarSpace.
**Use for:** Metadata-aware searches, cross-modal queries (region→label or label→region), joint analysis of genomic content and experimental conditions.
**Workflow:**
1. Preprocess regions and metadata
2. Train BEDspace model
3. Compute distances
4. Query across regions and labels
**Reference:** See `references/bedspace.md` for detailed workflow, search types, and examples.
### 3. scEmbed: Single-Cell Chromatin Accessibility Embeddings
Train Region2Vec models on single-cell ATAC-seq data for cell-level embeddings.
**Use for:** scATAC-seq clustering, cell-type annotation, dimensionality reduction of single cells, integration with scanpy workflows.
**Workflow:**
1. Prepare AnnData with peak coordinates
2. Pre-tokenize cells
3. Train scEmbed model
4. Generate cell embeddings
5. Cluster and visualize with scanpy
**Reference:** See `references/scembed.md` for detailed workflow, parameters, and examples.
### 4. Consensus Peaks: Universe Building
Build reference peak sets (universes) from BED file collections using multiple statistical methods.
**Use for:** Creating tokenization references, standardizing regions across datasets, defining consensus features with statistical rigor.
**Workflow:**
1. Combine BED files
2. Generate coverage tracks
3. Build universe using CC, CCF, ML, or HMM method
**Methods:**
- **CC (Coverage Cutoff)**: Simple threshold-based
- **CCF (Coverage Cutoff Flexible)**: Confidence intervals for boundaries
- **ML (Maximum Likelihood)**: Probabilistic modeling of positions
- **HMM (Hidden Markov Model)**: Complex state modeling
**Reference:** See `references/consensus_peaks.md` for method comparison, parameters, and examples.
### 5. Utilities: Supporting Tools
Additional tools for caching, randomization, evaluation, and search.
**Available utilities:**
- **BBClient**: BED file caching for repeated access
- **BEDshift**: Randomization preserving genomic context
- **Evaluation**: Metrics for embedding quality (silhouette, Davies-Bouldin, etc.)
- **Tokenization**: Region tokenization utilities (hard, soft, universe-based)
- **Text2BedNN**: Neural search backends for genomic queries
**Reference:** See `references/utilities.md` for detailed usage of each utility.
## Common Workflows
### Basic Region Embedding Pipeline
```python
from geniml.tokenization import hard_tokenization
from geniml.region2vec import region2vec
from geniml.evaluation import evaluate_embeddings
# Step 1: Tokenize BED files
hard_tokenization(
src_folder='bed_files/',
dst_folder='tokens/',
universe_file='universe.bed',
p_value_threshold=1e-9From qinyan-ai/qinyan-academic-skills, MIT.
More from qinyan-ai/qinyan-academic-skills
- 0.522score
consciousness-council
qinyan-ai
Run a multi-perspective Mind Council deliberation on any question, decision, or creative challenge.
SkillDFreshness: D★ 87Claude Code +9 - 0.522score
dhdna-profiler
qinyan-ai
Extract cognitive patterns and thinking fingerprints from any text.
SkillDFreshness: D★ 87Claude Code +9 - 0.522score
what-if-oracle
qinyan-ai
Run structured What-If scenario analysis with multi-branch possibility exploration.
SkillDFreshness: D★ 87Claude Code +9 - 0.513score
venue-templates
qinyan-ai
Access comprehensive LaTeX templates, formatting requirements, and submission guidelines for major scientific publication venues (Nature, Science, PLOS, IEEE…
SkillDFreshness: D★ 87Claude Code +9
Signals
- Stars
- 87
- Forks
- 7
- Open issues
- 0
- Last commit (this folder)
- Mar 9, 2026 (7 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
Same skill elsewhere
Copies of this SKILL.md published by others; search shows only one of them.
More from qinyan-ai
- 0.522score
consciousness-council
qinyan-ai
Run a multi-perspective Mind Council deliberation on any question, decision, or creative challenge.
SkillDFreshness: D★ 87Claude Code +9 - 0.522score
dhdna-profiler
qinyan-ai
Extract cognitive patterns and thinking fingerprints from any text.
SkillDFreshness: D★ 87Claude Code +9 - 0.522score
what-if-oracle
qinyan-ai
Run structured What-If scenario analysis with multi-branch possibility exploration.
SkillDFreshness: D★ 87Claude Code +9 - 0.513score
venue-templates
qinyan-ai
Access comprehensive LaTeX templates, formatting requirements, and submission guidelines for major scientific publication venues (Nature, Science, PLOS, IEEE…
SkillDFreshness: D★ 87Claude Code +9
Done for you
Rather not set it up yourself?
Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.
See how we build AI agents →Read the case studies
Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.
- launches shipped
- 50+
- launches shipped
- media placements
- 500+
- media placements
- founders on every account
- 2
- founders on every account
Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block
Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.
Get geniml running in your business
Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.
Cite this page
geniml skill. Agent Mart. https://agentmart.dev/skills/qinyan-ai-geniml (last updated 2026-10-24)