Skip to main content

Embedding Kit

Methods for data normalization, embedding, synthesis and transformation in computational biology workflows.

Embedding Kit (embkit) is a toolkit for building and applying embedding models. It combines:

  • CLI commands for repeatable model training and encoding
  • PyTorch VAE model components for custom pipelines
  • Utilities for loading, normalizing, and aligning large molecular datasets
  • ESM2-based protein sequence embeddings

Use Embedding Kit when you want to move from tabular molecular data (RNA-seq, proteomics, methylation) to trainable latent representations that can be reused for downstream analysis.

Features

  • VAE & NetVAE training — Train variational autoencoders, including pathway-constrained NetVAE models, from tabular or HDF5 matrices.
  • Beta-KL scheduling — Schedule the KL-regularization weight across training epochs for stable convergence.
  • Protein embeddings — Generate sequence embeddings from FASTA files using ESM2 models.
  • Normalization utilities — Min-max and exponential min-max normalization for expression matrices.
  • Device auto-detection — Runs on CPU, CUDA, or Apple Metal GPUs.
  • Python API — Composable layers, losses, and model factories for custom pipelines beyond the CLI.

Installation

pip install embkit

Training in Python

from embkit import dataframe_loader
from embkit.models.vae import VAE
from embkit.factory.layers import Layer
from embkit.losses import BCEWithLogitsVAELoss
from embkit.factory import save, load
from embkit import optimize

loader = dataframe_loader(df_norm, batch_size=256)

vae = VAE(
    features=list(df_norm.columns),
    latent_dim=128,
    encoder_layers=[Layer(512, activation="relu"), Layer(256, activation="relu")],
    decoder_layers=[Layer(512, activation="relu")],
)

optimize.fit_vae(vae, X=loader, epochs=60, lr=1e-3, loss=BCEWithLogitsVAELoss())

save(vae, "vae.model")

Documentation

Full documentation, including core concepts, the training guide, the CLI reference, and API docs, is available in the docs folder. To build it locally, see DEV.md.

License

MIT

Authors

Metadata

Release files for embkit 0.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for embkit 0.5
File Size Uploaded Provenance Actions
embkit-0.5.tar.gz 84.5 kB With provenance Details for embkit-0.5.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for embkit 0.5
File Interpreter ABI Platform Actions
embkit-0.5-py3-none-any.whl Python 3 none any Details for embkit-0.5-py3-none-any.whl

Total release size: 191.1 kB

Release files / embkit-0.5.tar.gz

Download URL embkit-0.5.tar.gz
Size 84.5 kB
Tags Source
SHA-256 checksum
How to use checksums
0d6d6087b3f1692d725b6f5798ef6baa0d12687479c8ee0e7a2e164e8cc53159
BLAKE2b-256 checksum
How to use checksums
ff1472235a904c4478d17c58cd580ca3730950b51b8994828805ae8914509b0b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 30, 2026.

Transparency log

Release files / embkit-0.5-py3-none-any.whl

Download URL embkit-0.5-py3-none-any.whl
Size 106.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cdc5076ee65a43e80f256876a01aeebe47c7d8d08aa0435bb6782c3027f9ec45
BLAKE2b-256 checksum
How to use checksums
ea87e4b39860d4d870aa2d43eed5c5112f2a5308520efaae1347abb85ba5ccfd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 30, 2026.

Transparency log

Security for embkit 0.5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for embkit-0.5.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 30, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page