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.2 2023-07-12

Fixed Bugs

  • Removed rpy2 from the pypi dependency of SPACEL. It now needs to be pre-installed when creating the environment through conda.
  • Fixed a bug in Scube where the best_model_state was not referenced before being used.

Features

  • Added function documentations for Scube related to the GPR model.

Version 1.1.1 2023-07-11

Features

  • All code based on Tensorflow have been mirated to PyTorch, it does not have Tensorflow as dependency anymore.
  • The Splane.utils.add_cell_type_composition function has been implemented to facilitate the cell type composition predicted by deconvolution methods into Splane.
  • Spoint and Splane now support tqdm type output for improved progress tracking.

Requirements

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.

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

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

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.2.tar.gz (38.9 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.2-py3-none-any.whl (44.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: SPACEL-1.1.2.tar.gz
  • Upload date:
  • Size: 38.9 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.2.tar.gz
Algorithm Hash digest
SHA256 9be3722719259a3b61f4666477015a46aaaad8273d22930e7be9e711b50c5c6d
MD5 b6a75be5c1a82d77a0de4751692fbc25
BLAKE2b-256 90759e9f30a28f55a4cced6271dd90a4bf7bd1264eecd9451842c4c3fa8b8af6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: SPACEL-1.1.2-py3-none-any.whl
  • Upload date:
  • Size: 44.7 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 67271bd192ef09e865e9f2437a584c6343aa3f7a155b52827a1970c265f9041c
MD5 a6b702955e2e7401e4cc49ca511cd738
BLAKE2b-256 e35cbdb52b76bb8abd584ab95cb1649889820b047823d6a9915d6f6254687a19

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