Technology-specific advice#

Harpy is designed to support all spatial technologies at single-cell resolution, with a focus on spatial proteomics and targeted/untargeted transcriptomics.

Use this page to pick the right readers, example datasets, and recommended steps for each technology. Each section links to the relevant API objects and tutorials.

Quick links:


Spatial proteomics platforms#

Readers#

Example datasets#

Segmentation#

We recommend Cellpose (version > 4.0) or InstanSeg via harpy.im.segment() with harpy.im.cellpose_callable() or harpy.im.instanseg_callable().

When Cellpose is used for segmentation, multiple masks can be merged using harpy.im.merge_labels() and harpy.im.match_labels_to_reference().

Create the AnnData table#

Use harpy.tb.allocate_intensity() to compute mean intensities (or other statistics) per marker and instance.

Shallow feature extraction#

Use harpy.tb.add_feature_matrix() to compute per-instance feature matrices from labels and optional image data, and store the resulting per-channel intensity and morphology features in a table’s .obsm. This is the recommended format for integration with napari-harpy.

Custom embeddings#

Use harpy.tb.featurize() to generate cell embeddings with a user-provided computer vision or foundation model.

Tutorials#


Imaging based Spatial transcriptomics platforms#

Readers#

Example datasets#

Segmentation#

We recommend Cellpose via harpy.im.segment() with harpy.im.cellpose_callable(). See the harpy.im.segment() docstring for an example.

For multi-modal segmentation, use harpy.im.merge_labels() or harpy.im.merge_labels_nuclei() (tutorial coming soon).

Create the AnnData table#

Use harpy.tb.allocate() to create a count matrix from a segmentation mask and detected transcripts.

Tutorials#


Sequencing based Spatial transcriptomics platforms#

Readers#

Example datasets#

Segmentation#

For custom segmentation on H&E, use Cellpose (version > 4.0) via harpy.im.segment() with harpy.im.cellpose_callable().

Custom binning#

Tutorials#

Coming soon.