Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Trains and applies region2vec embeddings for BED genomic regions, plus BEDSpace search and embedding evaluation in Python.
36% 100%+64 ptsof test cases passed
Passed 22 of 22 test cases with the skill, and 8 of 22 without it.
3 of 3 safety checks passed
58 agent runs
Geniml is a Python library that bridges genomic interval biology and machine learning. It provides region2vec for learning dense vector representations of genomic regions from BED files, BEDSpace for nearest-neighbor search in embedding space, dataset classes for ML-ready genomic interval loading, and evaluation utilities for embedding quality. Geniml is designed for researchers who want to apply modern ML techniques to chromatin accessibility, histone modification, or other region-based genomic data.
gtars or pysam-genomic-files insteadgeniml, torch, numpy, pandas, anndatapip install geniml torch numpy pandas anndata
from geniml.region2vec import Region2VecExModel
from geniml.io import RegionSet
# Load a collection of BED files and train region2vec embeddings
region_sets = [RegionSet("sample1.bed"), RegionSet("sample2.bed"), RegionSet("sample3.bed")]
model = Region2VecExModel("path/to/universe.bed")
model.train(region_sets, epochs=10, batch_size=32)
# Get embedding for a specific region
embedding = model.encode("chr1", 1000000, 1500000)
print(f"Embedding shape: {embedding.shape}")
Published skills whose descriptions closely match this one, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.