Skip to main content

Documentation Status PyPI

SPACEL: characterizing spatial transcriptome architectures by deep-learning

SPACEL (SPatial Architecture Characterization by dEep Learning) is a Python package of deep-learning-based methods for ST data analysis. SPACEL consists of three modules:

  • Spoint embedded a multiple-layer perceptron with a probabilistic model to deconvolute cell type composition for each spot on single ST slice.
  • Splane employs a graph convolutional network approach and an adversarial learning algorithm to identify uniform spatial domains that are transcriptomically and spatially coherent across multiple ST slices.
  • Scube automatically transforms the spatial coordinate systems of consecutive slices and stacks them together to construct a three-dimensional (3D) alignment of the tissue.

Getting started

Read the documentation for more information.

Latest updates

Version 1.1.8 2024-07-23

Fixed Bugs

  • Fixed the conflict between optax version and phthon 3.8.

Version 1.1.7 2024-01-16

Fixed Bugs

  • Fixed a variable reference error in function identify_spatial_domain. Thanks to @tobias-zehnde for the contribution.

Version 1.1.6 2023-07-27

Fixed Bugs

  • Fixed a bug regarding the similarity loss weight hyperparameter simi_l, which in the previous version did not affect the loss value.

Requirements

Note: The current version of SPACEL only supports Linux and MacOS, not Windows platform.

To install SPACEL, you need to install PyTorch with GPU support first. If you don't need GPU acceleration, you can just skip the installation for cudnn and cudatoolkit.

  • Create conda environment for SPACEL:
conda env create -f environment.yml

or

conda create -n SPACEL -c conda-forge -c default cudatoolkit=10.2 python=3.8 rpy2 r-base r-fitdistrplus

You must choose correct PyTorch, cudnn and cudatoolkit version dependent on your graphic driver version.

Note: If you want to run 3D expression GPR model in Scube, you need to install the Open3D python library first.

Installation

  • Install SPACEL:
pip install SPACEL
  • Test if PyTorch for GPU available:
python
>>> import torch
>>> torch.cuda.is_available()

If these command line have not return True, please check your gpu driver version and cudatoolkit version. For more detail, look at CUDA Toolkit Major Component Versions.

Release files for SPACEL 1.1.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for SPACEL 1.1.8
File Size Uploaded
SPACEL-1.1.8.tar.gz 38.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for SPACEL 1.1.8
File Interpreter ABI Platform
SPACEL-1.1.8-py3-none-any.whl Python 3 none any Details

Total release size: 83.5 kB

Release files / SPACEL-1.1.8.tar.gz

Download URL SPACEL-1.1.8.tar.gz
Size 38.9 kB
Tags Source
SHA-256 checksum
How to use checksums
9fe30a920b647051bdd3e022a2207790bd15a5c7df052d0020286741ff119360
BLAKE2b-256 checksum
How to use checksums
2bf98f3960f64c420055e12b63a727a14f6747dfa32ac08f1ea026f87107d19c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.9

Release files / SPACEL-1.1.8-py3-none-any.whl

Download URL SPACEL-1.1.8-py3-none-any.whl
Size 44.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
58d31776e0f7fa5774b1050e055f6deb101d4b66bc3d1fd3b60a532e8aea2304
BLAKE2b-256 checksum
How to use checksums
3fa9c1fb15379afa4347e57de7387e4896d634c4656e5fbe4b4af11f5e3afd71
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.9

Release history Release notifications | RSS feed

This release

1.1.8 This release

2 release files

1.1.7

2 release files

1.1.6

2 release files

1.1.5

2 release files

1.1.4

2 release files

1.1.3

2 release files

1.1.2

2 release files

1.1.1

2 release files

1.0.1

1 release file

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page