Skip to main content

A python toolbox for spatial omics analysis.

Project description

spatiomic

Version License Python Version Required Ruff pre-commit GitHub CI GitHub Pages codecov PyPi Downloads

spatiomic is a computational library for the analysis of spatial proteomics (with some functions also being useful for other -omics).

The main goal of this package is to organize different packages and methods that are commonly used when dealing with high-dimensional imaging data behind a single API that allows for scalable high-performance computing applications, whenever possible on the GPU.

Installation

spatiomic is available through PyPi:

pip install spatiomic

For the best GPU-accelerated experience (optional), a CUDA-compatible GPU and installation of the cupy, cuml, cuGraph and cuCIM packages is necessary. Please consult the RAPIDS.AI installation guide for further information.

Installation time should not exceed 5 minutes on a standard desktop computer with an average network connection.

Documentation

Detailled documentation is made available at: https://spatiomic.org.

The documentation also contains a small simulated dataset used for clustering, for more information, please refer to the Pixel-based clustering section of the documentation.

Building the documentation

The documentation can be build locally by navigating to the docs folder and running: make html. This requires that the development requirements of the package as well as the package itself have been installed in the same virtual environment and that pandoc has been added, e.g. by running brew install pandoc on macOS operating systems.

System requirements

Hardware requirements

spatiomic does not come with any specific hardware requirements. For an optimal experience and analysis of very large datasets, a CUDA-enabled GPU and sufficient RAM (e.g., >= 48 Gb) is recommended.

Software requirements

Operating systems

Though it should run on all systems that can run Python, spatiomic has specifically been confirmed to work on the following operating systems:

  • Ubuntu 22.04
  • Ubuntu 24.04
  • macOS Sequoia 15.1.1

Python version & dependencies

spatiomic requires Python version 3.10 or above (3.12 recommended).

Code editors

We recommend developers use Visual Studio Code with the recommended extensions and settings contained in the .vscode folder to edit this codebase.

GPUs

The use of a GPU is optional but greatly accelerates many common spatiomic analyses. While most recent CUDA-compatible devices are expected to work, the following GPUs have been tested:

  • NVIDIA RTX 6000 Ada
  • NVIDIA QUADRO RTX 8000
  • NVIDIA V100

Using a modern computer (e.g., an M-series MacBook) without a CUDA-enabled GPU, the sample script provided in the Full example section of the documentation should take a few minutes, depending on your hardware, typically less than 3 minutes if all the data is already downloaded and the package is installed. With a CUDA-enabled GPU, it should be significantly faster.

Attribution & License

License

The software is provided under the GNU General Public License, version 3 (GPL-3.0). Please consult LICENSE.md for further information. The glasbey_light color palette available through so.plot.colormap is part of colorcet and distributed under the Creative Commons Attribution 4.0 International Public License (CC-BY).

Citation

spatiomic was developed for use with multiplexed immunofluorescence imaging data at Aarhus University by Malte Kuehl with valuable inputs, code additions and feedback from other lab members, supervisors and collaborators. If you use this package in an academic setting, please cite this repository according to the information in the CITATION.cff file.

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

spatiomic-0.4.2.tar.gz (64.7 MB view details)

Uploaded Source

Built Distribution

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

spatiomic-0.4.2-py3-none-any.whl (104.8 kB view details)

Uploaded Python 3

File details

Details for the file spatiomic-0.4.2.tar.gz.

File metadata

  • Download URL: spatiomic-0.4.2.tar.gz
  • Upload date:
  • Size: 64.7 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.32.4

File hashes

Hashes for spatiomic-0.4.2.tar.gz
Algorithm Hash digest
SHA256 62de48e31631dec6d78adb7be77264a08cf1c2f778130de1b7296bb1af543a74
MD5 4be1202cd11261656822aa17dbcd5ff8
BLAKE2b-256 e4822160cee410311a38f90c70b1a647003952518ee11e85ae0257c4502c6e94

See more details on using hashes here.

File details

Details for the file spatiomic-0.4.2-py3-none-any.whl.

File metadata

  • Download URL: spatiomic-0.4.2-py3-none-any.whl
  • Upload date:
  • Size: 104.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.32.4

File hashes

Hashes for spatiomic-0.4.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c55bbbaf1be34602ef4a4422eb5e7ed415846f3b9998bf83986b5d4655abe2c2
MD5 d56d7d79ac1d63166c5bff1fb0fe83de
BLAKE2b-256 c50d87cec0467617b18566f63b4ee192d4f728a64c0bf08c5f8412c943e20307

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