Skip to main content

SPACEL: characterizing spatial transcriptome architectures by deep-learning

Project description

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.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.

Version 1.1.5 2023-07-26

Fixed Bugs

  • Fixed a bug in the similarity loss of Splane, where it minimized the cosine similarity of the latent vectors of spots with their neighbors.

Features

  • Optimized the time and memory consumption of the Splane training process for large datasets.

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.

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

SPACEL-1.1.7.tar.gz (39.1 kB view details)

Uploaded Source

Built Distribution

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

SPACEL-1.1.7-py3-none-any.whl (44.6 kB view details)

Uploaded Python 3

File details

Details for the file SPACEL-1.1.7.tar.gz.

File metadata

  • Download URL: SPACEL-1.1.7.tar.gz
  • Upload date:
  • Size: 39.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.9

File hashes

Hashes for SPACEL-1.1.7.tar.gz
Algorithm Hash digest
SHA256 14e3d19a93fa7598e01a786ee1fdc47be151876458d275ee3520305394a19d78
MD5 c096f427f23d538dd64b1026bec0955d
BLAKE2b-256 717312463f42dae2d880ac6ffeda831d7ae373d93634b44e81d9daaf41f50254

See more details on using hashes here.

File details

Details for the file SPACEL-1.1.7-py3-none-any.whl.

File metadata

  • Download URL: SPACEL-1.1.7-py3-none-any.whl
  • Upload date:
  • Size: 44.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.9

File hashes

Hashes for SPACEL-1.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 eb20c290e816a247c8efe12a38adedf401c6cad0e09742a17a3f25f22f17fe2f
MD5 4966102f538719992f694c4f171b0c49
BLAKE2b-256 cc89865958f0c071900556e103f6caf2fa892d68a025254526a5362b7bbc53f2

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