Skip to main content

Popari: a probabilistic graphical model for integrated spatial transcriptomics analysis

Project description

SpiceMix

overview

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:

  1. Navigate to docs/.
cd docs/
  1. Install Sphinx requirements.
pip install -r requirements.txt
  1. Clean and build.
make clean
make html
  1. 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}
}

paper

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

popari-0.0.60.tar.gz (2.1 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

popari-0.0.60-py3-none-any.whl (2.2 MB view details)

Uploaded Python 3

File details

Details for the file popari-0.0.60.tar.gz.

File metadata

  • Download URL: popari-0.0.60.tar.gz
  • Upload date:
  • Size: 2.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.23.1

File hashes

Hashes for popari-0.0.60.tar.gz
Algorithm Hash digest
SHA256 5e59da2a4103a3d29952e8f81f1b83f90dd86db830b3113a50c85bed82147e8b
MD5 0f21e7d5e4ed214067b821889f3a8581
BLAKE2b-256 c21a44ff02fbafea9ddfd1f24ee9a9927ead7629b0bdffe58b54686e27d54728

See more details on using hashes here.

File details

Details for the file popari-0.0.60-py3-none-any.whl.

File metadata

  • Download URL: popari-0.0.60-py3-none-any.whl
  • Upload date:
  • Size: 2.2 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.23.1

File hashes

Hashes for popari-0.0.60-py3-none-any.whl
Algorithm Hash digest
SHA256 7251bbd2c65cc0c136ef79287e440d022cb17cc7184638fef4dad79d1a90a969
MD5 49c645a2100be7016846eda12a8d332d
BLAKE2b-256 7ae79cca4a10f0136eee4408095dc73a96ba1a3f26b2203cf01a57ac2e5c051b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page