Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

gsMap3D

gsMap3D integrates 3D spatial transcriptomics (ST) data with genome-wide association study (GWAS) summary statistics to map cells associated with human complex traits and diseases.


✨ What's New

- Support for 3D ST data mapping
- Dual-embedding strategy for more accurate gene specificity scoring
- GPU-accelerated embedding, marker-score and LDSC computation
- Symmetric graphs with an exact external-neighbor count and radius alternatives
- Ordinal or calibrated physical-z cross-section matching
- Paired ancestry-specific V50 LD resources and executable tutorials

🚀 Features

  • Spatially-aware High-Resolution Trait Mapping
    Maps trait-associated cells at single-cell resolution, offering insights into their spatial distributions.

  • Spatial Region Identification
    Aggregates trait–cell association p-values into trait–tissue region association p-values, prioritizing tissue regions relevant to traits of interest.

  • Putative Causal Genes Identification
    Prioritizes putative causal genes by associating gene expression levels with cell–trait relevance.

  • Scalability
    Employs JAX JIT and GPU/TPU acceleration to scale to million-scale cells (spots) spatial omics datasets.


🧠 Overview of gsMap3D

gsMap3D operates on a four-step process:

1. Gene Specificity Assessment in 3D Spatial Contexts

To address technical noise and capture spatial correlations of gene expression across consecutive ST sections,
gsMap3D constructs batch-corrected dual embeddings of molecular and spatial features. These embeddings jointly model transcriptomic similarity and local spatial context to identify homogeneous cells in 3D space. Gene specificity scores (GSS) are then computed by aggregating normalized gene expression ranks across these 3D homogeneous cells, enabling robust identification of genes that are both highly and specifically expressed in focal cells.

2. Linking Gene Specificity to Genetic Variants

gsMap3D links gene specificity scores to single nucleotide polymorphisms (SNPs) by assigning GSS to SNPs based on their proximity to gene transcription start sites (TSS) and SNP-to-gene epigenetic linking maps, thereby connecting spatially resolved gene expression patterns with trait-associated genetic variation.

3. 3D Spatial S-LDSC for Cell–Trait Association

To quantify cell–trait associations in 3D space, gsMap3D integrates the 3D gene specificity scores with GWAS summary statistics using stratified LD score regression (S-LDSC). This framework enables the estimation of trait relevance for individual cells by associating their stratified LD scores with GWAS signals.

4. Spatial Region–Trait Association Analysis

To evaluate associations between traits and spatial regions, gsMap3D aggregates p-values from cells within a given 3D spatial region using the Cauchy combination test, yielding region-level association statistics that reflect coordinated genetic effects across spatially organized cell populations.

gsMap3D Method Schematic


📚 Documentation

Please see our Documentation and Website.

Start with Downloads to install shared resources once, then follow the direct CLI/Python tutorials. Each tutorial shows its required input files. The Customization Guide explains how to select your own data, reference weights, embeddings and analysis settings. Download/report links marked staged are not yet public.


📝 How to Cite

If you use gsMap3D in your studies, please cite:

  • gsMap3D: to be updated.

  • gsMap:
    Song, L., Chen, W., Hou, J., Guo, M. & Yang, J.
    Spatially resolved mapping of cells associated with human complex traits.
    Nature (2025).
    https://doi.org/10.1038/s41586-025-08757-x


Metadata

Release files for gsMap3D 0.1.4a2

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

Source distribution (sdist)

Source distribution for gsMap3D 0.1.4a2
File Size Uploaded
gsmap3d-0.1.4a2.tar.gz 541.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for gsMap3D 0.1.4a2
File Interpreter ABI Platform
gsmap3d-0.1.4a2-py3-none-any.whl Python 3 none any Details

Total release size: 1.1 MB

Release files / gsmap3d-0.1.4a2.tar.gz

Download URL gsmap3d-0.1.4a2.tar.gz
Size 541.1 kB
Tags Source
SHA-256 checksum
How to use checksums
8220efbb253f4cc038fa85843d6b0f6b30faf925666324d898021887c5004110
BLAKE2b-256 checksum
How to use checksums
4cebbbd74f694a9ed8e5725456f760ea90a9401cee6adef54aef3e0361225aa7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 11, 2026.

Transparency log

Release files / gsmap3d-0.1.4a2-py3-none-any.whl

Download URL gsmap3d-0.1.4a2-py3-none-any.whl
Size 593.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2e2d63b2e7176252a728d5594dc327d3280b36804f08f7795b3d4d8776b50b3a
BLAKE2b-256 checksum
How to use checksums
617aa2a66c8f242a78bd0f3f8eb1a67439c9fa515652a118dd4262b660f345f0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 11, 2026.

Transparency log
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