What it does¶
Nimbus gives every cell a score between 0 and 1 for every marker. A score near 1 means the model sees the marker as positive in that cell. You do not set a threshold per marker.
Parameters¶
use_nimbus: turns Nimbus on.pixel_size, required: your image’s pixel size in µm. Nimbus rescales the image with it, so the pipeline stops at startup without it.segment_cells, required: Nimbus was trained on whole cells, so nucleus-only runs are refused.nimbus_channels: the markers to score. By default, everymarkerchannel of the marker sheet. Required for a stitched image you bring yourself, which has no marker sheet.use_gpu: recommended. A CPU gives near-identical scores but takes hours per whole slide.
How it works¶
For each marker, Nimbus takes that channel and a mask of the cells, and predicts for every pixel how likely the marker is positive. A cell’s score is the mean over its pixels.
Each channel is first divided by its 0.999 quantile, then clipped to 0 to 1. The quantile is taken per image, or per core on a tissue microarray. Per core keeps differences between patients, but a core with no positive cells can score noise as signal.
Large images are cut into tiles with a margin of surrounding context, so memory does not grow with the image. Tiling can shift scores: on a test crop at 0.65 µm/px, tiled and whole-image scores differed by up to 0.41 (mean 0.011), while a crop at 1 µm/px showed no difference. Scoring the whole image at once matched the Nimbus authors’ own code to within 1e-6 at both pixel sizes. Test-time augmentation, which averages the model’s answer over flipped copies of the input, is always on, with the same setting on CPU and GPU. We have not yet compared CPU and GPU scores.
Inputs and outputs.
| In | Out |
|---|---|
| The full image, one marker at a time | A table {method}_nimbus in the store, in tables/. |
| The cells of one segmentation method | One row per cell, one column per marker, values 0 to 1. |
pixel_size | A JSON file of settings in learned_features/. |
A column is empty (NaN) for a marker with no signal anywhere in the image. See The SpatialData store.
Open points¶
The model’s magnification is set from your pixel size as
10 / pixel_size. The authors never say what “10x” means in µm per pixel, so this is provisional and may change.
Read more¶
Nimbus: Rumberger et al., 2025.
Nimbus on GitHub. Code and weights are MIT.
Version used:
| Module | Tool | Version | Container | Paper |
|---|---|---|---|---|
| NIMBUS | Nimbus | docker.io/josenimo/nimbus:0.0.5 | Rumberger et al. (2025) |
- Rumberger, J. L., Greenwald, N. F., Ranek, J. S., Boonrat, P., Walker, C., Franzen, J., Varra, S. R., Kong, A., Sowers, C., Liu, C. C., Averbukh, I., Piyadasa, H., Vanguri, R., Nederlof, I., Wang, X. J., Van Valen, D., Kok, M., Bendall, S. C., Hollmann, T. J., … Angelo, M. (2025). Automated classification of cellular expression in multiplexed imaging data with Nimbus. Nature Methods, 22(10), 2161–2170. 10.1038/s41592-025-02826-9