IsoVAE
IsoVAE is a Python package for single-cell isoform-usage analysis. It supports:
- Isoform-usage prediction from short-read single-cell gene-expression profiles.
- Long-read isoform-usage denoising from sparse long-read isoform count matrices.
IsoVAE models within-gene isoform usage proportions, not absolute transcript abundance.
Installation
pip install isovae
For local development:
git clone https://github.com/your-username/IsoVAE.git
cd IsoVAE
pip install -e .
Quick start
import scanpy as sc
from isovae import (
load_artifact,
reconstruct_preprocessor_from_training_data,
predict_isoform_usage,
denoise_isoform_usage,
)
model_path = "path/to/vae_xda_model.pt"
gene_train = sc.read("path/to/training_gene_matrix.h5ad")
iso_train = sc.read("path/to/training_isoform_matrix.h5ad")
preprocessor = reconstruct_preprocessor_from_training_data(
model_path,
adata_gene_train=gene_train,
adata_iso_train=iso_train,
seed=42,
)
artifact = load_artifact(model_path, preprocessor=preprocessor, device="cpu")
# Predict isoform usage from short-read data.
gene_query = sc.read("path/to/query_gene_matrix.h5ad")
pred_usage, pred_meta = predict_isoform_usage(artifact, gene_query)
pred_usage.to_csv("predicted_isoform_usage.csv")
# Denoise long-read isoform usage.
iso_query = sc.read("path/to/query_isoform_matrix.h5ad")
denoised_usage, noisy_usage, denoise_meta = denoise_isoform_usage(artifact, iso_query)
denoised_usage.to_csv("denoised_isoform_usage.csv")
Documentation
The documentation source is in docs/ and can be built with MkDocs:
pip install -e ".[docs]"
mkdocs serve
To deploy to GitHub Pages:
mkdocs gh-deploy
See docs/deployment.md for deployment instructions for GitHub Pages, Read the Docs, Netlify and Vercel.
Repository layout
.
├── src/isovae/ # Python package
├── docs/ # Documentation source
├── mkdocs.yml # Documentation configuration
├── pyproject.toml # Package metadata
├── requirements.txt
├── LICENSE
└── README.md
Large data files, AnnData objects, model checkpoints and manuscript outputs are not included in the package.
Citation
If you use IsoVAE, please cite the accompanying manuscript after publication.
Metadata
Release files for isovae 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| isovae-0.1.0.tar.gz | 13.3 kB | Without provenance | Details for isovae-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| isovae-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for isovae-0.1.0-py3-none-any.whl |
Total release size: 27.8 kB
Release files / isovae-0.1.0.tar.gz
| Download URL | isovae-0.1.0.tar.gz |
|---|---|
| Size | 13.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2a8280500b023f0bb24e6aba537ee2de75f6354647b0aa1dc1ce2f2902b162b5
|
|
BLAKE2b-256 checksum How to use checksums |
702d89edf5334eb68fe3b777ec5af11256c5b34d84a2f15a7f572796ad734f45
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.20
|
Release files / isovae-0.1.0-py3-none-any.whl
| Download URL | isovae-0.1.0-py3-none-any.whl |
|---|---|
| Size | 14.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d424eabe4f3ddde66f50a54c95ccea699425a04fd34fdcc0a8589e82f29cf128
|
|
BLAKE2b-256 checksum How to use checksums |
91f187d4c251c0a29310667e3b34ede48904159d6bf7b41e1f6dc731ca98222b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.20
|
Security for isovae 0.1.0
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.