Skip to main content

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.

Metadata

Release files for paste2 1.0.1

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

Source distribution (sdist)

Source distribution for paste2 1.0.1
File Size Uploaded
paste2-1.0.1.tar.gz 47.3 MB Details

Built distribution (wheel)

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

Total release size: 47.3 MB

Release files / paste2-1.0.1.tar.gz

Download URL paste2-1.0.1.tar.gz
Size 47.3 MB
Tags Source
SHA-256 checksum
How to use checksums
464dc77317e28df96e34ab2cd82d057411c5d62bf015faf774c926beef1b663a
BLAKE2b-256 checksum
How to use checksums
31a9030b7766a9d323dfa2d9a181536fed8a62c444b659554847c2afc687127d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.7

Release files / paste2-1.0.1-py3-none-any.whl

Download URL paste2-1.0.1-py3-none-any.whl
Size 19.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ba8f21ec7ab09090810f8d5537bdc6e7309d3d7398c538d0560b4131bbf81d63
BLAKE2b-256 checksum
How to use checksums
98ba6a1c1904ea14bd2afcec2eef95297d13797a865fbdae5116de16754042e8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.7

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files

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