Integration of scRNA-seq and spatial transcpriptomics data
Project description
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/.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file scenvi-0.4.6.tar.gz.
File metadata
- Download URL: scenvi-0.4.6.tar.gz
- Upload date:
- Size: 12.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.1 CPython/3.13.7 Linux/6.11.0-1018-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7e2854bdd0e4f917514050796e6b34ceb35305f53e5fe71c017ad6e77c33e7bb
|
|
| MD5 |
7c5b6c04d6d1b88e88fdf2d172152119
|
|
| BLAKE2b-256 |
f499e54cacdf316ed84fdb17e5bb6c3389578aa547104a35a6aef9ee6998568c
|
File details
Details for the file scenvi-0.4.6-py3-none-any.whl.
File metadata
- Download URL: scenvi-0.4.6-py3-none-any.whl
- Upload date:
- Size: 13.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.1 CPython/3.13.7 Linux/6.11.0-1018-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
20d6c946aebb9fb051c1b794b34f9b91fc843cdf803e6f6a4f01fae2c4889e2c
|
|
| MD5 |
38583891cc8b7fdb4e7a6873a7f414fa
|
|
| BLAKE2b-256 |
4e86f5ef9466c4007f5bbc4afb8ab157105b6e546cfa0d7af64d0242e92cd332
|