Skip to main content

Probabilistic Alignment of Spatial Transcriptomics Experiments v.2

Project description

PASTE2

PASTE2, the extension of PASTE, is a method for partial alignment and 3D reconstruction of spatial transcriptomics slices when they do not fully overlap in space.

There are three main functions:

  1. src/paste2/PASTE2/partial_pairwise_align: Given a pair of ST slices and their overlap percentage, find a partial alignment matrix. Note: In a multi-sample dataset, partial_pairwise_align should be called on each pair of adjacent slices separately.
  2. src/paste2/model_selection/select_overlap_fraction: Decide the overlap percentage (s parameter of partial_pairwise_align) between two input ST slices. Note: In a multi-sample dataset, each pair of adjacent slices could have a different overlap percentage, hence each pair of adjacent slices might have a different estimate of s to pass to partial_pairwise_align.
  3. src/paste2/projection/partial_stack_slices_pairwise: Given a sequence of consecutive ST slices and the partial alignments between them, project all slices onto the same 2D coordinate system. 3D reconstruction can be done by assiging a z-value to each slice.

Additionally, src/paste2/PASTE2/partial_pairwise_align_histology uses both gene expression and histological image information for computing the partial alignment matrix.

Installation

PASTE2 is available on PyPI at https://pypi.org/project/paste2/. To install PASTE2, run pip install paste2.

Quick Start

We included a tutorial in this repo (tutorial.ipynb). The tutorial should cover the basics you need to run PASTE2 on your own dataset. Additionally, the documentation of each function is in the source code.

Contact

If you encounter any problem running the software, please contact Xinhao Liu at xl5434@princeton.edu

Reference

Liu, X., Zeira, R., & Raphael, B. J. (2023). Partial alignment of multislice spatially resolved transcriptomics data. Genome Research, 33(7), 1124-1132.

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

paste2-1.0.1.tar.gz (47.3 MB view details)

Uploaded Source

Built Distribution

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

paste2-1.0.1-py3-none-any.whl (19.6 kB view details)

Uploaded Python 3

File details

Details for the file paste2-1.0.1.tar.gz.

File metadata

  • Download URL: paste2-1.0.1.tar.gz
  • Upload date:
  • Size: 47.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.7

File hashes

Hashes for paste2-1.0.1.tar.gz
Algorithm Hash digest
SHA256 464dc77317e28df96e34ab2cd82d057411c5d62bf015faf774c926beef1b663a
MD5 87f8a01b2201410fc9bd253b3ff6e605
BLAKE2b-256 31a9030b7766a9d323dfa2d9a181536fed8a62c444b659554847c2afc687127d

See more details on using hashes here.

File details

Details for the file paste2-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: paste2-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 19.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.7

File hashes

Hashes for paste2-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ba8f21ec7ab09090810f8d5537bdc6e7309d3d7398c538d0560b4131bbf81d63
MD5 2675d8fb0c669a57e2ca50641da97812
BLAKE2b-256 98ba6a1c1904ea14bd2afcec2eef95297d13797a865fbdae5116de16754042e8

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