Popari: a probabilistic graphical model for integrated spatial transcriptomics analysis
Project description
SpiceMix
SpiceMix is an unsupervised tool for analyzing data of the spatial transcriptome. SpiceMix models the observed expression of genes within a cell as a mixture of latent factors. These factors are assumed to have some spatial affinity between neighboring cells. The factors and affinities are not known a priori, but are learned by SpiceMix directly from the data, by an alternating optimization method that seeks to maximize their posterior probability given the observed gene expression. In this way, SpiceMix learns a more expressive representation of the identity of cells from their spatial transcriptome data than other available methods.
SpiceMix can be applied to any type of spatial transcriptomics data, including MERFISH, seqFISH, HDST, and Slide-seq.
Install
pip install popari
Publishing
pip install hatch
pip install keyrings.alt
hatch build
hatch publish
Username: __token__
Password: {API token for PyPI}
Tests
To run the provided tests and ensure that SpiceMix can run on your platform, follow the instructions below:
- Download this repo.
git clone https://github.com/alam-shahul/SpiceMixPlus.git
- Install
pytest
in your environment.
pip install pytest
- Navigate to the root directory of this repo.
- Run the following command. With GPU resources, this test should execute without errors in ~2.5 minutes:
python -m pytest -s tests/test_popari_shared.py
Building Documentation
Assuming you have CMake:
- Navigate to
docs/
.
cd docs/
- Install Sphinx requirements.
pip install -r requirements.txt
- Clean and build.
make clean
make html
- Push to GitHub, and documentation will automatically build.
Cite
Cite our paper:
@article{chidester2020spicemix,
title={SPICEMIX: Integrative single-cell spatial modeling for inferring cell identity},
author={Chidester, Benjamin and Zhou, Tianming and Ma, Jian},
journal={bioRxiv},
year={2020},
publisher={Cold Spring Harbor Laboratory}
}
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
File details
Details for the file popari-0.0.38.tar.gz
.
File metadata
- Download URL: popari-0.0.38.tar.gz
- Upload date:
- Size: 51.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.23.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 764f46a0e04b978fbd5165beba54aa1ac7bcedd0eb2694c3e08c6a2f9902fe2f |
|
MD5 | 70b4f41449b77be0670ee391211bcd7a |
|
BLAKE2b-256 | 3039278cefa49a49c54707eb786817c8ca4e4ffb6e1d1fd20b700dc4680ec20e |
File details
Details for the file popari-0.0.38-py3-none-any.whl
.
File metadata
- Download URL: popari-0.0.38-py3-none-any.whl
- Upload date:
- Size: 59.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.23.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ed44c8cf1147db65fe17aff87a98b9adc3ae0f73814a4be3c7d3f19501d80413 |
|
MD5 | 14c62b8f8bb99afff87337592f2615ef |
|
BLAKE2b-256 | 334bb7988db1d2aba3363ed6faa7c5792f3a5772b07345848177a4db5df25884 |