Skip to main content

Nimbus Logo

CI Documentation Status PyPI Downloads Open In Colab Nature Methods

Nimbus Inference

Nimbus is a deep learning model for automated classification of marker expression in multiplexed imaging data. This repository provides code for:

  • Inference of the Nimbus model on your multiplexed images.
  • Finetuning the Nimbus model on new data if desired.
  • Interactive exploration of the Nimbus Gold Standard dataset.

The code for training the Nimbus model from scratch can be found in the angelolab/Nimbus repository

Installation (via pip)

pip install Nimbus-Inference

Create a Python environment with version 3.9–3.11, then install as shown above.


Example Notebooks

We provide three Jupyter notebooks (in the templates folder), each with its own example dataset that is loaded from the Hugging Face Hub within the notebook:

  • 1_Nimbus_Predict.ipynb

    • Guides you through performing inference with the Nimbus model on multiplexed imaging data.
    • Open In Colab
  • 2_Nimbus_Finetuning.ipynb

    • Shows you how to finetune the Nimbus model on a new dataset.
    • Open In Colab
  • 3_interactive_viewer.ipynb

    • Lets you interactively explore the Nimbus Gold Standard labeled dataset.
    • Open In Colab
  • 4_Generic_Cell_Clustering.ipynb

    • Performs cell phenotyping using SOM (Self-Organizing Map) and consensus clustering on Nimbus predictions. Takes the cell table output from 1_Nimbus_Predict.ipynb and clusters cells based on marker expression, enabling downstream analysis and visualization of cell populations.

Each notebook loads an example dataset directly from the Hugging Face Hub, so you can get hands-on with Nimbus right away.


Datasets

We have released two main datasets on the Hugging Face Hub:

  1. Pan-Multiplex

  2. Pan-Multiplex Gold-Standard


What is Nimbus?

Nimbus is a deep learning model designed to make human-like, visual classifications of multiplexed imaging data by determining which protein markers each cell is positive or negative for. Unlike many existing workflows, Nimbus:

  • Uses the raw image pixels (rather than purely integrated intensity) to classify marker expression.
  • Generalizes across many tissue types, imaging platforms, and markers — without retraining.
  • Can be integrated into downstream clustering or phenotyping pipelines to improve accuracy.

For more details, please see our publication.


Repository organization

Our github is organized as follows:

  • The README file (which you're looking at now) provides an overview of the project
  • The .github folder contains code automating jobs via github actions for testing and deployment
  • The assets folder contains images that are displayed in the README
  • The docs folder allows us to build and maintain updated documentation for the project
  • The src folder contains the core code for running Nimbus
  • The templates folder contains example notebooks to provide easy starting examples for new users
  • The tests folder contains code for testing the codebase

For a more detailed look on how to get started, please check out our documentation


Contact

If you have questions, find a bug, or need help:

  • Please use the issue tracker.
  • We welcome contributions or pull requests to improve Nimbus!

Citation

If you use Nimbus in your work, please cite:

@article{rumberger2025automated,
  title={Automated classification of cellular expression in multiplexed imaging data with Nimbus},
  author={Rumberger, Josef Lorenz and Greenwald, Noah F and Ranek, Jolene S and Boonrat, Potchara and Walker, Cameron and Franzen, Jannik and Varra, Sricharan Reddy and Kong, Alex and Sowers, Cameron and Liu, Candace C and others},
  journal={Nature Methods},
  volume={22},
  pages={2161–-2170},
  year={2025},
  publisher={Nature Publishing Group US New York}
}

Metadata

Release files for Nimbus-Inference 0.0.5

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

Source distribution (sdist)

Source distribution for Nimbus-Inference 0.0.5
File Size Uploaded
nimbus_inference-0.0.5.tar.gz 1.1 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for Nimbus-Inference 0.0.5
File Interpreter ABI Platform
nimbus_inference-0.0.5-py3-none-any.whl Python 3 none any Details

Total release size: 1.1 MB

Release files / nimbus_inference-0.0.5.tar.gz

Download URL nimbus_inference-0.0.5.tar.gz
Size 1.1 MB
Tags Source
SHA-256 checksum
How to use checksums
5564725a040cf2a8767d9a81c3e4fb1f9743e17e5f40999a1dc8eee797b11119
BLAKE2b-256 checksum
How to use checksums
48994793bbd9341ba62aa0740f452df47e56ea2669243b1783c507c085006f84
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.11

Release files / nimbus_inference-0.0.5-py3-none-any.whl

Download URL nimbus_inference-0.0.5-py3-none-any.whl
Size 36.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
251b46195120ebb9950b46db457129149288b856fdbfde0bf1dfd74372319a7f
BLAKE2b-256 checksum
How to use checksums
7945feba2752c9832c75632f28b8da1bd16804b54c6aee00c29883efb98f514f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.11

Release history Release notifications | RSS feed

This release

0.0.5 This release

2 release files

0.0.4

2 release files

0.0.3

2 release files

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