ENVI & COVET
ENVI is a deep learnining based variational inference method to integrate scRNA-seq with spatial transcriptomics data. ENVI learns to reconstruct spatial onto for dissociated scRNA-seq data and impute unimagd genes onto spatial data.
This implementation is written in Python3 and relies on jax, flax, sklearn, scipy and scanpy.
To install JAX, simply run the command:
pip install -U "jax[cuda12]"
And to install ENVI along with the rest of the requirements:
pip install scenvi
To run ENVI:
import scenvi
envi_model = scenvi.ENVI(spatial_data = st_data, sc_data = sc_data)
envi_model.train()
envi_model.impute_genes()
envi_model.infer_niche_covet()
envi_model.infer_niche_celltype()
st_data.obsm['envi_latent'] = envi_model.spatial_data.obsm['envi_latent']
st_data.uns['COVET_genes'] = envi_model.CovGenes
st_data.obsm['COVET'] = envi_model.spatial_data.obsm['COVET']
st_data.obsm['COVET_SQRT'] = envi_model.spatial_data.obsm['COVET_SQRT']
st_data.obsm['cell_type_niche'] = envi_model.spatial_data.obsm['cell_type_niche']
st_data.obsm['imputation'] = envi_model.spatial_data.obsm['imputation']
sc_data.obsm['envi_latent'] = envi_model.sc_data.obsm['envi_latent']
sc_data.uns['COVET_genes'] = envi_model.CovGenes
sc_data.obsm['COVET'] = envi_model.sc_data.obsm['COVET']
sc_data.obsm['COVET_SQRT'] = envi_model.sc_data.obsm['COVET_SQRT']
sc_data.obsm['cell_type_niche'] = envi_model.sc_data.obsm['cell_type_niche']
And to just compute COVET for spatial data:
st_data.obsm['COVET'], st_data.obsm['COVET_SQRT'], st_data.uns['CovGenes'] = scenvi.compute_covet(st_data)
Please read our documentation and see a full tutorial at https://scenvi.readthedocs.io/.
Metadata
Release files for scenvi 0.4.6
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 |
|---|---|---|---|---|
| scenvi-0.4.6.tar.gz | 12.4 kB | Without provenance | Details for scenvi-0.4.6.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| scenvi-0.4.6-py3-none-any.whl | Python 3 | none | any | Details for scenvi-0.4.6-py3-none-any.whl |
Total release size: 25.7 kB
Release files / scenvi-0.4.6.tar.gz
| Download URL | scenvi-0.4.6.tar.gz |
|---|---|
| Size | 12.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7e2854bdd0e4f917514050796e6b34ceb35305f53e5fe71c017ad6e77c33e7bb
|
|
BLAKE2b-256 checksum How to use checksums |
f499e54cacdf316ed84fdb17e5bb6c3389578aa547104a35a6aef9ee6998568c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.5.1 CPython/3.13.7 Linux/6.11.0-1018-azure
|
Release files / scenvi-0.4.6-py3-none-any.whl
| Download URL | scenvi-0.4.6-py3-none-any.whl |
|---|---|
| Size | 13.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
20d6c946aebb9fb051c1b794b34f9b91fc843cdf803e6f6a4f01fae2c4889e2c
|
|
BLAKE2b-256 checksum How to use checksums |
4e86f5ef9466c4007f5bbc4afb8ab157105b6e546cfa0d7af64d0242e92cd332
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.5.1 CPython/3.13.7 Linux/6.11.0-1018-azure
|
Security for scenvi 0.4.6
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.