Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Channel projection

What it does

Cellpose looks at two images: a nuclear stain and a cell stain. Projection builds that cell image from all the membrane and cytoplasm markers of your panel, so Cellpose sees every cell type, not only those one marker labels.

Parameters

More in Many markers with Cellpose.

How it works

For each of the two output images, nuclear and cell, every marker in its group is:

  1. rescaled to 0–1 between its own low and high percentile, with pixels of exactly 0 left out;

  2. smoothed with a Gaussian, if projection_sigma is above 0;

  3. combined with the group’s other markers, pixel by pixel, by maximum (or mean).

The groups come from the marker sheet’s segmentation column if any row has a value. Otherwise nuclear is the first dna channel, and cell is every marker whose channel_compartment includes membrane or cytoplasm.

Only Cellpose reads the projection. InstanSeg and quantification read the full image, so every marker is still measured on its own.

Inputs and outputs. In: the image in the SpatialData store and the marker sheet. Out: an image <image>_projected with two channels, nuclear and cell, deleted at the end unless keep_projection; and a preview, qc/{sample}_projection.png, with a qc/{sample}_projection.json that lists each marker’s share of the pixels in which it is the brightest. A marker brightest in over half of its image is listed as dominant, and the log warns: it may be hiding the others. See QC files.

Similar tools

The defaults come from a benchmark on two crops with Cellpose 3 and Cellpose-SAM, judged by eye with metrics as support; there was no ground truth.

Read more

Version used:

ModuleToolVersionContainerPaper
PROJECT_CHANNELSsopa2.2.9community.wave.seqera.io/library/python_sopa:54a97bc5a187152d