Skip to main content

variational 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 permutation testing to identify microniches whose abundance correlates significantly with case-control status after accounting for multiple testing.

installation

vima can be installed via pip as follows:

pip install vima-spatial

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:

Y. Reshef, et al. Powerful and accurate case-control analysis of spatial molecular data. bioRxiv. https://doi.org/10.1101/2025.02.07.637149v1.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

vima_spatial-0.2.0.tar.gz (42.5 kB view details)

Uploaded Source

Built Distribution

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

vima_spatial-0.2.0-py3-none-any.whl (50.8 kB view details)

Uploaded Python 3

File details

Details for the file vima_spatial-0.2.0.tar.gz.

File metadata

  • Download URL: vima_spatial-0.2.0.tar.gz
  • Upload date:
  • Size: 42.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.4

File hashes

Hashes for vima_spatial-0.2.0.tar.gz
Algorithm Hash digest
SHA256 aece81712468e1cc27e1163995c4050fae0f51b8773653d81137193630bdc698
MD5 35a5b648e570ad0d2956a455b6fa1402
BLAKE2b-256 6bda4083bdaafe69bba317a1b6356f3bd84a015b7cce5c63fe69267ae75502ea

See more details on using hashes here.

File details

Details for the file vima_spatial-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: vima_spatial-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 50.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.4

File hashes

Hashes for vima_spatial-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5db66af390e59ce2db67ab4b0958233f3f4e4f487c24d381730b683306b2e88a
MD5 df27cfee28214215b7fa4a79419edeb8
BLAKE2b-256 607b69f8d66bc5459d26de4fe318a772547ab05c6a5fb15ce55199b42d76091a

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