variationa inference-based microniche analysis
Project description
vima
Variational inference-based microniche analysis is a method for conducting case-control analysis on multi-sample spatial molecular datasets. vima can be applied to any spatially resolved molecular technology, is well powered even at the modest sample sizes typical of research cohorts, and avoids traditional, parameter-intensive preprocessing steps such as cell segmentation or clustering of cells into discrete cell types. It works by treating each spatial sample as an image and using a variational autoencoder to extract numerical "fingerprints" from small tissue patches that capture their biological content. It uses these fingerprints to define a large number of "microniches" – small, potentially overlapping groups of tissue patches with highly similar biology that span multiple samples. It then uses rigorous statistics to identify microniches whose abundance correlates with case-control status.
installation
To use vima, you can either install it directly from the Python Package Index by running, e.g.,
pip install vima-spatial
or if you'd like to manipulate the source code you can clone this repository and add it to your PYTHONPATH.
Note that the package requires a working installation of pytorch, and it may be beneficial to first install pytorch, verify it works properly, and then install vima. For data preprocessing the current version of the package also requires a working R environment with the harmony package installed. You will need the path to the Rscript executable in your R environment, which you can obtain by running which Rscript with the R environment active.
demo
Take a look at our demo to see how to get started with an example analysis. We plan to put up demos for other data modalities in the future.
citation
If you use vima, please cite:
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 vima_spatial-0.1.2.tar.gz.
File metadata
- Download URL: vima_spatial-0.1.2.tar.gz
- Upload date:
- Size: 25.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
33dac8bb6a813b8deaffce64d8b3603b8f177998a72f9de85084178ced01029a
|
|
| MD5 |
fdca35b00b2bc0227a20b645d961741f
|
|
| BLAKE2b-256 |
d40a83ec9ccdbf7a379622831a4ba8225f4de57d3da76ac1eee56508b92eb9e8
|
File details
Details for the file vima_spatial-0.1.2-py3-none-any.whl.
File metadata
- Download URL: vima_spatial-0.1.2-py3-none-any.whl
- Upload date:
- Size: 32.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
63d891e1799d546862e8a490acf94a5d589e61fbfda58581c95fe7ef48b614fb
|
|
| MD5 |
9f8f31757bc2e605e4411caf1ced465a
|
|
| BLAKE2b-256 |
086b20649b0994afb779ffaae0ad0d74153354c04ecc3f7fc6747449025507a3
|