Skip to main content

The Python package for a spatial multi-omics integration algorithm called SpaMV.

Project description

SpaMV: An interpretable spatial multi-omics data integration and dimension reduction algorithm

Installation

  1. Create and activate a conda environment with python 3.12
conda env create spamv python==3.12
conda activate spamv
  1. (Optional) If you want to apply our algorithm to large datasets (with more than 10,000 spots), please make sure you have installed the pyg-lib package.
pip install pyg-lib -f https://data.pyg.org/whl/torch-${TORCH}+${CUDA}.html

where

  • ${TORCH} should be replaced by either 1.13.0, 2.0.0, 2.1.0, 2.2.0, 2.3.0, 2.4.0, 2.5.0, 2.6.0, or 2.7.0
  • ${CUDA} should be replaced by either cpu, cu102, cu117, cu118, cu121, cu124, cu126, or cu128
  1. Then you can install our package as follows:
pip install spamv

Tutorial

We provide two jupyter notebooks (Tutorial_simulation.ipynb and Tutorial_realworld.ipynb) to reproduce the results in our paper. Before you run them, please make sure that you have downloaded the simulated data and/or real-world data from our Zenodo repositoy.

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

spamv-1.0.41.tar.gz (30.7 kB view details)

Uploaded Source

Built Distribution

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

spamv-1.0.41-py3-none-any.whl (31.9 kB view details)

Uploaded Python 3

File details

Details for the file spamv-1.0.41.tar.gz.

File metadata

  • Download URL: spamv-1.0.41.tar.gz
  • Upload date:
  • Size: 30.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for spamv-1.0.41.tar.gz
Algorithm Hash digest
SHA256 8d9c8fe3307cd175bb04e53749b6108ddc43878b077b14d2121907a0ddc7e0c2
MD5 055d7edae100ee9c74d3ffbd02c1125d
BLAKE2b-256 1ec2d1a8aaca4cc56d5efa494f6ca382dc5983ad17fd2ac5c5a283f2fe42765e

See more details on using hashes here.

File details

Details for the file spamv-1.0.41-py3-none-any.whl.

File metadata

  • Download URL: spamv-1.0.41-py3-none-any.whl
  • Upload date:
  • Size: 31.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for spamv-1.0.41-py3-none-any.whl
Algorithm Hash digest
SHA256 99a098308219de5ae571c50a0f84bc90fa547380fd6cd3e0c1d8c8d86c9babad
MD5 00a1b03a31252720c0322022ba8b0d8f
BLAKE2b-256 af104f1a9463a1b59a9be8bdb9372d49dbce9822a2adef6384df53b0e60f17e8

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