ASTRA CUI LAB

PRETRAINED SPATIAL RECONSTRUCTION

ASTRA

Pretrain once.
Reconstruct new sections.

A pretrained model for spatial transcriptomic super-resolution. ASTRA combines tissue histology with measured RNA to reconstruct expression at finer spatial resolution, without fitting the model to each new section.

  • Zero-shot inference
  • Arbitrary parents
  • Histology + RNA

CODE & DOCUMENTATION

jiachenye-cuilab /

ASTRA

Implementation, setup and usage.

View on GitHub (opens in a new tab)

github.com/jiachenye-cuilab/ASTRA

THE APPROACH

A reusable model.
A flexible spatial input.

ASTRA brings pretraining to spatial reconstruction and treats capture geometry as part of the input. The same checkpoint can work with dense bins and separated capture spots.

PRETRAINING

Zero-shot inference on new sections

ASTRA separates source pretraining from reconstruction of a new section. Once pretrained, the model uses fixed weights for inference, removing target-section training and test-time optimization from the reconstruction workflow.

CAPTURE GEOMETRY

Arbitrary parents, shared representation

A parent is the region over which an RNA count was measured. During pretraining, high-resolution measurements are grouped into parents of varied shapes and sizes. This common representation allows one model to accommodate different sampling patterns.

MULTIMODAL CONTEXT

Tissue morphology meets measured RNA

Image features at multiple scales describe tissue morphology. ASTRA combines these features with local RNA measurements and capture geometry to guide fine-scale reconstruction. Gene availability is encoded explicitly, keeping unmeasured genes distinct from measured zeros.

EXPRESSION ALLOCATION

Reconstruction anchored to measurements

Within each parent, expression allocation is normalized to the measured gene counts before whole-section assembly. For unmeasured gaps between capture regions, the model uses local molecular context and tissue morphology to estimate expression.

HOW IT WORKS

From tissue measurements
to spatial expression.

Prepare the aligned image and RNA inputs, apply the pretrained model, and assemble the predictions into a finer spatial map.

  1. INPUT

    Describe the section

    Provide a registered H&E image, measured RNA counts and the spatial support of each capture region.

    • Aligned tissue image
    • Counts and gene availability
    • Capture-region geometry
  2. PRETRAINED MODEL

    Run frozen ASTRA

    The model combines morphology and local molecular context to predict how expression is distributed across space.

    The reconstruction weights stay fixed.

  3. OUTPUT

    Assemble the reconstruction

    Combine predictions from overlapping tissue fields into expression estimates on a finer spatial grid.

    • Spatial expression estimates
    • Coordinates for each output bin
    • A shared grid across genes

Explore the implementation.

Find the source code, setup instructions and usage documentation on GitHub.

View on GitHub (opens in a new tab)