# NimbusImage

NimbusImage is an open source image analysis platform for researchers in the life sciences

Imaging has led to major discoveries in the life sciences. With the advent of powerful imaging techniques and microscopes, we are now awash in data. However, analyzing this heterogeneous data—at scale, with accuracy and reproducibility—has proven to be a major challenge.

We have developed NimbusImage as a platform to empower scientists to analyze their image data and spend their time making discoveries rather than struggling to process their datasets.

### NimbusImage is…

* **Geared towards life sciences.** Our target audience is cell biologists who work with microscopy data. Our focus has been fluorescence microscopy, but are keen to expand to serve more communities over time.
* **Web-based.** NimbusImage lives in the cloud and requires no installation. It can handle very large datasets without worrying about local storage and memory. NimbusImage enables fast and easy data sharing and analysis.
* **Scalable.** NimbusImage was designed from the ground up to handle the viewing and analyzing of large datasets. As microscopes have become capable of producing ever-increasing amounts of data, even just loading datasets can be a challenge. NimbusImage enables interaction with huge datasets, all in the browser.
* **Open source.** NimbusImage is built in the open. Anybody can run their own image server. All the code is open for scrutiny.
* **Fun.** Image analysis is often a painful, mind-numbing task. We hope that NimbusImage will spark joy as you interact with your beautiful data.

### What is special about NimbusImage?

NimbusImage has a slightly different approach to image analysis than other tools. Most approaches to image analysis are built around pipelines, where you set a bunch of parameters, run a big dataset through the algorithms, and then end up with some numbers in a table. What is typically missing is the ability to visualize and interact with your analysis. For instance, maybe some region was out of focus and you want to exclude it. Or some spots were assigned to the wrong cell. Or some cell segmentation needs to be cut in half. **NimbusImage allows you to use cutting-edge algorithms&#x20;*****and*****&#x20;interact directly with the output**, making sure your analysis reflects your data accurately and injecting your knowledge and intuition back into your work.

NimbusImage has been developed by the lab of Arjun Raj at the University of Pennsylvania, a Professor in the Department of Bioengineering and the Department of Genetics (major contributions from William Niu) in collaboration with [Kitware](https://www.kitware.com/), a company whose mission is to make open-source platforms for science; Kitware is the maker of [ITK](https://itk.org/) and [Girder](https://github.com/girder/girder).

### Questions and support

Have a question about NimbusImage? We encourage you to post on the [Image.sc forum](https://forum.image.sc/) using the tag `#nimbusimage`. Image.sc is the community forum for scientific image analysis, and it's the best place to get help, share tips, and connect with other users.

\ <br>


# Quick start

Getting started with NimbusImage right away

## Starting with NimbusImage is easy—help is here!

{% hint style="info" %}
At the top right is a help icon (?) and a chatbot icon. The help icon has user tours to guide you through basic tasks, and the chatbot can help you look at your images and come up with some analysis strategies, along with instructions for using NimbusImage.
{% endhint %}

<div align="left"><figure><img src="https://4239675806-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FX54NriBmLyFl6hdSGC9K%2Fuploads%2Fgit-blob-4204cc4228711993618fbf7057356fc5a6e8de40%2Fhelp-chatbot-icons.png?alt=media" alt="" width="347"><figcaption></figcaption></figure></div>

{% hint style="info" %}
Press <mark style="background-color:orange;">**tab**</mark> anywhere in the interface to bring up a cheat sheet of commands and keyboard shortcuts.
{% endhint %}

## Sign up

We strongly recommend you start by trying NimbusImage from an existing server like [nimbusimage.com](https://app.nimbusimage.com/)—no installation required! Just follow the sign up instructions. There are a number of plans on there to help support the ongoing development of NimbusImage, and a free tier that you can use for small datasets and occasional use.

{% hint style="info" %}
Group plans are available for teams! First the administrator should sign up, then the administrator can invite others to the team plan. If you want to add existing members to your team, contact <support@cytopixel.com>.
{% endhint %}

## Drop in your data into the file drop zone

You can drag and drop your data directly onto the drop zone to load it into NimbusImage:

<div align="left"><figure><img src="https://4239675806-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FX54NriBmLyFl6hdSGC9K%2Fuploads%2Fgit-blob-d70c19257ec19921b8b5ca30d296b4962748dc11%2Fupload-dropzone.png?alt=media" alt="" width="563"><figcaption></figcaption></figure></div>

That brings up this dialog, where you can name the dataset, choose where to store it, and pick **Quick Import** (default settings) or **Advanced Import** (configure variables, tiling, and more):

<div align="left"><figure><img src="https://4239675806-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FX54NriBmLyFl6hdSGC9K%2Fuploads%2Fgit-blob-d655331dc89b6c1268a57f611ace6eb1acdeddac%2Fcreate-dataset-dialog.png?alt=media" alt="" width="563"><figcaption></figcaption></figure></div>

## View your data

<figure><img src="https://4239675806-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FX54NriBmLyFl6hdSGC9K%2Fuploads%2Fgit-blob-fe9a35b01bfe92504155c550df3b11e5d1caa88e%2Fviewer-overview.png?alt=media" alt=""><figcaption></figcaption></figure>

The image viewer should be pretty intuitive to navigate. Press `tab` to reveal some keyboard shortcuts and features.

## Find some objects

Click **"Add new tool"** in the Tools panel to bring up the tool menu. You can customize your own interface!

<figure><img src="https://4239675806-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FX54NriBmLyFl6hdSGC9K%2Fuploads%2Fgit-blob-05f8ca2795e937f22993dc98e3640a7d12b2720c%2Fadd-tool-dialog.png?alt=media" alt=""><figcaption></figcaption></figure>

For instance, make a blob tool and draw some blobs like this:

<figure><img src="https://4239675806-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FX54NriBmLyFl6hdSGC9K%2Fuploads%2Fgit-blob-fd1ca21ff6fad0f52a3689f386472690c88370c8%2Fblobs-on-image.png?alt=media" alt=""><figcaption></figcaption></figure>

## Analyze those objects

Click "Object List" to bring up the object panel:

<figure><img src="https://4239675806-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FX54NriBmLyFl6hdSGC9K%2Fuploads%2Fgit-blob-bdad12c2bf3bc464627df2fa73fc20f1e1d06711%2Fannotation-list.png?alt=media" alt=""><figcaption></figcaption></figure>

Then click on "Measure objects" to bring up the measurement panel:

<figure><img src="https://4239675806-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FX54NriBmLyFl6hdSGC9K%2Fuploads%2Fgit-blob-0237af176929a3626c04a090ab7d48075a3ee2b3%2Fmeasure-objects-dialog.png?alt=media" alt=""><figcaption></figcaption></figure>

Then click "Create Property" to create and compute the property, and check the value (here, Area) in the list below:

<div align="left"><figure><img src="https://4239675806-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FX54NriBmLyFl6hdSGC9K%2Fuploads%2Fgit-blob-e85faa0eb5e7e4765d70e0d121dfbbbbc8894ed6%2Fproperty-list.png?alt=media" alt="" width="563"><figcaption></figcaption></figure></div>

## Make a Snapshot

**Use Snapshots** to take a visual bookmark of your data to capture and document that perfect picture for your paper or talk.

<figure><img src="https://4239675806-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FX54NriBmLyFl6hdSGC9K%2Fuploads%2Fgit-blob-0121d1440504c7890cbecb262759e4f014204803%2Fsnapshot-frame.png?alt=media" alt=""><figcaption><p>Drag the red frame to bookmark a region as a Snapshot</p></figcaption></figure>

Use Snapshots to take a visual bookmark of your data to capture and document that perfect picture for your paper or talk.

## Export your data for analysis

Export your data to a CSV file, ready to import to Excel, R, Python, or whatever analysis tool you like!

<figure><img src="https://4239675806-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FX54NriBmLyFl6hdSGC9K%2Fuploads%2Fgit-blob-05146a091a402661e3ea05524e8b99ec403087a6%2Fexport-csv-dialog.png?alt=media" alt="" width="563"><figcaption></figcaption></figure>

## Questions and support

Have a question or need help? Post on the [Image.sc forum](https://forum.image.sc/) using the tag `#nimbusimage`. It's the best place to get help from the community and the development team.


# New features

Stay up to date with the latest additions to [NimbusImage](https://app.nimbusimage.com).

## November 2026

### Connect Claude to NimbusImage

Add NimbusImage as a connector in claude.ai or the Claude Desktop app, and ask Claude about your data in a chat. It can find datasets, count and summarize objects, look at images, read measurements, run workers, and tag objects. Claude signs in as you, so it sees only what your account can see, and it asks before changing anything. See [Connect Claude to NimbusImage (MCP connector)](/documentation/agentic-control/mcp-connector).

**Connected apps** — A new **Connected apps** section in the account menu lists each app you've connected to NimbusImage, where it connects from, and when it was last used, with a **Disconnect** button that ends access immediately.

**Agentic control guide** — A new [Agentic control](/documentation/agentic-control) section explains the ways AI agents can work with your data: Nimbus AI in the app, the [Python package and skill pack](/documentation/agentic-control/python-package-and-skill-pack) for Claude Code and Codex, and the MCP connector for claude.ai and Claude Desktop.

## October 2026

### Spatial transcriptomics

NimbusImage can now hold a whole 10x Xenium run — the images, every segmented cell, the full per-cell expression table, and the individual molecules — loaded with the new `nimbusimage-xenium` ingest tooling. A Transcripts palette shows molecules as points or density heat maps, and any gene can be added as a live measurement that works in filters, scatter plots and gates, color-by, and CSV export. The Selection summary adds expression summaries, differential expression (Welch t-test or Wilcoxon), neighborhood enrichment between cell types, and per-region composition. After you edit cell outlines, you can recompute the expression table from the molecules, and earlier tables are kept as versions you can switch between. See [Spatial transcriptomics](/documentation/analyzing-image-data-with-objects-connections-and-properties/spatial-transcriptomics).

### Share links and embeds

Share a read-only view of a dataset with anyone — no account or sign-in needed, and without making the dataset public. Each link has an optional label and an expiry (7, 30, or 90 days, or never), comes with a toolbar-free embed version for a lab website or paper supplement, and can be revoked at any time from the Share Dataset dialog. See [Share links and embed links](/documentation/images-datasets-and-collections/managing-files#share-links-and-embed-links).

### Command palette

Press ⌘K (or Ctrl+K), or click the new magnifier in the app bar, to search across nearly everything the viewer can do: activate a tool, start adding a new one, open or close panels, toggle layers, jump to a snapshot, color objects by a property, or open import/export dialogs, the AI panel, docs, and tours. Search matches initials, partial words, and common synonyms, and an empty search shows your recent commands. See [Command palette](/documentation/viewing-your-data#command-palette).

### Pin and reorder tools

Hover over any tool in the Tools palette to pin it, edit it, or drag it into a new position. Pinned tools get their own section at the top of the palette, and each section can be reordered by dragging. Pins and order are saved with the collection, so everyone working in it sees the same arrangement. See [Organizing your tools](/documentation/analyzing-image-data-with-objects-connections-and-properties/tools-for-making-objects#organizing-your-tools).

### Montage view of objects

See the objects on the Object Browser's current page side by side as a grid of image crops — at each object's own position, Z slice, and time point, using your current layers and contrast. The montage follows your filters, sort order, and paging; click panels to select objects, jump to any one in the viewer, label panels with property values, and export the whole grid as a PNG. Open it from the grid button next to the 3D toggle or the command palette. The Object Browser also gains a 100-per-page option. See [Montage view](/documentation/analyzing-image-data-with-objects-connections-and-properties/interacting-with-objects#montage-view).

### Filter by text-valued properties

Property filters now work on properties whose values are text, such as a gene or genotype assigned to each cell. The filter switches automatically to a searchable value picker that lists every value with its object count; pick one or more values and objects matching any of them pass. It scales to properties with thousands of distinct values. See [Filtering by text-valued properties](/documentation/analyzing-image-data-with-objects-connections-and-properties/interacting-with-objects#filtering-by-text-valued-properties).

### Composite a folder of single-tile .nd2 files

Compositing used to require one multi-position .nd2 file. You can now composite a folder of .nd2 files that each hold one tile — as in optical pooled screens, with thousands of fields per well — and each file is placed by its own recorded stage position. Duplicated tiles are caught before anything is created, sparse layouts get a warning, and transcoding turns on by default for composites of more than 16 tiles. See [Compositing](/documentation/images-datasets-and-collections).

### Pipeline steps stay in sync with your tools

A pipeline step added from an existing tool or measurement is now linked to it. The step runs with the tool's current settings, so the pipeline and the tool no longer drift apart, and a measurement step computes your own property instead of creating a duplicate. Linked steps are read-only in the pipeline editor; choose **Unlink** to turn one into an independent copy you can edit. Removing a property that a pipeline step uses now warns you first, and is blocked while a running pipeline is computing it.

**Live transcoding progress** — The progress bar now moves while a dataset is being transcoded, rather than jumping to done at the end, and very long transcodes no longer fail with a timeout error partway through.

**Click outside to close tool menus** — An automated tool's settings menu now closes when you click elsewhere or press Escape, instead of requiring the Close button. Panning the image keeps it open, and clicking another tool switches to that tool's menu.

**Nimbus AI upgraded to Claude Sonnet 5.5** — The AI panel and automatic tool suggestions now run on Claude Sonnet 5.5. The assistant also knows about the command palette and pinned tools, and can point you to them.

**Cleaner illumination correction in stitched mosaics** — Stitch Refinement + Illumination Correction no longer over-corrects the centers of tiles, which removes a faint grid of slightly darker tile centers that could appear in corrected images, especially in dim background channels with stretched contrast.

**Nimbus AI guide** — A new [Nimbus AI](/documentation/nimbus-ai) page explains how to open the assistant, what it can do, which actions ask for your approval, what it can't do, and what is shared with the AI model.

**New tool documentation** — Docs now cover the [StarDist](/documentation/analyzing-image-data-with-objects-connections-and-properties/tools-for-making-objects#stardist-for-nucleus-segmentation), the [SAM2 tools](/documentation/analyzing-image-data-with-objects-connections-and-properties/tools-for-making-objects#sam2-tools-for-segmentation-refinement-and-tracking) (automatic mask generator, few-shot segmentation, Refiner, propagator, and video tracking), [Connect sequential](/documentation/analyzing-image-data-with-objects-connections-and-properties/tools-for-connecting-objects#connect-sequential), [Rolling Ball](/documentation/image-processing#rolling-ball) background subtraction, [H\&E Deconvolution](/documentation/image-processing), and the [Point intensity, Point metrics](/documentation/analyzing-image-data-with-objects-connections-and-properties/measuring-object-properties#properties-for-point-objects), [Point count](/documentation/analyzing-image-data-with-objects-connections-and-properties/measuring-object-properties#point-count), [Blob overlap](/documentation/analyzing-image-data-with-objects-connections-and-properties/measuring-object-properties#blob-overlap), and [Count connected objects](/documentation/analyzing-image-data-with-objects-connections-and-properties/measuring-object-properties#count-connected-objects) measurements.

**Typed commands in the command palette** — Type `z 12`, `t 40`, `xy 3`, or `show only dapi` in the ⌘K palette to jump straight there. Every viewer control now has a command, and anything the palette can't match can go to Nimbus AI with one click (or ⌘↵).

**Gene expression card** — For datasets with an expression table, the Measure objects dialog now has a Gene expression card that shows which genes you've added as measurements, with an **Add genes…** button. See [Spatial transcriptomics](/documentation/analyzing-image-data-with-objects-connections-and-properties/spatial-transcriptomics).

**Spatial Genomics import** — The Python package and a new agent skill can load a Spatial Genomics (GenePS) export into NimbusImage. Each region becomes a dataset with its images, cells, clusters, UMAP, gene-expression table, and transcripts.

**Safer sharing** — You can no longer share a dataset with more access than you have yourself, and collaborators with read-only access can no longer start measurement computations.

**Clearer Zenodo errors** — If Zenodo upload, publish, or discard fails, the reason now appears on screen, including what to fix when owner access is missing.

#### Bug fixes

* Fixed snapshot ZIP downloads that macOS reported as empty when filenames were very long.
* Fixed the Delete button on a dataset's info page failing with a "No local worker is available" error.
* Fixed the dataset configuration screen occasionally hanging on "Preparing transcode" even though the transcode had finished.
* Fixed switching between datasets without reloading the page sometimes showing the previous dataset's objects or property values.
* Fixed property values being lost when several measurement workers wrote to the same objects at the same time.
* Fixed users who weren't administrators getting "Administrator access required" when downloading files or exporting JSON, CSV, or GeoJSON.
* Fixed raw-channel TIFF snapshots looking blank, because 16-bit images were being reduced to 8 bits.
* Fixed blocky color halos around cells in the object overview, especially when cells are colored by a property.
* Fixed datasets without a pixel size showing a kilometer-long scale bar and measuring in meters.
* Fixed a dataset sometimes opening at a position, Z slice, or time point outside its range, which made snapshot downloads fail.
* Fixed deleting many objects at once leaving their connections behind.
* Fixed a failed object edit sometimes overwriting other objects on screen or bringing back an older value.

## September 2026

### Illumination correction for already-stitched images

The Stitch Refinement tool added in August needs the original raw .nd2 tiles. The new Stitched TIFF Illumination Correction tool covers the other case: a mosaic that was stitched before it reached NimbusImage. Working only from the pixels in the stitched image, it detects the tile grid and fits a per-channel illumination model. Its default Automatic mode tries several candidate corrections (BaSiC, a folded log-gradient model, and a conservative split-half fit), scores each on Z planes it didn't fit on, and keeps a correction only when it clearly reduces the grid pattern without reordering object intensities or losing fine detail — otherwise the channel is left untouched with a warning. The corrected mosaic is uploaded as a new image beside the original. See [Image processing](/documentation/image-processing#stitched-tiff-illumination-correction).

### Download snapshot crops across XY, time, and Z

Snapshot downloads used to give you one image at the location the snapshot was saved. The Snapshots panel now has independent "Download across" XY, T, and Z checkboxes, so you can export the same field of view at every Z slice, every time point, or every position — for the current snapshot, all snapshots, or just the ones you've selected. Multiple images arrive as a single ZIP with one TIFF per position, channel, and layer, each named with its coordinates. Your viewer location and layer settings stay put. See [Snapshots](/documentation/snapshots#image-download-options).

**Nimbus AI knows the newer features** — The AI assistant can now color your objects by any computed property on request (with a confirmation before it recolors the dataset), explain why objects are colored the way they are, and guide you to the Measurements tab, the object counter's filter notice, track filters, track ID labels, and dangling-connection cleanup.

**Configure datasets through the REST API** — A new `POST /api/v1/dataset/{folderId}/multi_source` endpoint turns a folder of uploaded image files into a fully configured dataset, with the same filename parsing, variable assignment, compositing, and RGB-splitting options as the Advanced Import UI. A `dryRun` option returns the computed configuration without writing anything, so scripted upload pipelines no longer need the browser.

**Tidier Snapshots panel** — The frame and Save buttons in the Snapshots panel are now a compact, evenly spaced stack aligned with the coordinate fields.

## August 2026

### Analysis plots with lasso gating

A new Analysis panel plots any two computed property values — or a numeric property against a categorical field like tags, shape, or position — and lets you lasso the points you want. The selection becomes a gate that narrows the viewer, the Object Browser, the Connections list, and every export, exactly like a property filter. Plots chain, so a sequence reads as a flow-cytometry-style gating strategy. Gates are saved as the shape you drew rather than a list of objects, so a strategy drawn on one dataset re-resolves correctly on another using the same configuration. Above 50,000 objects, plots become server-computed density heatmaps and gates resolve on the server — exact at any size, validated past 700,000 objects. See [Analysis plots and gating](/documentation/analyzing-image-data-with-objects-connections-and-properties/analysis-plots-and-gating).

### Filter connections by track length

The Connections tab gains a Track filters menu with minimum and maximum bounds on connections per track, objects per track, and duration in time points — the fastest way to isolate long-lived tracks or surface the short fragments that signal a tracking failure. Filtered-out tracks disappear from the list and from the image, in both normal and time-lapse mode, and an opt-in checkbox extends the hiding to those tracks' objects as well. Metrics are always computed over the whole track, even when you're viewing a fragment of it. The tab also offers a one-click cleanup for "dangling" connections left pointing at deleted objects. See [Tools for connecting objects](/documentation/analyzing-image-data-with-objects-connections-and-properties/tools-for-connecting-objects#browsing-and-editing-connections).

### Tracks labeled by their computed track ID

The by-track connection view can now title each track with the `trackId` assigned by the Parent-Child Connection IDs property worker — so a track flagged as `trackId = 42` in an exported CSV is findable as "Track 42" in the panel. Tracks whose connections changed after the property was computed are badged `partial` or `mixed IDs`, which makes those badges a useful way to spot exactly the tracks worth re-reviewing.

### Color objects by property value

Pick a computed property from the annotation list's More Actions menu and every object takes its color from its value, with a legend in the viewer explaining the mapping. Choose a continuous colormap ramp or a categorical palette. Ramps default to the 1st–99th percentile rather than the full extent, so a handful of outliers can't collapse everything else into one indistinguishable color; the legend marks the clipped ends. Works at full dataset scale — coloring 700,000 objects takes about ten seconds.

### Measurements where your objects are

Computed properties no longer hide behind a dialog. A chip strip above the object list shows one chip per property with shown/total counts, a filter box that matches property *and* value names, and a pinned "+ New measurement…" chip. A new Measurements tab sits beside Objects and Connections, listing every property — including ones not yet computed — with per-property Run buttons, value counts, and per-value show/hide.

### Zoomed-out overview for huge annotation sets

Very large annotation datasets now render zoomed-out as a tiled image — as filled footprints or as a density map — instead of as hundreds of thousands of individual shapes, then hand off to real interactive outlines as you zoom in. Region selection and click-to-navigate keep working from the overview.

### The object counter says when a filter is hiding things

The count indicator over the image reports numbers computed after filters and gates, which previously made an active filter indistinguishable from missing data. It now spells this out — "Showing 826 of 826 in view (1 filter applied)" — names the specific constraints on hover, and opens the responsible panels on click.

### Stitch refinement and illumination correction

Clean up the seams in tiled images that NimbusImage composited for you. The new Stitch Refinement + Illumination Correction tool goes back to the original raw tiles, measures how neighboring tiles actually overlap, and solves for a corrected set of tile positions — while fitting a per-channel flat-field model from those same overlaps to remove the vignetting that makes tile boundaries show up as a grid. The corrected mosaic is uploaded as a new image next to your original, which is left untouched. Works on datasets composited from a Nikon .nd2 file. See [Image processing](/documentation/image-processing).

**Fixes and improvements**

* **Time-lapse scrubbing is much faster** on datasets with many connections. Stepping through time on a 10,000-connection dataset went from 24 to 89 fps; datasets with 50,000+ connections went from roughly 1 second per step to a usable frame rate.
* **`all` in batch coordinate fields** — type `all` in Batch XY, Batch Z, Batch Time, or the Crop range fields to process every available coordinate without knowing how many there are.
* **The Cellpose-SAM Diameter parameter is back**, with a corrected default of 30 (the value meaning "segment at native resolution") and a 10–200 range. It now applies to custom models and base models alike; previously it was silently ignored for base checkpoints.
* **Image-processing workers moved off the shared CPU queue.** Registration, histogram matching, Gaussian blur, rolling ball, crop, and H\&E deconvolution jobs no longer block tool parameter forms platform-wide — those forms had been queueing for 16–25 minutes behind long compute jobs.
* Properties created through the Python package are automatically registered into the dataset's collections, so they're visible instead of silently orphaned.
* Fixed empty-subset CSV exports, a crash in the children-count worker on empty results, Piscis legacy model loading, and `[object Object]` appearing in the image switcher subtitle.
* Datasets mixing different pixel data types are now blocked at upload with an explanation, rather than failing confusingly later.
* Worker jobs, transcoding, and uploads now surface storage quota errors instead of failing opaquely.

## July 2026

### Browse and edit connections

A new Connections tab in the Object Browser shows what's connected to what — as a flat list or grouped by track — with a scope selector for all connections, the current location, your selected objects, or those passing your filters. Delete a single link, an entire track, or everything in scope. "Connect selected" chains the objects you've selected into connections in ascending time order. Connection lines in the viewer are now clickable as well, in both normal and timelapse mode, so you can cut a bad track exactly where you see the problem.

### Timelapse panel with track coloring

Timelapse controls now live in their own palette beside the Navigator instead of stretching it, so turning the mode on no longer pushes Layers and Tools down the screen — and closing the palette turns the mode off. The panel adds a coloring toggle that gives each track its own hue, with a shuffle to re-roll the assignment, or renders every track white when many overlap. A live "N tracks · M links" readout opens the Object Browser straight into the by-track connection view, where each track header shows a color swatch matching the drawn line and a Select action for that track's objects.

### Nimbus AI

A conversational AI panel that operates NimbusImage for you. Describe what you want — navigate to a frame, adjust a layer's contrast, create and configure a worker tool, run it, filter objects — and the agent carries it out through the interface, showing each step as a card you can review and revert. It also analyzes your data: ask for summary statistics on a property, or for a histogram, scatter plot, or box plot, and the plot appears directly in the panel. The agent can answer questions about NimbusImage from the built-in help, and replaces the previous Nimbus Chat button. Your conversation persists between sessions.

### Worker pipelines

Chain worker steps into a named, re-runnable sequence — for example Cellpose-SAM → Blob metrics → Blob intensity — and run the whole thing with one click, on a single dataset or every dataset in a collection. Pipelines are saved with your configuration, and a status view tracks each step as it runs.

### Cellpose-SAM retraining

Fine-tune Cellpose-SAM on your own corrected annotations. Tag your ground-truth objects (and optionally the regions to train on), run the retrain worker, and your custom model appears in the Cellpose-SAM Model dropdown for future segmentation runs.

### Visualize millions of annotations

NimbusImage now stays responsive on very large annotation datasets — hundreds of thousands, or even millions, of objects (validated on spatial datasets with over 700,000 annotations). Annotations load lazily: lightweight "stubs" load first, and full shapes are fetched on demand for whatever is in your viewport, with the rest shown as dots. The object list switches to server-side filtering, sorting, and pagination for large datasets so it stays fast. This happens automatically, and power users can tune the behavior under **Settings → "Advanced settings for large numbers of annotations."** See [Working with large annotation datasets](/documentation/analyzing-image-data-with-objects-connections-and-properties/large-annotation-datasets).

### Line scan intensity profiles

Draw a line across your image and see a live plot of raw pixel intensity along it, with one trace per channel — without creating any stored annotations. Choose freehand mode (drag) or segment mode (two clicks), and optionally restrict the plot to a single channel. Useful for inspecting signal profiles, comparing channels, and locating edges and peaks.

### Segment similar objects (experimental)

Mark a few example objects and automatically find similar ones across the current view. Pick examples with a SAM click, a SAM box, or a freehand circle, then propagate them using SAM-embedding similarity, an in-browser random-forest classifier, or a chained "SAM → Classifier" mode. Putative matches appear as outlines that you can accept in bulk. This tool is experimental and currently requires Google Chrome with WebGPU.

**Folder upload** — Upload an entire folder at once. Drag a folder onto the upload area (nested subfolders included) or click "Upload a folder" to pick one; all of its files are collected into the dataset.

**AI-suggested tools** — When you open a freshly created, empty collection, NimbusImage can suggest a starting set of analysis tools based on your image and its channel names (for example, Cellpose-SAM for nuclei or Piscis for spots). Accept the ones you want with a click.

**Improved 3D annotation rendering** — Segmentations in the 3D viewer now render as smooth, shaded surfaces lofted across Z-slices, points appear as spheres, and an opacity slider lets you see the volume data through the surfaces.

**Faster AI segmentation** — Segment Anything (SAM) model loading and image encoding are noticeably faster.

**Consistent workspace design** — The refreshed dataset-view design language now extends across the rest of the app.

**Searchable tool picker** — The tool selection dialog now has a search field that filters by name, description, or category, with tools grouped into "Drawing & interaction tools" and "Automated analysis."

**Storage usage and quota** — Your profile menu shows how much storage you've used against your quota, with a warning as you approach the limit. Operations that fail because of a full quota now say so, instead of appearing to stall.

**More annotation rendering controls** — On large datasets you can now set a minimum number of visible annotations in view, choose whether zooming in reveals more objects or holds a constant density, and reset all rendering settings to their defaults.

**Saved rendering and object-list settings** — Annotation rendering tuning, the property columns shown in the object list, and property filters are now saved with your dataset configuration instead of being lost on reload.

**Filter count badge** — The Filters button shows how many filters are currently active, so hidden objects are never a mystery.

**Unrolled frame labels** — Each cell in an unrolled grid is labeled (e.g. `XY 3`, `Z 2 · Time 7`), and clicking a label rolls the grid back up at that frame.

**Faster large-dataset interactions** — Visibility updates on datasets with hundreds of thousands of objects are substantially faster, the object list switches to server-side pagination sooner, and the minimap no longer re-renders on every frame while scrubbing sliders.

**Cellpose-SAM model update** — Cellpose-SAM now defaults to the newer cpsam\_v2 checkpoint, which produces fewer spurious masks in low-contrast regions. The original model remains selectable for reproducibility.

**Faster worker startup** — Analysis workers start noticeably faster, and opening a worker's settings no longer waits on model loading.

**Refined progress bars** — Progress bars have a lighter, restyled look and sit above the bottom-left button cluster instead of covering the Tools panel.

**AI agent waits for jobs** — When the AI panel starts a worker or a property computation, it now waits for the job to finish and continues the workflow with the result, instead of stalling or repeatedly re-checking.

#### Bug fixes

* Fixed a race condition that could cause the Segment Anything model to fail to initialize.
* Fixed JSON import failing when the file contained connections.
* Fixed filters from one dataset carrying over when you opened another.
* Fixed clicking an object in the image not highlighting its row in the object list on large datasets.
* Fixed the AI panel reporting a successful save when the change had actually been rejected.
* Fixed clicking an object in the Object Browser panning to the wrong tile when a dimension was unrolled.
* Fixed most connection lines going undrawn on large, lazily loaded datasets until you zoomed in.
* Fixed track colors that could render near-black or near-white, or that were nearly indistinguishable between neighboring tracks.

## June 2026

### 3D volume visualization

View your dataset as an interactive 3D volume, rendered directly in your browser. Toggle between the 2D and 3D views from the top app bar. Each channel is volume-rendered using its existing color and contrast, with a choice of Composite or Maximum Intensity Projection (MIP) blend modes. Polygon segmentations appear as 3D objects colored by tag or by a computed property, and you can map either Z or Time to the depth axis — turning a time lapse into a volume where moving objects trace out continuous paths ("worldlines"). Orientation aids include an XYZ gizmo and an optional scaled bounding box with tick labels. Large images are automatically downsampled to stay within memory and GPU limits.

**More robust Python API** — The `nimbusimage` Python package now retries transient server errors, offers a stable cursor for iterating annotations safely while deleting them, validates conflicting compute arguments, and reports clearer permission errors when a job's session has expired.

#### Bug fixes

* Fixed polygon and line annotation outlines not rendering on all Z-slices.
* Fixed downloaded snapshots using an incorrect scale bar size.
* Fixed snapshot ZIP downloads nesting files inside extra folders.
* Fixed stale snapshot selections persisting after the underlying data changed.
* Fixed a duplicate filename when downloading an image together with its annotations.
* Fixed segmentation runs failing to upload when a worker produced an empty or split outline — one bad shape no longer fails the entire batch.
* Fixed the StarDist worker crashing on startup.
* Fixed the line scan worker crashing on single-channel datasets when "All channels" was selected.

## May 2026

**"Mine only" dataset filter** — Filter the Recent Datasets list on the home page to show only datasets you own.

**Fine slider adjustment** — Hold Shift while dragging the XY, Z, or Time slider to scrub through values more precisely.

**Single-file bulk export** — Bulk JSON export now downloads all datasets together as one ZIP archive, requiring just a single save dialog.

**Collection navigator for import** — A streamlined navigator makes it easier to find and select a compatible collection when adding a dataset to an existing one.

**Move files in the file manager** — The Move action opens a location chooser again, letting you reorganize files and folders.

**Improved viewer responsiveness** — Reduced rendering overhead on the image canvas for smoother interactions.

**Modular dataset workspace** — The dataset view has been refreshed into a modular workspace: your image fills the screen as the focus, while the Navigator, Layers, Tools, and other panels become floating, translucent palettes you can toggle and rearrange. Worker tools now open in a dialog that keeps the image visible behind it.

**Stay logged in across reloads** — Reloading the page no longer returns you to the login screen; your session now persists reliably.

#### Bug fixes

* Fixed memory leaks when switching between datasets.
* Fixed checkboxes that could not be selected in some tool configuration panels.
* Fixed drag-and-drop uploads not working on the dataset drop zone.
* Fixed worker progress bar text being clipped.
* Fixed live notifications (such as job progress updates) stopping after a short period of inactivity.
* Fixed a crash when opening the log for a job that had no arguments.

## April 2026

### Publish projects to Zenodo

Archive an entire project—image files, annotations, and metadata—directly to Zenodo for a permanent, citable DOI, helping you meet data-sharing and archiving requirements. Configure a Zenodo API token, upload your project as a draft, review it on Zenodo, then publish to mint a DOI. You can upload new versions later while keeping a single citable identifier.

### Refreshed interface

NimbusImage has a refreshed look built on a new dark theme with layered surfaces and updated typography, along with a new light theme.

**Full-screen file browser** — Expand the Browse panel to fill the page, hiding the upload and recents panels so you can navigate large folder structures more easily. Your preference is remembered.

**Copy link button** — Copy a shareable link to a dataset or other resource with a single click.

#### Bug fixes

* Fixed a server error that could occur when importing certain datasets.
* Fixed recent datasets not refreshing on the home page after changes.
* Fixed multi-file uploads misreading filenames that don't use a separator between variables.

## March 2026

### Few-shot segmentation with SAM

Use a few example annotations to automatically find and segment similar objects across your image. Two model options are available: SAM1 (ViT-H) for higher quality results and SAM2 (Base+) for faster processing.

### Python API for programmatic access

Access NimbusImage from Python with the new `nimbusimage` package. Connect to a dataset and work with its images, annotations, connections, properties, and exports in code—useful for scripting custom analysis and automating workflows.

**TSV export support** — Export your annotation data as tab-separated values (TSV) in addition to CSV. A format toggle in the export dialog lets you switch between CSV and TSV. TSV is recommended when property names contain commas, and the dialog will warn you when this is the case.

**Increased batch dataset limit** — Automated annotation workers can now be applied to up to 50 datasets in a collection at once, up from 10.

**Side panels push content** — The object list, snapshots, and settings panels now push the image viewport to the side instead of overlaying it, so you can see your image and panel contents at the same time. Panels also stay open when interacting with the image.

**Bulk CSV export** — Export annotations for every dataset in a collection as CSV files in one step, alongside the existing bulk JSON export.

**Faster annotation rendering** — Performance improvements to annotation drawing, store operations, and drag-select make working with many objects more responsive.

**CondensateNet model versions** — Choose between CondensateNet model versions (including a new default) from a dropdown when running the condensate segmentation worker.

#### Bug fixes

* Fixed CSV export where selecting individual properties to export would check or uncheck all properties at once.
* Fixed comma handling in property names: property auto-naming now uses spaces instead of commas between tags, and property names containing commas are properly quoted in CSV exports.
* Fixed layer and annotation renaming showing "\[object Event]" instead of the typed name.
* Fixed worker tool settings being lost when closing and reopening the tool panel.
* Fixed the collection name label overlapping the input text on the dataset info page.
* Fixed tooltips on dataset info collection buttons rendering as a narrow vertical stripe.
* Fixed upload progress bar stuck at "0 B / 0 B".
* Fixed login form not appearing on the home page.
* Fixed an occasional race condition that could cause annotation data to load incorrectly.

## February 2026

### Circle and ellipse annotation tools

Draw circular and elliptical regions on your images. The circle tool inscribes a circle within your drag area, while the ellipse tool fills the full bounding box. Both are measured like other polygon-based objects.

### Combine annotations tool

Merge two polygon annotations into one by clicking them in sequence. Works with overlapping or nearby polygons, with a configurable tolerance for how close shapes need to be. Connections from the merged annotation are automatically preserved.

### Batch annotation computation

Apply automated annotation computations across all datasets in a collection at once. A progress bar tracks each dataset, and you can cancel the batch at any time.

### Project sharing

Share entire projects with other users and control their access level. When you share a project, permissions automatically propagate to all datasets, collections, and views within it. Making a project public also makes all its contents publicly accessible.

**Sharing status indicators** — See at a glance who has access to your datasets and configurations, with color-coded badges showing read, write, and admin access levels.

**SAM model options** — Choose between SAM1 (ViT-B), SAM2 Base+, and SAM2 Large for AI-assisted segmentation, giving you more control over speed vs. quality.

**MP4 movie export** — Export snapshot movies as MP4 in addition to WebM, with broader browser compatibility including Safari.

**Bulk collection export** — Export annotations for every dataset in a collection as individual JSON files with a single click.

**Upload dialog help** — An info button in the upload dialog explains what datasets, batch mode, and collections are.

**Dataset statistics** — The dataset info page now shows counts for annotations, connections, properties, and property values.

**Upload configuration redesign** — The multi-file dataset configuration view now uses a visual badge and slot layout, making it easier to see and assign variables to dimensions like XY, Z, Time, and Channel.

**Filename variable highlighting** — When uploading multi-file datasets, an interactive preview highlights which parts of your filenames correspond to which dimensions, with color-coded segments and a legend.

**Improved annotation defaults** — Annotations now maintain a consistent size regardless of zoom level and use a smaller, less obtrusive marker size by default.

**Large dataset exports** — CSV and JSON exports now handle large datasets (tens of thousands of annotations) without browser memory issues.

**CondensateNet large image support** — The CondensateNet segmentation worker can now process large images by automatically tiling them, stitching objects across tile boundaries.

#### Bug fixes

* Fixed CondensateNet segmentation failing on images with non-standard dimensions.

## January 2026

### Projects

Group your datasets and collections into projects for publications. Add metadata like authors, license, DOI, and keywords to prepare your data for sharing and citation.

### Batch dataset upload

Upload multiple files at once, creating one dataset per file within a collection. Supports both quick and advanced import modes, with shared dimension configuration across all datasets.

### Public dataset sharing

Make any dataset publicly accessible via a link — no account required to view.

### Redesigned sharing dialog

Manage who has access to your datasets in real time. See current users, change permission levels, add or remove access, and toggle public visibility from one unified dialog.

### Redesigned tool selection

The tool creation dialog now groups tools by category with color-coded sections, descriptions for each tool, and a featured tools section at the top.

### Deconwolf deconvolution

Deconvolve 3D fluorescence microscopy Z-stacks using the Richardson-Lucy algorithm. Supports GPU acceleration for faster processing, with automatic CPU fallback. Optical parameters can be auto-extracted from ND2 metadata, and large images are automatically tiled to fit in memory.

**Piscis PyTorch update** — The Piscis spot detection workers have been updated to the official v1.0.0 release with a PyTorch backend. The default detection threshold is now 0.5 (previously 1.0) for improved sensitivity.

**Dimension slider step arrows** — Use up/down arrow buttons next to XY, Z, and Time sliders to step through values one at a time.

#### Bug fixes

* Fixed login requiring a double click.

## December 2025

### CondensateNet automated condensate segmentation

Automatically detect and segment biomolecular condensates in fluorescence microscopy images using the CondensateNet deep learning model.

**Improved upload dialog** — The upload dialog now includes a name picker and location picker, with duplicate name checking.

**Text or number labels** — Toggle between showing descriptive text labels (e.g., "Well A1") or numeric labels in the viewer settings.

**Smarter folder defaults** — When adding a dataset to an existing collection, the file browser now defaults to the dataset's current folder instead of your private folder.

## November 2025

### Refreshed home page

The home page now has a single unified upload button, a tabbed interface for recent and sample datasets, updated guided tours, and improved dark mode support.

#### Bug fixes

* Fixed the unroll checkbox disappearing when selected.


# Vignettes

Here are a few examples of common use cases for NimbusImage to give you a sense of how to use it.

## Uploading and navigating datasets

{% embed url="<https://www.loom.com/share/5ee1665068194cf4aa136aeade16ee63?sid=01b98d6a-8f84-43b7-828d-bc8a2acd78d6>" %}

## Circling cells using manual tools

{% embed url="<https://www.loom.com/share/eeeb01efcf084be1b1e6eb3717886291?sid=6843c035-cafd-47d5-8179-96bcbbca7832>" %}

## Finding nuclei automatically using cellpose

{% embed url="<https://www.loom.com/share/f6bbba2dc579469c90217f38c843dc95?sid=7ca76e71-f6c3-42ca-b573-d0f30952a9c1>" %}

## Quantify fluorescence intensity

{% embed url="<https://www.loom.com/share/dce3dd0da05746628ac13d640e1b5dcd?sid=b3df3fec-d98f-4403-afb4-f06d893ecb99>" %}

## Segment Anything Model (SAM) for quickly picking out objects

{% embed url="<https://www.loom.com/share/b308324229c04ec0ac8f0d4dc4d18fb1?sid=4e397936-a77a-44d9-85d9-73f38c6ed2db>" %}

## Finding spots automatically using Piscis

{% embed url="<https://www.loom.com/share/49d795f30a3844ef908c3aaddf858098?sid=b223ff71-676d-43ed-86b8-dcc2e0e5285b>" %}

## Counting the number of spots per cell

{% embed url="<https://www.loom.com/share/c8c55bcedbc942b7be3bd1ae816bdefa?sid=a26123e5-5c13-462a-ac44-a4520d0428e6>" %}

## Fixing and interacting with your data

{% embed url="<https://www.loom.com/share/5cda2fadb8da400f90a7f8651cee3512?sid=ed4331c5-37f3-4a2b-8382-c05c3b5ef7f6>" %}


# Installation

How to install NimbusImage

If you really want to install NimbusImage yourself, you can :). Before getting into the details of installation, it's important to understand the structure of NimbusImage. The front end and back end are two completely independent components. The web application lives on the front end, while all your data and analyses reside in the back end. You can mix and match almost any front end with any back end. For example, you could use nimbusimage.com for the front end and run the back end on your local laptop or vice versa. We here provide instructions for installing both, but again, the easiest option is to simply use the online version.

A good halfway point (if you must) is to use the front end provided by nimbusimage.com along with your own back end. That way, your data lives on your own computer, in case that is important to you.

## Installing the back end

The back end is a data management system called [Girder](https://girder.readthedocs.io/en/latest/), which is developed by Kitware. You can install it fairly easily using Docker. Keep in mind that Docker on Mac is really slow for various reasons, so we strongly recommend using Linux. Also, some workers that require GPUs, like cellpose for cell segmentation, need a Linux system with a GPU.

To install the backend, first you need to install Docker.

**Linux:**

1. **I**nstall using the apt-repository. Follow [these instructions](https://docs.docker.com/engine/install/ubuntu/#install-using-the-repository). Then follow these [post-install instructions](https://docs.docker.com/engine/install/linux-postinstall/).
2. If you want to use GPU workers, you will need to [install CUDA](https://docs.nvidia.com/cuda/cuda-installation-guide-linux/index.html). Make sure your GPU driver is installed (probably need 535 or higher).
3. Then install the Nvidia [Docker toolkit](https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/latest/install-guide.html).
4. Wasn't that easy? I hate Linux. Also, you will probably have to restart your computer at least once by now.

**Mac:**

1. Install using the [Docker app](https://docs.docker.com/desktop/install/mac-install/).

**Now install the backend using Docker:**

* Pull the NimbusImage repository:

```sh
git clone https://github.com/arjunrajlaboratory/NimbusImage.git
cd NimbusImage/
```

* Start docker images for the backend:

```sh
docker compose build
docker compose up -d
```

You should now be able to see the backend at [http://localhost:8080](https://localhost:8080). You can login with login "admin" and password "password". **We strongly recommend changing those defaults ASAP!**

## Installing the workers

Go to a **new directory** (NOT the `NimbusImage` directory) and run the following:

```sh
git clone https://github.com/arjunrajlab/ImageAnalysisProject
cd ImageAnalysisProject/
chmod +x build_machine_learning_workers.sh
chmod +x build_workers.sh
./build_machine_learning_workers.sh
./build_workers.sh
```

The machine learning workers will run on CPU on Linux if a GPU is not available, although will run much more slowly.

## Installing the front end

To install the frontend, you need to:

1. Install [node.js](https://nodejs.org/en/download/package-manager/current).
2. Install [pnpm](https://pnpm.io/installation):

   ```sh
   npm i -g pnpm
   ```
3. Pull the repository (if you haven't already done so for the backend):

   ```sh
   git clone https://github.com/arjunrajlaboratory/NimbusImage.git
   cd NimbusImage/
   ```
4. Install node modules:

   ```sh
   pnpm install
   ```
5. Compile C++ code to wasm:

   ```sh
   pnpm emscripten-build
   ```
6. If you are on Linux, you may need to run:

   ```sh
   cat /proc/sys/fs/inotify/max_user_watches
   sudo sysctl fs.inotify.max_user_watches=1000000
   sudo sysctl -p
   ```
7. Copy in the models for Segment Anything (optional):

   ```sh
   mkdir -p public/onnx-models/sam/vit_b
   cd public/onnx-models/sam/vit_b
   wget "https://huggingface.co/rajlab/sam_vit_b/resolve/main/decoder.onnx" -O decoder.onnx
   wget "https://huggingface.co/rajlab/sam_vit_b/resolve/main/encoder.onnx" -O encoder.onnx
   cd ../../../.. # Go back to the NimbusImage root directory
   ```
8. Now start up the server:
   1. If you want to run the development build:

      ```sh
      pnpm run dev
      ```

      You should see output indicating the server is running, likely on `http://localhost:5173`.
   2. If you want to run for production:

      ```sh
      pnpm build
      pnpm run serve
      ```

      You should see output indicating the server is running, likely on `http://localhost:4173`.
9. Go to the relevant localhost URL (`http://localhost:5173` for dev, `http://localhost:4173` for prod) and you should see the website!

## Sign in (if you are running your own server)

IMPORTANT: By default, an admin user will be created with the login `admin` and the password `password`. You can use these credentials to initially log into the system.

1. Navigate to your running NimbusImage frontend (e.g., `http://localhost:5173`).
2. **In the "Girder domain" field, enter the domain associated with your backend.** If running locally, this will be `http://localhost:8080`.
3. **Enter the username (`admin`) and password (`password`).**
4. **For security, it is critical to add a new admin user in Girder and then remove the original `admin` user.** To do this, go to `http://localhost:8080`, sign into Girder using the default credentials, then go to the `Users` tab on the left to manage users.

<figure><img src="https://4239675806-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FX54NriBmLyFl6hdSGC9K%2Fuploads%2FEMJ4uK5mAOht6IsnW7J5%2Fimage.png?alt=media&amp;token=83ae4a0d-b2ce-43a9-87ab-66c07e0a4654" alt="" width="365"><figcaption><p>Make sure to set the Girder domain to your backend server, e.g., http://localhost:8080</p></figcaption></figure>


# Citations

NimbusImage depends on countless contributions from scientists and engineers around the world. If you use NimbusImage, we recommend you cite the NimbusImage paper as well as the relevant papers for the underlying tools to recognize these efforts.

## NimbusImage

If you use NimbusImage, please cite:

Niu, Z., Bruyère, T., Manthey, D., Li, J., O'Farrell, A., & Raj, A. (2026). [NimbusImage: a cloud-computing platform for image analysis.](https://doi.org/10.1038/s41592-025-02942-6) *Nature Methods, 23*(1), 6-8. PMID: 41266644.

## How to acknowledge NimbusImage and related software

We recommend including text along the following lines in your papers:

> We analyzed our image datasets using the NimbusImage platform (1), which is available here:\
> <https://github.com/arjunrajlaboratory/NimbusImage/>\
> and hosted here:
>
> <https://www.nimbusimage.com/>
>
> We used the Cellpose and Cellpose retrain tools (2-5) to detect cells and the Piscis and Piscis retrain tools (6) to detect mRNA spots. We connected each mRNA spot to the nearest cell using the "Connect to nearest tool" as described in the NimbusImage documentation.

## Citations

### Cellpose

Cellpose works like magic for cell segmentation and is the product of extensive research and development by Carsen Stringer. They have a series of three papers on the topic, and we generally recommending citing all three. The first one describes the Cellpose algorithm, the second introduces retraining, and the third introduces image restoration and new, highly accurate models. The fourth paper is a preprint for Cellpose-SAM, which combines Cellpose with the Segment Anything Model (SAM) to enable versatile cell segmentation.

Here is the GitHub repository:\
<https://github.com/MouseLand/cellpose>

Here are the papers:\
\
1\. Stringer, C., Wang, T., Michaelos, M., & Pachitariu, M. (2021). [Cellpose: a generalist algorithm for cellular segmentation.](https://www.nature.com/articles/s41592-020-01018-x) *Nature methods, 18*(1), 100-106.\
\
2\. Pachitariu, M. & Stringer, C. (2022). [Cellpose 2.0: how to train your own model.](https://www.nature.com/articles/s41592-022-01663-4) *Nature methods*, 1-8.\
\
3\. Stringer, C. & Pachitariu, M. (2025). [Cellpose3: one-click image restoration for improved segmentation.](https://www.nature.com/articles/s41592-025-02595-5) *Nature Methods*.\
\
4\. Pachitariu, M., Rariden, M., & Stringer, C. (2025). [Cellpose-SAM: superhuman generalization for cellular segmentation.](https://doi.org/10.1101/2025.04.28.651001) *bioRxiv* 2025.04.28.651001.

### StarDist

StarDist is a powerful tool for cell and nuclei detection that uses star-convex polygons to accurately segment objects in microscopy images. It is particularly effective for nuclear segmentation and can work in both 2D and 3D.

Here is the GitHub repository:\
<https://github.com/stardist/stardist>

Here are the papers:

1\. Schmidt, U., Weigert, M., Broaddus, C., & Myers, G. (2018). [Cell Detection with Star-Convex Polygons.](https://doi.org/10.1007/978-3-030-00934-2_30) *Medical Image Computing and Computer Assisted Intervention (MICCAI)*, 265-273.

2\. Weigert, M., Schmidt, U., Haase, R., Sugawara, K., & Myers, G. (2020). [Star-convex Polyhedra for 3D Object Detection and Segmentation in Microscopy.](https://doi.org/10.1109/WACV45572.2020.9093435) *The IEEE Winter Conference on Applications of Computer Vision (WACV)*.

3\. Weigert, M., & Schmidt, U. (2022). [Nuclei Instance Segmentation and Classification in Histopathology Images with Stardist.](https://doi.org/10.1109/ISBIC56247.2022.9854534) *The IEEE International Symposium on Biomedical Imaging Challenges (ISBIC)*.

### Segment Anything Model (SAM)

The Segment Anything Model (SAM) is a revolutionary promptable segmentation tool developed by Meta Research that can segment almost any object in an image based on simple prompts like points or boxes. NimbusImage incorporates SAM to enable rapid semi-automated segmentation with minimal user input.

Here is the GitHub repository:\
<https://github.com/facebookresearch/segment-anything>

Here is the paper:

Kirillov, A., Mintun, E., Ravi, N., Mao, H., Rolland, C., Gustafson, L., Xiao, T., Whitehead, S., Berg, A.C., Lo, W\.Y., Dollár, P., & Girshick, R. (2023). [Segment Anything.](https://arxiv.org/abs/2304.02643) *arXiv:2304.02643*.

### Segment Anything Model 2 (SAM 2)

SAM 2 extends the Segment Anything Model to video, adding a memory of each object across frames so that objects can be tracked through a sequence. NimbusImage uses SAM 2 for its automated SAM2 tools, including automatic segmentation, few-shot segmentation, refinement, and propagating or tracking objects through time and Z.

Here is the GitHub repository:\
<https://github.com/facebookresearch/sam2>

Here is the paper:

Ravi, N., et al. (2024). [SAM 2: Segment Anything in Images and Videos.](https://arxiv.org/abs/2408.00714) *arXiv:2408.00714*.

### Piscis

Piscis is a specialized deep learning algorithm developed by Will Niu while in the Raj Lab. It is designed specifically for detecting diffraction-limited spots in fluorescence microscopy images, such as single RNA molecules in FISH experiments. It uses a novel loss function, the SmoothF1 loss, that directly penalizes false positives and false negatives while remaining differentiable for deep learning training.

Here is the GitHub repository:\
<https://github.com/zjniu/Piscis>

Here is the paper:

Niu, Z., O'Farrell, A., Li, J., Reffsin, S., Jain, N., Dardani, I., Goyal, Y., & Raj, A. (2025). [Piscis: A loss estimator of the F1 score enables accurate spot detection in fluorescence microscopy images via deep learning.](https://doi.org/10.1016/j.cels.2025.101448) *Cell Systems, 16*(11), 101448. PMID: 41265398.

### CondensateNet

CondensateNet is a deep learning model developed by the Raj Lab for segmenting biomolecular condensates in brightfield microscopy images. It uses a Feature Pyramid Network (FPN) architecture with an EfficientNet encoder to detect and segment condensates.

Here is the GitHub repository: <https://github.com/arjunrajlaboratory/condensatenet>

Raj Lab. (2024). CondensateNet: Deep Learning for Biomolecular Condensate Segmentation. GitHub. <https://github.com/arjunrajlaboratory/condensatenet>

### Deconwolf

Deconwolf is an open-source 3D deconvolution engine that uses the Richardson-Lucy algorithm with a theoretically generated Born-Wolf point spread function (PSF) to sharpen fluorescence microscopy images. NimbusImage uses deconwolf to provide GPU-accelerated deconvolution of Z-stacks directly within the platform.

Here is the GitHub repository: <https://github.com/elgw/deconwolf>

Here is the paper:

Wernersson, E., Gelali, E., Girelli, G., et al. (2024). [Deconwolf enables high-performance deconvolution of widefield fluorescence microscopy images.](https://doi.org/10.1038/s41592-024-02294-7) *Nature Methods, 21*, 1245–1256.

### BaSiC

BaSiC is a shading-correction method that estimates a multiplicative flat-field and an optional additive dark-field from a stack of images using low-rank and sparse decomposition. NimbusImage's Stitched TIFF Illumination Correction tool uses the BaSiCPy implementation as one of its candidate correction models.

Here is the GitHub repository: <https://github.com/peng-lab/BaSiCPy>

Here is the paper:

Peng, T., Thorn, K., Schroeder, T., et al. (2017). [A BaSiC tool for background and shading correction of optical microscopy images.](https://doi.org/10.1038/ncomms14836) *Nature Communications, 8*, 14836.

### UMAP

UMAP (Uniform Manifold Approximation and Projection) is a dimension-reduction method widely used to visualize single-cell and spatial-transcriptomics data. NimbusImage's Xenium ingest tooling computes a UMAP embedding of the cells, and recomputing a spatial expression table can optionally recompute a UMAP, using the umap-learn implementation.

Here is the GitHub repository: <https://github.com/lmcinnes/umap>

Here is the paper:

McInnes, L., Healy, J., & Melville, J. (2018). [UMAP: Uniform Manifold Approximation and Projection for Dimension Reduction.](https://arxiv.org/abs/1802.03426) *arXiv* 1802.03426.

## Packages

### Girder

Girder is a free and open source web-based data management platform developed by Kitware. It provides a flexible framework for storing, managing, and sharing various types of data, including large scientific and medical images.

Here is the GitHub repository:\
<https://github.com/girder/girder>

### Large Image

Large Image is a collection of Python modules developed and maintained by the Data & Analytics group at Kitware for processing large geospatial and medical images. It provides capabilities for tile serving, support for a wide variety of image formats, and efficient methods for accessing regions of large images.

Here is the GitHub repository:\
<https://github.com/girder/large_image>

### GeoJS

GeoJS is a JavaScript library for visualizing geospatial data in a browser, developed by Kitware and OpenGeoscience. It aims to bridge the gap between GIS, scientific visualization, and information visualization, providing high-performance visualization and interactive data exploration of scientific and geospatial location-aware datasets.

Here is the GitHub repository:\
<https://github.com/OpenGeoscience/geojs>

### VTK.js

VTK.js is an open-source JavaScript library for scientific visualization in the browser, developed by Kitware. NimbusImage uses VTK.js to power its interactive 3D volume visualization, rendering multi-channel volumes and 3D segmentations directly in the browser.

Here is the GitHub repository:\
<https://github.com/Kitware/vtk-js>

### DeepTile

DeepTile is a large image tiling and stitching library developed by the Arjun Raj Laboratory. It provides a standardized workflow for splitting large images into tiles of a specified size, processing tiles using regular Python functions, and stitching the processed tiles. DeepTile is especially useful for scaling Python functions and deep learning algorithms to arbitrarily large input image sizes.

Here is the GitHub repository:\
<https://github.com/arjunrajlaboratory/DeepTile>


# Images, datasets, and collections

Imaging data in NimbusImage is organized into *datasets,* *collections*, and *projects.*

<div align="left"><figure><img src="https://4239675806-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FX54NriBmLyFl6hdSGC9K%2Fuploads%2FQS8jG1T4SpPNvoaC9W0z%2Fimage.png?alt=media&amp;token=0cbe9886-1443-41aa-9ef5-217f76cd85c0" alt=""><figcaption></figcaption></figure></div>

## Datasets

A *dataset* is the set of images that you want to visualize and analyze at once. Examples could include:

1. A simple image.
2. A very large image.
3. A Nikon .nd2 file containing a Z-stack for 3 fluorescence channels.
4. A Nikon .nd2 file containing 15 positions of Z-stacks for 3 fluorescence channels.
5. Large images in 4 channels from a 12 well plate stored across multiple TIFF files.
6. Time lapse image data across a set of files.

A dataset can be from a single file (such as a multidimensional .nd2 file) or could be spread across multiple files. The dataset will also store all objects and snapshots that you make as you analyze your data. To learn more about file formats, see [File formats](/documentation/images-datasets-and-collections/file-formats).

{% hint style="info" %}
Datasets are stored on the server as a folder that contains (often multiple) files.
{% endhint %}

## Collections

A *collection* is a set of datasets that you want to group together for visualization and analysis. For instance, if you collected data from, say, a number of experimental conditions over multiple days, then you may want to group those datasets for each experimental condition into a collection.

The advantage of organizing datasets into a collection is that the user interface is common across all datasets in the collection. Let's say you set up just the right set of contrast settings, colors, and tools for one dataset and now you want to use those same settings for another dataset. In a collection, those settings will apply across *all* datasets, simplifying that process.

In order to form a collection, the datasets must be *compatible* in the sense that the datasets have a similar structure. For instance, if one dataset is a time lapse with 2 fluorescence channels and the other is a Z-stack with 3 channels, then they will not be compatible. However, they don't have to have the exact same size. For instance, say you took 15 timepoints for your time lapse recording in condition 1, but 20 timepoints for condition 2. Those are still compatible as a collection.

{% hint style="info" %}
**Every dataset belongs to a collection.** If you never use collections, that is totally fine, but just be aware that somewhere in there, there is a collection that contains your dataset.
{% endhint %}

{% hint style="info" %}
**A dataset can belong to multiple collections.** Each collection can provide a different view of the same dataset, because it could have different visualization settings and annotation tools. *However, note that objects are associated with the dataset itself and not the collection.*
{% endhint %}

## Projects

A *project* is a way to group datasets and collections together for coordinated management and sharing. Projects are particularly useful for organizing data associated with a publication or a complete study.

Key features of projects:

* Group multiple datasets and collections into a single organizational unit
* Add publication metadata including title, description, license, keywords, authors, and DOI
* Publish an entire project—image files, annotations, and metadata—directly to [Zenodo](/documentation/images-datasets-and-collections/publishing-to-zenodo) for permanent archiving with a citable DOI
* Track project status (draft, exporting, exported)

Projects exist as organizational containers that reference your datasets and collections—the underlying data stays where it is, but projects give you a unified way to manage and eventually share a complete body of work.

When you're ready to archive and share a project, see [Publishing to Zenodo](/documentation/images-datasets-and-collections/publishing-to-zenodo).

## Uploading a dataset

There are two ways to upload a dataset.

**Quick Import:** Just drop in your data on the home page and NimbusImage will automatically parse your data, pick some default options, and bring you to the viewer! Note that behind the scenes, NimbusImage makes a collection for your dataset.

**Advanced Import:** For more control over how your image files are parsed into datasets and organized into collections, use Advanced Upload.

### Uploading multiple files at once

NimbusImage supports batch uploading, which allows you to upload multiple files at once and create a collection containing one dataset per file. This is useful when you have many separate image files that you want to organize together.

* **Quick Import:** Drop multiple files at once, and each file will become its own dataset, all organized into a single collection with default settings.
* **Advanced Import:** Upload multiple files and configure them as a batch. You set the dimension configuration (variables, compositing, etc.) once on the first dataset, and NimbusImage applies those same settings to all subsequent datasets in the batch. This saves time when you have many files with the same structure.

First, upload files, name the dataset, and choose the location for the dataset files to be stored.

**Variable assignment:** The next step in advanced upload is variable assignment: when you have a Z-stack and stage positions and timepoints, each of those is a variable that NimbusImage will let you navigate. Some files, such as .nd2 files or TIFF files with sufficient specification, contain a lot of metadata and the variable assignment is already done. However, it is quite common for data to be stored across multiple files, with the variable encoded in the filename. For instance:

```
GFP_s001_t001.tif
GFP_s001_t002.tif
...
RFP_s003_t010.tif
```

In the above, there could be two channel variables (GFP, RFP), 3 stage positions, and 10 timepoints. **NimbusImage will automatically attempt to read these filename variables and assign them.** In the above, it will assign the variable with "s" to XY position and "t" to time and GFP/RFP to channel. Moreover, sometimes the .tif file itself will have multiple images in it. In that case, that series of images can also be assigned to a variable. **NimbusImage will let you change the variable assignment**, giving you complete flexibility over how all these variables are parsed.

**Compositing:** Sometimes, you want stage position to be a variable you can flip through, like different wells in an image. By default, those will be parsed as different XY positions that can be scrolled through as a variable. However, sometimes you might have images that tile a large field of view, or perhaps you want to visualize all the wells next to each other. In that case, check "Composite", which will put all the data into a single large image using the metadata about the location of the different stage positions.

**Compositing a folder of single-tile .nd2 files.** Some acquisitions, such as optical pooled screens, save every field of view as its own .nd2 file — sometimes thousands per well. NimbusImage can composite these too, placing each file by the stage position recorded inside it:

1. **Upload all the tile files together** with Advanced Import.
2. **Move the tile-number variable to XY.** NimbusImage usually guesses the bare tile number in the filenames as a channel; drag it to XY.
3. **Check "Composite"**, which appears once the tile variable is on XY.

Compositing is only offered when every file has a usable stage position and pixel size and all tiles share the same camera orientation. If two files record the same stage position (a duplicated tile), NimbusImage unchecks Composite and tells you which files collide. If the tiles cover only a small part of the overall area — for example, two separate wells — you get a warning, but compositing still goes ahead. When more than 16 tiles are composited, "Transcode to optimized TIFF" is turned on by default (you can still turn it off). Transcoding a large composite can take a while, but it makes the result much faster to browse.

If you composite a tiled .nd2 acquisition and the seams between tiles are still visible, you can clean them up afterwards with the [Stitch Refinement + Illumination Correction](/documentation/image-processing) tool, which refines the tile positions and corrects for uneven illumination across each tile. That tool reads the original raw tiles, so keep the original .nd2 file in the dataset if you plan to use it.

**Transcoding into optimized TIFF:** In order to facilitate the ability to navigate large images with high performance, it is important to have a well-optimized file format. We have found that many microscopy formats are unfortunately very inefficient. Hence, we give the option to transcode all the data into a single, well-optimized TIFF file. This transcoding takes some compute time, but results in much better performance in most scenarios, hence it is enabled by default. Some formats, like .nd2, are well optimized from the outset, and so transcoding is not enabled by default for those files (except when compositing more than 16 tiles). Transcoding progress is shown live as the job runs.

**Assigning to a collection:** In the next screen, you can decide how you want to organize your dataset into a collection. The default is to create a new collection. However, you can also choose to add it to an existing collection or make a new collection derived from an existing collection. The latter option makes a copy of an existing collection and puts your file in this copied collection. That is useful if you want to, say, copy over existing viewer settings, but you want to organize this dataset separately.


# File formats

Files you can import to NimbusImage.

NimbusImage can read most file formats "out of the box", so mostly you will not have to worry about it. Here, we describe a few considerations for some common formats here. Also, **please do let us know if you are having trouble importing your data.** We have tried to make it as easy and compatible as possible, but there are a quasi-infinite number of formats, so we are sure there are many cases we have not yet encountered.

## Nikon (.nd2)

Nikon .nd2 files work essentially out of the box. You can just import them, and the variable assignment should work, and you generally will not need to enable "Transcode to optimized TIFF". If you have a large tiled image, it would be best to stitch the image in Nikon Elements first, if possible. If, however, that is not an option because the file is too large, you can enable "Composite stage positions" and "Transcode to optimized TIFF" and that should be able to do the stitching for you (although that has not been as extensively tested on our end).

If you do let NimbusImage do the stitching and the seams between tiles are visible in the result, the [Stitch Refinement + Illumination Correction](/documentation/image-processing) tool can refine the tile positions and correct the uneven illumination within each tile. It works only on composited .nd2 datasets and re-reads the original file, so keep the .nd2 in the dataset.

## Zeiss (.czi)

Zeiss .czi files work out of the box as well. The only difference is that we have found that performance is better when these files are transcoded inot a TIFF, so by default "Transcode to optimized TIFF" is enabled.

## Leica (.lif)

Leica .lif files are somewhat more complex, because they are more like containers that can contain multiple image sets. For instance, a .lif file could contain a time lapse, a set of Z-stacks, and a few individual multi-channel images. NimbusImage does not currently import multiple datasets at once. Hence, **for .lif files, we select the largest image set and import that one.** We recommend breaking up your .lif file accordingly so that the outcome is predictable. If enough users ask for the feature, we may enable the ability to choose amongst the image sets or allow for multiple imports.

## TIFF and OME-TIFF

Ah yes, TIFF… So TIFF can be imported, and if the variables are set within the TIFF, they will be read.

{% hint style="info" %}
By default, "Transcode into optimized TIFF" is enabled because, in our experience, most TIFF files are not well optimized. Certainly, if you have multiple TIFF files, we would strongly recommend transcoding them. Only disable this option if you know for sure that the TIFF is optimized (for an example, see below).
{% endhint %}

Most TIFFs work fine, but there is an issue with OME-TIFFs that are spread across multiple files. An OME-TIFF can sometimes have a single file that points to multiple files in a series. This sort of file is not yet supported out of the box, in that you cannot upload all the files and import them directly. However, you can convert this into a single tiff file pretty easily and then import it. Do the following:

```
pip install large_image # installs the large_image package
large_image_converter first_file_in_series.ome.tiff outputfile.tiff
```

This will generate `outputfile.tiff` that then can be directly imported into NimbusImage. **In this case, you do NOT need to transcode into an optimized TIFF**, because `large_image_converter` has already done that for you.

## TIFFs from IncuCyte

The IncuCyte outputs files in a VERY annoying way. They can be directly read into NimbusImage, and it will do its best to handle the naming conventions, but it can be irritating because if you have multi-channel images, it exports them all with the *exact same file names*. Ugh. Anyway, we wrote a little script you can use to clean up the IncuCyte TIFFs and rename them:

<https://github.com/arjunrajlaboratory/process_incucyte_tiff_data>

{% hint style="info" %}
Follow the directory structure very carefully. Also, if you just have a single channel, you still have to have a "phase" subdirectory in which all your files will live.
{% endhint %}


# Managing files

## Overview

NimbusImage provides a powerful file management system that helps you organize your datasets, collections, and other files. The interface is designed to be intuitive while giving you full control over your data organization.

<figure><img src="https://4239675806-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FX54NriBmLyFl6hdSGC9K%2Fuploads%2Fgit-blob-6f39fdb0400c174bee7ddf6ff9bf570b41b6d982%2Flanding-screen.png?alt=media" alt=""><figcaption></figcaption></figure>

## The landing screen

When you first log in, you'll see the main landing screen with several key sections:

1. **Upload dataset** - Options to add new data to NimbusImage
2. **Recent datasets** - Shows your recently accessed datasets
3. **File navigator** - Browse your folders and files
4. **Action buttons** - Create folders, upload files, and more

{% hint style="info" %}
The file navigator shows your current location. Any datasets you upload will be placed in this current location unless specified otherwise.
{% endhint %}

## Uploading datasets

NimbusImage provides a unified "Create Dataset" dialog that offers both quick and advanced upload options. Before uploading, you'll need to specify where to store your dataset (Private, Public, or Team folder).

### Quick Upload

The Quick Upload option lets you:

* Simply drag and drop files directly
* Use default options for processing
* Go straight to the image viewer
* Have a collection automatically created with the same name

This is perfect for getting started quickly with minimal configuration.

### Advanced Upload

If you need more control over how your data is organized and processed, use Advanced Upload to:

* Customize variable assignments
* Configure tiling and compositing options
* Specify collection placement
* Adjust transcoding settings

<figure><img src="https://4239675806-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FX54NriBmLyFl6hdSGC9K%2Fuploads%2Fgit-blob-1b9357df241678348b68a16aa7f9714460246ece%2Fadvanced-upload.png?alt=media" alt=""><figcaption><p>The Advanced Import screen, where you can review the selected files, name the dataset, choose a location, and add more files or a whole folder before importing</p></figcaption></figure>

### Uploading a folder

You can upload an entire folder at once instead of selecting files individually:

* **Drag and drop a folder** onto the upload area. Every file inside is collected, including files in nested subfolders.
* **Click "Upload a folder"** (or "Select a folder instead") to open a folder picker.

All of the folder's files are flattened into the dataset — the subfolder structure itself isn't preserved — which matches how NimbusImage builds a multi-file dataset. Files are added in natural, numeric-aware name order, so image sequences like `frame1`, `frame2`, … `frame10` are ordered correctly.

## File organization

### Storage locations

NimbusImage provides specific locations for storing your datasets and files:

* **Private folder**: Only accessible to you
* **Public folder**: Accessible to everyone using the system
* **Team folder**: (NimbusImage.com specific) Shared only with members of your team

<div align="left"><figure><img src="https://4239675806-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FX54NriBmLyFl6hdSGC9K%2Fuploads%2Fgit-blob-662b6089f9f5f2b479a79bf9c985c4d91c136637%2Fprivate-public-folders.png?alt=media" alt="" width="260"><figcaption><p>Private and public folders</p></figcaption></figure></div>

{% hint style="info" %}
By default, Quick Upload will place your dataset in your Private folder. This ensures your data remains private until you choose to share it.
{% endhint %}

### Creating folders

To organize your datasets, you can create folders within these storage locations:

1. Navigate to where you want to create the folder
2. Click the "NEW FOLDER" button in the top right
3. Name your folder and click "Create"

## File operations

### Basic file actions

You can perform several operations on your files and datasets:

<div align="left"><figure><img src="https://4239675806-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FX54NriBmLyFl6hdSGC9K%2Fuploads%2Fgit-blob-988f6ba33f430331280830c828d6f032ceccbad9%2Ffile-action-menu.png?alt=media" alt="" width="335"><figcaption><p>Actions on files and datasets</p></figcaption></figure></div>

* **Move**: Relocate files to a different folder
* **Delete**: Remove files or datasets
* **Rename**: Change the name of a file or dataset
* **Browse**: For datasets, view the internal files (use with caution)

### Working with multiple files

<figure><img src="https://4239675806-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FX54NriBmLyFl6hdSGC9K%2Fuploads%2Fgit-blob-a1ca27ebade3d0ca5edaaf6c13bebb4aeb12d410%2Fmultiselect-files.png?alt=media" alt=""><figcaption></figcaption></figure>

To operate on multiple files at once:

1. Select the checkboxes next to the files
2. Click "ACTIONS"
3. Choose the operation you want to perform

### Individual file options

Each file or dataset has its own options menu (three dots) with specific actions:

* For regular files: Download, Move, Delete, etc.
* For datasets: Browse internal files (caution: these files are system files that generally should not be modified)

{% hint style="warning" %}
Dataset folders contain system files that NimbusImage uses to render and analyze your data. It's best not to directly modify these files unless you know exactly what you're doing.
{% endhint %}

## Sharing datasets and collections

NimbusImage provides flexible sharing options that allow you to share datasets and collections with specific users or make them publicly accessible to anyone.

### How to share with specific users

To share a dataset or collection with specific users:

1. Click the sharing icon next to the dataset or collection you want to share
2. Enter the email address of the recipient's NimbusImage account
3. Choose the access level (Read or Edit)
4. Click to confirm sharing

The sharing dialog shows a real-time table of all users who currently have access, their permission levels, and allows you to modify or remove access as needed.

### Access levels

When sharing, you can grant two types of access:

* **Read access**: The recipient can view the dataset and any annotations, but cannot make changes
* **Edit access**: The recipient can view and modify annotations and analysis

{% hint style="info" %}
Dataset owners always retain full access and cannot be removed from the access list.
{% endhint %}

### Making a dataset public

You can make a dataset publicly accessible so that **anyone with the link can view it, even without a NimbusImage account**. This is useful for sharing data with collaborators who don't have accounts, for publications, or for sharing with the broader community.

To make a dataset public:

1. **Open the dataset** in the viewer
2. **Click the Share button** (the `<` icon next to the dataset name) to open the Share Dataset dialog

<div align="left"><figure><img src="https://4239675806-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FX54NriBmLyFl6hdSGC9K%2Fuploads%2Fgit-blob-a19ee4c0f7068023138414868c5f4a3ad0d9fae7%2Fimage2.png?alt=media" alt="" width="350"><figcaption><p>The Share button next to the dataset name</p></figcaption></figure></div>

3. **Check the "Make Public" checkbox** — labeled "Make Public (read-only access for everyone)"

<div align="left"><figure><img src="https://4239675806-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FX54NriBmLyFl6hdSGC9K%2Fuploads%2Fgit-blob-ce56c74cd2e01080ceacef6b547b6566208a959e%2Fimage1.png?alt=media" alt="" width="500"><figcaption><p>The Share Dataset dialog with the Make Public option</p></figcaption></figure></div>

4. **Copy the URL** from your browser's address bar — this is the shareable link

To share the dataset, simply send this URL to anyone. When they open it, they will be able to view the dataset directly in the NimbusImage viewer without needing to log in or create an account.

{% hint style="info" %}
For a public dataset, the shareable link is the same URL you see when viewing the dataset (the datasetView route) — just copy the URL from your browser and send it. If you'd rather not make the dataset public, create a [share link](#share-links-and-embed-links) instead.
{% endhint %}

#### What public viewers can see and do

Public viewers have **read-only access** to the dataset. They can:

* View the image data, navigate through Z-stacks, positions, and channels
* See any existing annotations (objects, connections, and properties)
* View snapshots

Public viewers **cannot** modify annotations, run analysis tools, or change any settings. Only users you have explicitly granted Edit access can make changes.

{% hint style="warning" %}
Making a dataset public means anyone with the link can view it. You can revoke public access at any time by unchecking "Make Public" in the sharing dialog.
{% endhint %}

### Share links and embed links

A **share link** gives anyone who has the URL a read-only view of one dataset in one collection, without making the dataset public and without requiring the recipient to have a NimbusImage account or sign in. Every share link also has an **embed** version that shows only the image viewer, with no toolbar or side panels, so you can place the view on another web page.

How share links compare with the other ways of sharing:

* **Sharing with specific users** gives named NimbusImage accounts Read or Edit access, and the dataset appears in their file navigator.
* **Making a dataset public** opens the dataset (and its collections) to everyone, read-only.
* **A share link** opens a single view of the dataset to whoever has that particular link, read-only. You can give each link an expiry date and revoke it at any time without affecting anyone else's access.

#### Creating a share link

Only the dataset's owner (or another user with admin access to it) sees the **Share links** section.

1. **Open the Share Dataset dialog** for the dataset (the Share button next to the dataset name in the viewer).
2. **Select exactly one collection** in "Select collections to share along with dataset". A link always opens the dataset in a single collection, with that collection's layers and settings, so the **Create** button is disabled until exactly one collection is checked.
3. In the **Share links** section, optionally enter a **Label** (for example, "Reviewer 2" or "Lab website") so you can tell your links apart later.
4. Choose when the link **Expires**: **7 days**, **30 days** (the default), **90 days**, or **Never**.
5. Click **Create**.

The new link appears in a green box, along with its **Embed (no toolbar)** version. Use the copy button to copy the link.

{% hint style="warning" %}
Copy the link (and the embed link, if you need it) right away — it is **shown only once**. If you lose it, create a new link and revoke the old one.
{% endhint %}

#### What recipients can and can't do

Someone who opens a share link sees the dataset in the NimbusImage viewer, with no sign-in required. They can:

* View the image data and navigate through Z-slices, time points, XY positions, and channels
* See the existing annotations (objects, connections, and properties)

They **cannot**:

* Modify annotations, run analysis tools, or change any settings — the link is read-only
* Download the underlying image files or export data through the link
* See any of your other datasets — the link opens only the one dataset and collection it was created for
* Create share links of their own

If the link has expired or been revoked, the recipient sees a "This link does not work" message instead of the dataset.

{% hint style="info" %}
If the recipient is already signed in to NimbusImage in the same browser, opening a share link does not sign them out — their own session is restored when they leave the shared view.
{% endhint %}

#### Embedding a view on another web page

The **Embed (no toolbar)** link shows only the image canvas — the toolbar and side panels are hidden — which makes it suitable for placing a live, explorable view of your data on a lab website, a project page, or an online paper supplement. To embed it, use the embed link as the source of an `<iframe>` on your page, for example:

```html
<iframe src="PASTE-YOUR-EMBED-LINK-HERE" width="800" height="600"></iframe>
```

The embed link follows the same rules as the share link it came from: it is read-only, it expires when the share link expires, and revoking the share link also disables the embed.

#### Managing and revoking share links

The **Share links** section of the Share Dataset dialog lists the dataset's existing links with their **Label**, **Collection**, **Created** date, and **Expires** date ("never" for links without an expiry; expired links are marked "(expired)"). The link URLs themselves are not shown again in this list.

To disable a link, click **Revoke** next to it. Revoking takes effect immediately: the link is removed from the list, and both the share link and its embed version stop working for everyone who has them. Revoking one link does not affect any other links or any users you've shared the dataset with directly.

Deleting a dataset automatically revokes all of its share links.

{% hint style="warning" %}
Anyone who has a share link can view the dataset, so treat the link like a password: only send it to people you intend to see the data, prefer an expiry date over "Never" when you only need temporary access, use labels so you know who each link was for, and revoke links you no longer need. Remember that anything you embed on a public web page can be viewed by every visitor to that page.
{% endhint %}

### Important considerations

{% hint style="warning" %}
To share a dataset, you must also share its parent collection so the recipient can view it properly. Without sharing the parent collection, the recipient won't be able to access the shared dataset.
{% endhint %}

### What happens when you share

Once you share a dataset or collection:

* The shared content automatically appears in the recipient's file navigator
* Any collaborative changes remain visible across all authorized users
* You can revoke access at any time through the sharing settings
* For public datasets, anyone with the link can view the data immediately

{% hint style="info" %}
Sharing is a powerful way to collaborate on analysis while maintaining control over who can access and modify your data.
{% endhint %}

## Team collaboration (NimbusImage.com only)

If you're using NimbusImage.com and are part of a team, you can access team-specific storage:

1. Navigate to the top level (globe icon)
2. Click the "Collections" icon
3. Select your team name
4. Upload or create datasets in this location to share only with team members

<div align="left"><figure><img src="https://4239675806-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FX54NriBmLyFl6hdSGC9K%2Fuploads%2F9xcXrspgaf0YZNjaECnq%2Fimage.png?alt=media&amp;token=8083eb77-2c2d-4901-9e0f-11510117695e" alt="" width="282"><figcaption><p>Selected items actions menu</p></figcaption></figure></div>

<div align="left"><figure><img src="https://4239675806-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FX54NriBmLyFl6hdSGC9K%2Fuploads%2Fgit-blob-988f6ba33f430331280830c828d6f032ceccbad9%2Ffile-action-menu.png?alt=media" alt="" width="128"><figcaption><p>File action menu</p></figcaption></figure></div>

{% hint style="info" %}
Team folders provide a convenient way to collaborate on datasets while keeping them separate from your personal files and fully public content.
{% endhint %}

## Best practices for file management

* **Use meaningful names** for your datasets and collections
* **Create folders** to organize related datasets
* **Keep the file structure simple** to make navigation easier
* **Use private folders** for work in progress
* **Move to team folders** when ready to collaborate

By effectively using NimbusImage's file management system, you can keep your datasets organized and easily accessible for analysis and collaboration.


# Publishing to Zenodo

Archive an entire project—image files, annotations, and metadata—to Zenodo with a permanent DOI to satisfy data sharing and archiving requirements.

[Zenodo](https://zenodo.org/) is a free, open repository operated by CERN for archiving research data and minting permanent [DOIs](https://en.wikipedia.org/wiki/Digital_object_identifier). NimbusImage can upload an entire [project](/documentation/images-datasets-and-collections#projects)—the original image files, all of your annotations, and the project metadata—directly to Zenodo. This gives you a single, citable, permanently archived record of your imaging data so that you can comply with the data sharing and archiving policies required by journals and funding agencies.

Because NimbusImage uploads everything (raw images plus the analysis you layered on top), the Zenodo record is a complete, reproducible snapshot of your work rather than just a folder of files.

{% hint style="info" %}
Publishing to Zenodo is a **project-level** feature. Before you can publish, you'll need to gather your datasets and collections into a project and fill in its publication metadata. See [Projects](/documentation/images-datasets-and-collections#projects).
{% endhint %}

## What gets uploaded

When you upload a project, NimbusImage assembles a Zenodo deposition containing:

* **The original image files** for every dataset, in their original format (OME-TIFF, `.nd2`, etc.)
* **Annotation data** for each dataset, exported as JSON (the same format produced by [Importing and exporting objects and properties](/documentation/analyzing-image-data-with-objects-connections-and-properties/importing-and-exporting-objects-and-properties))
* **Collection configurations**, so the viewer and analysis setup can be reconstructed
* **A manifest** describing the structure and metadata of the whole project

## Step 1: Create a Zenodo API token

NimbusImage uploads on your behalf using a personal access token from your Zenodo account.

1. Log in to [Zenodo](https://zenodo.org/) (or [Zenodo Sandbox](https://sandbox.zenodo.org/) if you are testing—see the hint below).
2. Go to **Applications** in your account settings, and under **Personal access tokens** click **+ New Token**.
3. Give the token a name (for example, *NimbusImage*).
4. Grant the scopes `deposit:write`, `deposit:actions`, and `user:email` (or simply select **all**).
5. Click **Create**, then copy the token. **Zenodo only shows the token once**, so save a copy somewhere safe.

## Step 2: Configure the token in NimbusImage

1. Open your project and find the **Zenodo Publication** card on the project page.
2. Click **Configure Zenodo Token**.
3. Paste your token into the dialog and click **Save**. You can change or remove the token at any time from the same card.

Your token is stored encrypted on the NimbusImage server—it is never exposed in the browser.

{% hint style="info" %}
**Testing first?** Enable **Use Zenodo Sandbox** in the token dialog to practice the full workflow against [sandbox.zenodo.org](https://sandbox.zenodo.org/). The sandbox issues test-only DOIs and its data may be wiped periodically, so it's the safe place to rehearse before publishing for real. Note that the sandbox uses a separate account and a separate token from production Zenodo.
{% endhint %}

## Step 3: Upload the project

Once a token is configured, the **Zenodo Publication** card shows a green confirmation and an **Upload to Zenodo** button.

<figure><img src="https://4239675806-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FX54NriBmLyFl6hdSGC9K%2Fuploads%2Fgit-blob-48545296df7fe358fc8c22e5add29213b7884955%2Fzenodo-publication-card.png?alt=media" alt="The Zenodo Publication card showing a configured token, a Change Token button, and the Upload to Zenodo button"><figcaption></figcaption></figure>

1. Make sure your project's publication metadata is filled in—**title, description, license, keywords, and authors**. NimbusImage maps these fields onto the Zenodo record.
2. On the **Zenodo Publication** card, click **Upload to Zenodo**.
3. A progress bar tracks the upload. Large projects can take several minutes; you can navigate away and come back, and the upload will continue in the background.

When the upload finishes, your project has a **draft** deposition on Zenodo. The card shows a link to open and review the draft on Zenodo's website.

{% hint style="info" %}
Zenodo limits a single record to **50 GB** and **100 files**. If your project is larger, you can request a quota increase (up to 200 GB) directly from Zenodo.
{% endhint %}

## Step 4: Review and publish

1. Click the link on the card to open the draft on Zenodo and confirm everything looks correct.
2. Back in NimbusImage, click **Publish (Mint DOI)** and confirm.

{% hint style="warning" %}
**Publishing is irreversible.** It mints a permanent DOI, and the published record can no longer be deleted—you can only add new versions. Review the draft carefully before publishing.
{% endhint %}

Once published, the card displays the project's DOI. This is the identifier you cite in your paper and report to your funding agency.

If you uploaded a draft but decide not to publish it, click **Discard Draft** to remove it.

## Updating a published project

If your data or analysis changes after publishing, you don't start over. Open the project and click **Upload New Version**. NimbusImage uploads the current state of the project as a new version of the existing Zenodo record. Each version gets its own version-specific DOI, while a single *concept DOI* continues to point at the latest version—so citations remain valid as your work evolves.


# Viewing your image dataset

Once your images are loaded into NimbusImage, you can interact with it through the viewer. The viewer allows for easy navigation and flexible visualization.

**Key features include:**

* **Easy to use navigation and contrast settings**
* **"Unrolling" of variables** to show montages
* **Overview "minimap".** Drag around the square to navigate; shift-click-drag to directly go to a location.

  <figure><img src="https://4239675806-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FX54NriBmLyFl6hdSGC9K%2Fuploads%2Fgit-blob-d1a8352622bc0d4ed72745ff19f7b399d6c9974f%2Fviewer-minimap.png?alt=media" alt="" width="156"><figcaption></figcaption></figure>
* **Dynamic scale bar.** Click the scale bar to adjust pixel sizes and other settings.
* **Zoom in and out of large images.** Scroll wheel zooms, just like Google Maps.
* **Flexible layer settings.** See below for more information about layers.

## Command palette

Press **⌘K** (Mac) or **Ctrl+K** (Windows/Linux), or click the magnifier icon in the app bar, to open a search box over almost everything you can do in the viewer. Start typing and press Enter to run the highlighted command. Commands include:

* **Use a tool**: "Use tool: Nuclei" activates an existing tool, and shows its hotkey if it has one.
* **Add a tool**: "Add tool: Gaussian Blur…" opens the Add-new-tool dialog with that tool pre-selected. Nothing is created until you confirm.
* **Open or close panels**: "Open Filters", "Close Layers".
* **Toggle layers**: "Toggle layer: DAPI", with its number key shown.
* **Jump to a snapshot**: "Go to snapshot: Fig 2".
* **Color by a property**: "Color by: Area" opens the color-by-property dialog with that property selected.
* **Actions and help**: Measure, Undo/Redo, data import/export, 3D view, upload, the AI panel, documentation, and guided tours.

Search is forgiving: it matches initials, word starts, partial spellings, and common synonyms, so you don't need to know a command's exact name. With an empty search box, the palette shows your recently used commands first. The list updates automatically — a newly available analysis tool appears without reloading the page.

## Layers

Understanding layers can help unlock more flexibility in how you visualize your data. Generally, layers are most commonly thought of as mapping to channels, but in NimbusImage, they are capable of more. For instance, you can make multiple layers that draw from the same channel, but show different times in different colors, which can be very helpful for time lapse analysis.

<figure><img src="https://4239675806-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FX54NriBmLyFl6hdSGC9K%2Fuploads%2FTxutTsBtUpf1xdxigml4%2Fimage.png?alt=media&amp;token=9c9e4f7e-aa22-4aea-9c37-205e1cfbe0a6" alt=""><figcaption><p>Current time in green, next time in red so that you can see the shift</p></figcaption></figure>

### Layer grouping

Another useful feature is layer grouping, which allows you to put together multiple layers into a single grouped layer. For instance, if you have a couple fluorescence channels that you always want to show together, you can group them.

To create a group, click **"Make layer group…"** at the top of the Layers panel, check the layers you want to combine, and click **Create group**:

<figure><img src="https://4239675806-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FX54NriBmLyFl6hdSGC9K%2Fuploads%2Fgit-blob-16b29af106f50c1c382afd4e211dfbf9f7e8128b%2Fviewer-layer-grouping.png?alt=media" alt=""><figcaption></figcaption></figure>

You can group any number of layers together, and ungroup them later from the group's menu.

## Label display options

NimbusImage allows you to customize how labels are displayed in your image viewer. You can toggle between:

* **Text labels**: Display descriptive labels such as "Well A1", "Position 3", etc.
* **Numeric identifiers**: Display simple numeric IDs for a cleaner view

This toggle helps you choose between more informative labels and a less cluttered display depending on your needs.

## Custom channel color preferences

You can set default channel color preferences in your user profile. These custom color settings:

* Automatically apply to new datasets you create or upload
* Can be overridden on a per-dataset basis if you want different colors for a specific dataset
* Help maintain consistency across your analyses

This feature is especially useful if you work with the same types of channels regularly and want them to always appear in your preferred colors.

## 3D visualization

In addition to the standard 2D viewer, NimbusImage can render your dataset as an interactive 3D volume directly in your browser. This is useful for exploring Z-stacks and for viewing time lapses as volumes. Toggle between the 2D and 3D views using the control in the top app bar.

<figure><img src="https://4239675806-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FX54NriBmLyFl6hdSGC9K%2Fuploads%2Fgit-blob-4d647466afd51c1df771ba4310f5e840294cc460%2F3d-volume-visualization.png?alt=media" alt=""><figcaption><p>A time lapse rendered in 3D with Time mapped to the depth axis: each green streak is a nucleus tracing its path (a "worldline") over time. The scaled bounding box and 3D controls run along the edges.</p></figcaption></figure>

### Volume rendering

Each layer is volume-rendered using the same color and contrast settings you use in the 2D viewer. Two blend modes are available:

* **Composite**: Blends all channels together, so overlapping structures appear semi-transparent.
* **Maximum Intensity Projection (MIP)**: Shows the brightest value along each viewing ray, which is useful for emphasizing bright puncta or fibers.

The volume respects anisotropic voxel spacing (the physical Z-step relative to the XY pixel size), so structures keep their true proportions.

{% hint style="info" %}
Very large images are automatically downsampled to stay within your browser's memory and GPU limits. This affects only the 3D preview, not your underlying data.
{% endhint %}

### Choosing the depth axis: Z or Time

You can map either **Z** or **Time** to the depth axis of the volume:

* Use **Z** to view a conventional Z-stack as a volume.
* Use **Time** to stack the frames of a time lapse into a volume, so that moving objects trace out continuous paths ("worldlines") through the third axis. A small dialog lets you set the spacing between time points.

### Segmentations in 3D

Polygon annotations are rendered as 3D objects within the volume, colored either by tag or by a computed property, and they honor your current annotation filters. Rendering options include:

* **Lofted surfaces**: When enabled (the default), the outlines of the same object on adjacent slices are joined into smooth, shaded surfaces, so a segmented cell reads as a continuous 3D shape rather than a stack of slabs. A configurable overlap threshold controls how much two outlines must overlap to be joined.
* **Points and lines**: Point annotations appear as small spheres, and line annotations as vertical ribbons.
* **Opacity**: An opacity slider adjusts how transparent the segmentations are, so you can see the underlying volume data through them.

### Orientation aids

* An **XYZ gizmo** in the corner shows the current orientation.
* An optional **bounding box** draws a scaled cage around the volume with tick labels in physical units, making it easier to judge sizes and distances.

## Line scan intensity profiles

The line scan tool lets you draw a line across your image and immediately see a plot of raw pixel intensity along that line, without creating any stored annotations. This is handy for inspecting signal profiles, comparing channels, checking for colocalization, or locating edges and peaks.

<figure><img src="https://4239675806-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FX54NriBmLyFl6hdSGC9K%2Fuploads%2Fgit-blob-d246dc1eb093c5446c451d353ad5c8a417f5250c%2Fline-scan-panel.png?alt=media" alt=""><figcaption><p>A freehand line scan across several cells, with the live intensity profile for each channel shown at the bottom right</p></figcaption></figure>

### How to use

1. **Add a line scan tool** from the tool menu. Two variants are available:
   * **Freehand**: Drag to draw a freeform line; the scan completes when you release the mouse.
   * **Segment**: Click once to start and once to end a straight line segment.
2. **Draw across the feature** you want to examine. A panel appears at the bottom right of the viewer showing the intensity profile.
3. The profile updates live as you draw, with one colored trace per channel (matching each layer's color) and a legend. Hover over the plot to read the intensity at a given position.
4. **Close the panel** to dismiss and reset the scan.

### Options

* **Channel selection**: When creating the tool, you can optionally pick a single channel to plot. The panel can then toggle between showing all visible channels and just the selected one.

### Technical details

Intensities are read as raw, unstyled pixel values from the image tiles (not the contrast-adjusted display values) and sampled along the line. The plotted values therefore reflect the true underlying data, making them suitable for quantitative comparison.


# Analyzing image data with objects, connections, and properties

## Overview

Analysis in NimbusImage is a little bit different than in other tools. The key concepts are ***Objects***, ***Connections***, and ***Properties***. Throughout, the key organizational system is ***tagging***, allowing flexible organization and more intuitive analysis patterns.

**Objects** are essentially annotations of items of interest within your dataset. Examples are:

1. Point objects representing spots of a particular RNA in the cytoplasm.
2. "Blob" objects representing the outline of a cell.
3. Line objects representing the basement membrane.

**Connections** between objects allow you to build relationships between objects. For instance, each RNA could be connected to a cell, meaning that that RNA is within that cell. Or a nucleolus object could be connected to a nucleus, or to a nearby paraspeckle. Connections allow you to document and analyze specific relationships, and interact with those relationships visually to get the analysis you want.

**Properties** are measurements you want to make on objects and connections for the final analysis of your data. For instance, average fluorescence intensity within the nucleus. Or distance from the speckle to the nuclear periphery. Or the length of a filament. Or the number of spots in the cytoplasm.

{% hint style="info" %}
**Tags are critical for organizing your analysis.** Objects should all have tags, which allow you to label, say, cells vs. nuclei, or spots for GAPDH mRNA or EEF2 mRNA. It helps you know what things represent.
{% endhint %}

Learn more about these concepts in the following sections:

* [Tools for making objects](/documentation/analyzing-image-data-with-objects-connections-and-properties/tools-for-making-objects)
* [Tools for connecting objects](/documentation/analyzing-image-data-with-objects-connections-and-properties/tools-for-connecting-objects)
* [Measuring object properties](/documentation/analyzing-image-data-with-objects-connections-and-properties/measuring-object-properties)

NimbusImage is designed for scaling, so these tools will work for many thousands of objects.

## Example flows

***The typical workflow in NimbusImage is to find objects in your images, either manually or using several automated tools and quantify properties of those objects.*** Throughout, NimbusImage is designed to allow you to interact with your objects. You can manually add cells, remove incorrectly segmented nuclei, connect extra spots to a cell that got missed, and run your analysis on this corrected data. It is this flexibility that allows you to easily get numbers that accurately reflect your data.

Here's a couple examples of a workflow to make these concepts more concrete.

### Measure cell areas:

1. Circle a bunch of cells, tag them with <kbd><mark style="background-color:orange;">fibroblast<mark style="background-color:orange;"></kbd>.
2. Create a "metrics" property and compute it.
3. List the areas for each.

### Count dots in each cell

1. Circle cells ( <kbd><mark style="background-color:orange;">fibroblast<mark style="background-color:orange;"></kbd>) and click on dots ( <kbd><mark style="background-color:orange;">UBC mRNA<mark style="background-color:orange;"></kbd>)
   1. More likely, you will use automated tools in NimbusImage to find cells and dots.
2. Use a "Connect to nearest" tool to automatically connect each dot to a cell.
3. Create a property to count the number of UBC mRNA spots connected to fibroblasts.
4. List the point count for each cell.

### Track cells over time

1. Find cells ( <kbd><mark style="background-color:orange;">HEK<mark style="background-color:orange;"></kbd>). NimbusImage has many automated tools for time lapse analysis specifically.
2. Use a "Connect timelapse" tool to automatically connect cells over time.
3. Use "Time lapse mode" to review and correct tracks.
4. Create a property to store all the tree information.
5. Export the tree information in a CSV for downstream analysis in Python/R.


# Tools for making objects

The way to create and edit objects is through the use of **tools**. Tools are defined by the user and are customized (via tags) to flexible organization of the results without a lot of clicking. There are two general categories of tools, manual and automated.

<figure><img src="https://4239675806-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FX54NriBmLyFl6hdSGC9K%2Fuploads%2Fgit-blob-05f8ca2795e937f22993dc98e3640a7d12b2720c%2Fadd-tool-dialog.png?alt=media" alt=""><figcaption><p>The "Add new tool" dialog, where tools are organized by category (manual object tools, Segment Anything, connections, line scans, and more)</p></figcaption></figure>

**Manual tools.** Manual tools are often based on a primitive type, like a point, line, or blob, and is customized with tags and other features. For instance, you might make a tool for circling cells in your image. You would choose a manual blob creation tool, name it "Nucleus" and add the tag \[nucleus]. You could also add a hotkey. That tool gets added to your interface and you can use it to circle cells at any time.

**Automated tools.** NimbusImage has been designed to allow the use of automated algorithms for finding things like cells and points in your images, often using the latest deep learning methods. For instance, you can set up an automated tool to use Cellpose to find cells within your images. These tools often have specific parameters that you can use to obtain optimal results.

## AI-suggested tools

When you open a freshly created collection that doesn't have any tools yet, NimbusImage can suggest a starting set of tools for you. It looks at your image and its channel names and proposes relevant tools — for example, Cellpose-SAM for nuclei, a manual blob tool for cells, or Piscis for spots — in a floating panel. Review the suggestions and click to add the ones you want. You can always add, remove, or reconfigure tools yourself afterward.

<figure><img src="https://4239675806-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FX54NriBmLyFl6hdSGC9K%2Fuploads%2Fgit-blob-a2fc1f8184aafe3348f9aaf276f8214c5c8246a8%2Fai-suggested-tools.png?alt=media" alt=""><figcaption><p>The "Suggested tools" panel proposes tools based on your image — here, H&#x26;E Deconvolution and a Blob tool for a histology slide</p></figcaption></figure>

## Organizing your tools

Hover over a tool in the Tools palette to reveal three controls:

* **Pin**: Moves the tool into a **Pinned** section at the top of the palette, above *Annotation tools* and *Analysis tools*. Click again to unpin it. Pin the handful of tools you use most so they're always within reach.
* **Edit**: Opens the tool's settings.
* **Drag grip**: Drag to reorder tools within their section. Each section is ordered independently, so a tool can't be dragged into a different section.

Pins and ordering are saved with the collection's configuration, so they apply to every dataset in the collection and for everyone who opens it — just like the tools themselves.

When an automated tool's settings menu is open, clicking anywhere outside it (or pressing Escape) closes it. Panning the image does not close the menu, and clicking a different automated tool switches the menu to that tool.

{% hint style="info" %}
You can also find and activate any tool — or start adding a new one — from the [command palette](/documentation/viewing-your-data#command-palette) with ⌘K / Ctrl+K.
{% endhint %}

## Manual blob/point/line/rectangle tools

Manual blob/point/line/rectangle tools are the most basic tools in NimbusImage. Set it up by clicking on "Add New Tool" and choosing "Manual Blob", "Manual Point", "Manual Line", or "Manual Rectangle". Set the tag, and then you can use it to create objects in your image. You can use the same tag for multiple tools. For instance, you can use an automated cell finding tool and then add more cells using the manual tool, and they will be all treated the same for downstream analysis.

## Segment-Anything semi-automated object finding, AKA "God Mode"

Segment-Anything is a new method for finding objects in images. It is a semi-automated tool that allows you to find objects in your images by either clicking on them or drawing a bounding box around them. To use it, click on "Add New Tool" and choose "ViT-B" under "Segment Anything Model".

{% hint style="info" %}
If you use Segment Anything Model (SAM) in your research, please cite the [relevant papers](/citations#segment-anything-model-sam).
{% endhint %}

Options include:

* **Simplification**: The simplification parameter controls how much the segmentation is smoothed out. Smoother annotations are faster to run computations on and navigate.
* **Turbo mode**: The turbo mode allows you to rapidly segment without having to manually "accept" each segment.

Segment Anything works by first encoding the image to enable it to find the objects. This will take a few seconds to compute when you move to a new area. Every time you move the image, you will need to re-encode the image; if you want to avoid this, click the "lock" icon at the bottom left of the image to prevent the image from moving around.

Once encoded, just move your mouse over the image and it will outline what the object would be if you were to shift-click. Shift-click to make the object! Sometimes, it will give you better results if you define a box around the object you want to find. Just shift-click and drag to make a box, and it will segment that region.

{% hint style="info" %}
Segment Anything "sees" what you see in the image. Adjust the contrast and zoom to make objects visible and of a size that is around 5-15% of the size of the image for best results.
{% endhint %}

## Segment similar objects (experimental)

The "Segment similar objects" tool lets you mark a few example objects and then automatically find and segment other, similar objects across the current view. It's designed for cases where objects share a consistent appearance but would be tedious to click one by one.

{% hint style="warning" %}
This tool is **experimental** and currently requires **Google Chrome with WebGPU** support. It operates on the current viewport only.
{% endhint %}

<figure><img src="https://4239675806-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FX54NriBmLyFl6hdSGC9K%2Fuploads%2Fgit-blob-5b4bd093fa04534d4b1f616e31f4c0e0579c6bcb%2Fsegment-similar-objects.png?alt=media" alt=""><figcaption><p>The Segment similar objects panel, with controls for how examples are selected and how matches are found</p></figcaption></figure>

### How to use

1. **Add the "Segment similar objects" tool** from the tool menu. A control panel appears at the bottom right of the viewer.
2. **Choose how to select examples** under **Select by**:
   * **Click (SAM)**: Shift-click an example object and Segment Anything outlines it.
   * **Box (SAM)**: Shift-drag a box around an example object.
   * **Circle**: Circle an example object by hand.
3. **Choose how to find matches** under **Find with**:
   * **SAM**: Scores candidate regions by how similar they are to your examples in the Segment Anything model's feature space.
   * **Classifier**: Trains a lightweight random-forest classifier, in your browser, on the example objects.
   * **SAM→Classifier**: Runs SAM first, then trains the classifier on everything SAM found, combining both approaches.
4. **Mark a few examples.** Shift-click (or shift-drag/circle) the objects you want to match; shift-right-click marks background to exclude. The panel tracks how many examples and putative objects you currently have.
5. **Review the putative results.** Matches appear as outlines across the current view.
6. **Accept** to commit the results in bulk. Accepted objects are deduplicated against any annotations that already exist.

{% hint style="info" %}
Because both propagation methods draw on the same set of examples, you can mix and match how you select examples with how they're applied — for instance, select with SAM clicks but propagate with the classifier.
{% endhint %}

Plain dragging pans the image as usual; hold Shift to select, matching the behavior of the Segment Anything tool.

## Edit objects

You can edit objects by using the Annotation Edits -> Blob edit tool. With that tool, you can just drag on your object and it will "slice" it into a new object. Whatever line you draw will define a new outline for that segment of the object. That allows you to both remove and add areas to the objects without having to use separate brush and eraser tools.

## Automated object finding and connection

We have a number of automated tools for finding and connecting objects (cells, spots, etc.) that take advantage of the latest deep learning methods.

### Cellpose-SAM for versatile cell segmentation

Cellpose-SAM combines the power of Cellpose with the Segment Anything Model (SAM) to offer a versatile approach to cell segmentation. It simplifies the input process by allowing users to specify up to three input channels, making it adaptable for various segmentation scenarios, from nuclei-only to full RGB images.

{% hint style="info" %}
If you use Cellpose-SAM in your research, please ensure you cite the relevant papers for both [Cellpose](/citations#cellpose) and the [Segment Anything Model (SAM)](/citations#segment-anything-model-sam).
{% endhint %}

#### How Cellpose-SAM works

Cellpose-SAM processes images by taking input from up to three configurable channel "slots":

* **Single Channel Input:**
  * To segment nuclei, provide the nuclear stain channel to Slot 1.
  * To segment cell boundaries, provide the cytoplasm/membrane channel to Slot 1.
* **Dual Channel Input:** For improved cell boundary segmentation, you can provide the cytoplasm/membrane channel to Slot 1 and the nuclear channel to Slot 2.
* **Triple Channel Input (RGB):** To segment cells in an RGB image, map the Red, Green, and Blue channels to Slots 1, 2, and 3 respectively.

The model then uses this information to perform segmentation.

#### Available models

Currently, the primary model available is:

* **cellpose-sam**: This is the base model and should be suitable for most general-purpose cell segmentation tasks.

#### Key parameters

* **Model**: Selects the segmentation model. Defaults to `cellpose-sam`.
* **Channel for Slot 1**: **Required.** The primary channel for segmentation. Select the source channel for the model's first input. If multiple are selected, only the first will be used.
* **Channel for Slot 2**: (Optional) The secondary channel, often used for nuclear information when segmenting cytoplasm. If multiple are selected, only the first will be used.
* **Channel for Slot 3**: (Optional) The tertiary channel, typically used for the blue channel in RGB images. If multiple are selected, only the first will be used.
* **Diameter**: The object size the image is rescaled to before segmentation (10-200 pixels, default 30). **Leave this at 30 for almost all images** — that is the identity value, meaning the image is segmented at its native resolution, which is how Cellpose-SAM was trained. The image is resized by `30 / Diameter`, so a smaller value enlarges the image and a larger one shrinks it. Change it only if your objects are far outside the size range the model handles well.
* **Smoothing**: Controls the simplification of the generated polygons (0-10, default 0.7). Higher values create smoother outlines. A value of 0.7 is a good default.
* **Padding**: Expands (positive values) or contracts (negative values) the final polygons in pixels (-20 to 20 pixels, default 0).
* **Tile Size**: The size of image tiles (in pixels) for processing (0-2048, default 1024). Larger tiles require more memory.
* **Tile Overlap**: The fractional overlap between adjacent tiles (0-1, default 0.1). Ensure this overlap is larger than your largest cells (e.g., for 1024px tiles with 0.1 overlap, objects should be <102px).

#### Best practices

1. **Channel Selection**:
   * For nuclei: Use your nuclear stain in Slot 1.
   * For cell boundaries: Use your cytoplasm/membrane channel in Slot 1. Consider adding a nuclear channel to Slot 2 for refinement.
   * For RGB images: Map R, G, B to Slots 1, 2, and 3.
2. **Diameter Setting**: Start with a diameter around 30 pixels. Adjust if necessary, but exact precision is less critical than with standard Cellpose.
3. **Review Results**: Always visually inspect segmentation and adjust parameters if needed.
4. **Post-process**: Utilize NimbusImage's manual editing tools to correct any segmentation errors.

### Cellpose for automated cell finding

Cellpose is a deep learning-based tool for automatically finding and segmenting cells in microscopy images. It has been trained on a large collection of diverse cell images, making it highly effective for many cell types without requiring additional training. Cellpose is a powerful starting point for cell segmentation, allowing you to quickly generate cell outlines that can be refined with NimbusImage's interactive tools.

{% hint style="info" %}
If you use Cellpose in your research, please cite the [relevant papers](/citations#cellpose).
{% endhint %}

{% hint style="info" %}
Note that NimbusImage also allows for retraining of the Cellpose models to (often greatly) enhance performance for your specific dataset.
{% endhint %}

#### Available models

NimbusImage includes several pre-trained Cellpose models:

* **cyto3**: The most accurate for general cell segmentation (recommended default)
* **cyto2**: An older model for cell segmentation
* **cyto**: The original cell segmentation model
* **nuclei**: Specifically trained for nuclear segmentation

#### Key parameters

* **Primary Channel**: The main channel to use for segmentation
  * For cytoplasm segmentation (Cyto3): use your cytoplasm/membrane channel
  * For nuclear segmentation (Nuclei): use your nuclear stain channel (e.g., DAPI)
* **Secondary Channel** (optional): A secondary channel to improve segmentation
  * For cytoplasm segmentation (Cyto3): you can add your nuclear channel
  * For nuclear segmentation (Nuclei): leave this blank (adding a secondary channel may decrease performance)
* **Diameter**: The approximate diameter of cells in pixels
  * **This parameter is crucial for good results**
  * Set this as close as possible to the actual cell diameter in your images
* **Smoothing**: Controls how much the cell outlines are simplified (0-10)
  * Higher values create smoother outlines with fewer vertices
  * Default of 0.7 works well for most images
  * Increase for smoother boundaries, decrease for more precise outlines
  * Very precise outlines can decrease performance, especially if you have a large number of objects
* **Padding**: Expand or contract the final cell outlines in pixels
  * Positive values expand the outlines (useful if cells appear too small)
  * Negative values contract the outlines (useful if segmentation is too generous)
  * Default of 0 means no adjustment

#### Advanced parameters for large images

* **Tile Size**: The size of each image tile in pixels
  * Default of 1024 works well for most images
  * Decrease if you encounter errors
  * Larger tiles will require more memory and can cause Cellpose to crash
* **Tile Overlap**: The fraction of overlap between adjacent tiles
  * Default of 0.1 (10% overlap) works well in most cases
  * **Important**: Make sure your overlap is larger than your largest cells
  * For example, for 1024 pixel tiles with 0.1 overlap, the largest cell should be less than 102 pixels across

#### Best practices

1. **Start with the right model**: Use cyto3 for general cell segmentation or nuclei for nuclear segmentation, or use your own custom retrained model
2. **Set the diameter carefully**: This is the most important parameter for accurate results
3. **Check results visually**: Always inspect the segmentation and refine parameters if needed
4. **Use the secondary channel** when segmenting cytoplasm if you have a good nuclear stain
5. **Post-process as needed**: Use NimbusImage's manual editing tools to correct any segmentation errors

### Cellpose Training

(Currently for Cellpose 3.0 only; Cellpose-SAM training coming soon!) NimbusImage offers the ability to train custom Cellpose models directly within the platform using your own annotated data. This feature allows you to create specialized segmentation models tailored to your specific cell types or imaging conditions. Custom models will often provide greatly improved performance for your specific dataset, even if your cells look pretty "normal", and especially if they don't!

#### Training data preparation

To train a custom model, you'll need:

1. Representative images with cells you want to segment
2. Accurate cell annotations (outlines) created manually or corrected from automated results
3. Optional: Defined regions of interest for training

#### Key parameters

* **Base Model**: The pre-trained model to use as a starting point
  * **cyto3**: Recommended for most cell types
  * **nuclei**: Use when training a nuclear segmentation model
  * **Custom models**: Previously trained models will also appear here
* **Nuclear Model?**: Check this box if you're training a model for nuclear segmentation
  * When checked, the model will be optimized for nuclear detection
* **Output Model Name**: Name for your custom model
  * This model will be saved and appear in the Cellpose worker's model list
* **Primary Channel**: The main channel for segmentation
  * For cytoplasm models: use your cytoplasm/membrane channel
  * For nuclear models: use your nuclear stain channel
* **Secondary Channel**: The secondary channel to improve segmentation
  * For cytoplasm models: your nuclear channel
  * For nuclear models: leave blank or set to -1
* **Training Tag**: The tag applied to annotated cells used for training
  * All cells with this tag will be used to train the model
  * Use this to select high-quality annotations
* **Training Region**: Optional tag (recommended) to define specific regions for training
  * If selected, only annotations within these regions will be used
  * Useful for limiting training to representative areas of your image

#### Training parameters

Unless you have a specific reason to change these, leave them at the default values.

* **Learning Rate**: Controls how quickly the model adapts during training
  * Default: 0.01
  * Lower values (0.001) create more stable but slower training
  * Higher values can speed up training but might decrease stability
* **Epochs**: Number of training iterations
  * Default: 1000
  * More epochs generally improve results but take longer
  * Consider increasing for complex cell types
* **Weight Decay**: Regularization parameter to prevent overfitting
  * Default: 0.0001
  * Higher values create simpler models that may generalize better

#### Training workflow

1. Create high-quality annotations of your cells
   * Tag these annotations with a consistent label (e.g., "training\_cells")
   * Ensure annotations are accurate and representative
   * **Don't forget that what you do NOT annotate will also be used for training!**
2. Optional: Define training regions
   * Create rectangles or polygons around areas with good examples
   * Tag these regions (e.g., "training\_region")
   * **Choosing specific regions can be very helpful in focusing the retraining on specific areas of your image**
3. Add a Cellpose Training tool from the toolset menu
   * Configure all parameters as described above
   * Run the training process
4. Use your custom model
   * After training completes, your model will appear in the Cellpose worker's model list
   * Select it when using the regular Cellpose tool for segmentation

#### Tips for successful training

1. **Provide diverse examples**: Include cells of different sizes, shapes, and intensities
2. **Quality over quantity**: A smaller set of perfect annotations is better than many poor ones. A few good images, carefully annotated, will usually do the trick.
3. **Choose representative regions**: Select areas with good imaging quality and typical cells. Be sure to include examples of cells that the default algorithm might have trouble with.
4. **Be patient**: Training can take several minutes to complete

#### Advanced usage

Your custom Cellpose models are saved in a `.cellpose` directory at the root of your Private or Public folder. You can:

* Manually add models trained offline to this directory
* Share models between team members by copying model files
* Use these models in the standard Cellpose Python package

The integration between NimbusImage and Cellpose makes it easy to create specialized models for your specific research needs without requiring deep learning expertise.

### Piscis for automated spot finding

Piscis is a deep learning-based tool for automatically finding and segmenting spots in microscopy images. It has been trained on a large collection of diverse spot images, making it highly effective for many spot types without requiring additional training. Piscis is a powerful starting point for spot segmentation, allowing you to quickly generate spot outlines that can be refined with NimbusImage's interactive tools. It can be retrained on your own data as well, which can often give you great results if the default models don't work well for your data.

{% hint style="info" %}
If you use Piscis in your research, please cite the [relevant paper](/citations#piscis).
{% endhint %}

> **Key tip**: If you're getting too many or too few spots, try different models first before adjusting other parameters. The built-in models vary in sensitivity, and selecting the right one is usually more effective than tweaking threshold values.

#### How Piscis works

Piscis uses a specialized neural network designed specifically for detecting small punctate structures in fluorescence microscopy images, such as:

* RNA molecules in FISH experiments
* Protein clusters
* Vesicles
* Small organelles
* Synaptic puncta

The model can work in both 2D (single slice) and 3D (Z-stack) modes, making it flexible for different experimental setups.

#### Key parameters

* **Model**: Select which pre-trained Piscis model to use
  * Different models have varying levels of sensitivity
  * Try several models if you're not getting optimal results
  * Custom trained models will also appear in this list
* **Mode**: Choose between "Current Z" or "Z-Stack"
  * **Current Z**: Process each Z-slice independently (2D mode)
  * **Z-Stack**: Process the entire Z-stack as a 3D volume (better for connecting spots across Z)
* **Scale**: Adjust for the size of spots (0-5)
  * Default value of 1 works well for most applications
  * Increase to detect larger spots
  * Decrease to detect smaller spots
  * Affects how the model interprets spot size relative to the training data
* **Threshold**: Confidence threshold for spot detection (0-9)
  * Default value of 1.0 works for most cases
  * Note that this parameter has a relatively minor effect compared to changing models
  * Higher values create stricter detection (fewer spots)
  * Lower values create more lenient detection (more spots)
* **Skip Frames Without**: Optional tag to skip processing frames
  * If specified, only process frames containing objects with the given tag
  * Useful for optimizing processing time by focusing on relevant frames

#### Advanced features

* **Batch processing**: Process multiple positions, Z-slices, or time points
  * Use the "Batch XY", "Batch Z", and "Batch Time" fields to specify ranges
  * Format example: "1-3, 5-8" processes positions 1, 2, 3, 5, 6, 7, 8
  * Enter `all` to process every available position, Z-slice, or time point, without having to know how many there are
  * Note: If using "Z-Stack" mode, the "Batch Z" field is ignored

#### Best practices

1. **Start with the default model**: Try the default "20230905" model first
2. **Try different models**: If detection isn't optimal, switching models is more effective than adjusting thresholds
3. **Use Z-Stack mode** for 3D data where spots may span multiple Z-slices
4. **Validate results visually**: Always check the detection results manually
5. **Consider retraining**: For specialized applications, retraining on your own data can significantly improve results

#### Example workflow

1. Add a new Piscis tool from the toolset menu
2. Select your channel containing spots
3. Choose a model (start with the default)
4. Select either "Current Z" or "Z-Stack" mode
5. Run the model
6. Review the results
7. If needed, try a different model or adjust parameters and run again

#### Training custom models

If the pre-built models don't work well for your specific spot detection needs, consider training a custom model using the Piscis Train tool (documented separately). Custom-trained models will appear in the model selection dropdown once trained.

Piscis is particularly effective for RNA FISH and similar applications where automatic detection of small punctate structures is needed, saving significant time compared to manual annotation.

### Piscis Training

The Piscis Training tool allows you to create custom spot detection models tailored to your specific microscopy data. By training on your own annotated examples, you can significantly improve spot detection performance for challenging or unique datasets.

> **Key tip**: You don't need extensive training data to get good results! Even a few carefully annotated regions can produce a highly effective custom model.

#### Why train a custom model?

Consider training a custom Piscis model when:

* Default models consistently detect too many or too few spots
* Your spots have unusual characteristics (size, intensity, shape)
* You're working with specialized microscopy techniques
* Background noise or artifacts are causing detection issues

#### Training data preparation

To train an effective custom model:

1. **Create point annotations** for the spots you want to detect
   * Tag them consistently (e.g., "training\_spots")
   * Be thorough within your selected regions - mark all visible spots
2. **Define training regions** where your annotations are complete
   * Use rectangles or polygons to outline areas with fully annotated spots
   * Tag these regions consistently (e.g., "training\_region")
   * Focus on high-quality regions rather than quantity

#### Key parameters

* **Initial Model Name**: The base model to start training from
  * Starting from an existing model (like "20230905") speeds up training
  * The base model provides initial weights that get refined with your data
* **New Model Name**: What to call your custom model
  * Default is a timestamp (e.g., "20250305\_143022")
  * Consider using a descriptive name for your experiment or spot type
* **Annotation Tag**: The tag used on your spot annotations
  * Only points with this tag will be used for training
* **Region Tag**: The tag used on your training regions
  * Only annotations within these regions will be used for training
  * Crucial for ensuring the model learns from fully annotated areas

#### Training parameters

* **Learning Rate**: Controls how quickly the model adapts (default: 0.2)
  * Higher values can lead to faster convergence but may be less stable
  * Lower values produce more stable but slower training
* **Weight Decay**: Regularization parameter to prevent overfitting (default: 0.0001)
  * Higher values create simpler models that may generalize better
* **Epochs**: Number of training iterations (default: 40)
  * More epochs generally improve results but take longer
  * The default is usually sufficient for good performance
* **Random Seed**: Controls randomness in training for reproducibility (default: 42)
  * Change this value if you want to try different random initializations

#### Training workflow

1. **Create point annotations**
   * Manually mark spots in representative areas of your image
   * Apply a consistent tag (e.g., "training\_points")
2. **Define training regions**
   * Draw rectangles or polygons around fully annotated areas
   * Apply a consistent tag (e.g., "training\_region")
3. **Configure the Piscis Train tool**
   * Select a base model
   * Configure training parameters (or use defaults)
   * Specify your annotation and region tags
4. **Run the training process**
   * This will take several minutes depending on your data
   * The model will be saved with your specified name
5. **Use your custom model**
   * Your trained model will automatically appear in the Piscis tool's model list
   * Select it when using Piscis for spot detection

#### Best practices

1. **Quality over quantity**: A few well-annotated regions are better than many poorly annotated ones
2. **Include challenging examples**: Include difficult spots in your training data
3. **Use representative regions**: Select areas that reflect the variability in your dataset
4. **Start small**: Begin with a small training set and evaluate before expanding
5. **Iterative improvement**: Train, test, correct annotations, and train again for best results

#### Testing your model

After training, test your model by:

1. Using the standard Piscis tool with your new model
2. Comparing results against manual annotations in regions not used for training
3. Adjusting the Scale parameter slightly if needed for fine-tuning

#### Model storage

Your custom Piscis models are saved in a `.piscis` directory at the root of your Private or Public folder. Once training completes, the model files are automatically stored in this location and will appear in the Piscis tool's model dropdown menu for future use. You can:

* Manually add models trained offline to this directory
* Share models between team members by copying model files

Custom-trained Piscis models often dramatically improve spot detection accuracy for specialized applications, saving significant time in your image analysis workflow.

### CondensateNet for automated condensate segmentation

CondensateNet is a deep learning-based tool for automatically detecting and segmenting biomolecular condensates in brightfield microscopy images. It uses a Feature Pyramid Network (FPN) architecture with an EfficientNet encoder to identify condensates and create polygon annotations for each one, which you can then analyze using NimbusImage's object properties and tagging features.

{% hint style="info" %}
If you use CondensateNet in your research, please cite the [relevant paper](/citations#condensatenet).
{% endhint %}

#### How CondensateNet works

CondensateNet processes brightfield images through a three-stage pipeline:

1. **Preprocessing**: Normalizes the input image
2. **Inference**: Runs the FPN model to produce probability masks and flow fields
3. **Post-processing**: Converts predictions to instance segmentation using watershed-based methods, outputting polygon annotations for each detected condensate

#### Key parameters

* **Probability Threshold**: Minimum confidence score for a detection to be included (0–1, default: 0.15). Lower values detect more condensates, including faint ones; higher values detect only high-confidence condensates.
* **Min Size**: Minimum condensate size in pixels (default: 15). Objects smaller than this are discarded.
* **Max Size**: Maximum condensate size in pixels (default: 600). Objects larger than this are discarded.
* **Smoothing**: Polygon simplification tolerance (default: 0.3). Higher values produce simpler polygon outlines with fewer vertices.
* **Padding**: Expand or shrink detected polygons in pixels (default: 0). Positive values dilate outlines; negative values erode them.

#### Advanced parameters for large images

* **Tile Size**: Size of tiles for processing large images in pixels (default: 1024). Smaller tiles use less memory but may miss large objects.
* **Tile Overlap**: Fraction of overlap between adjacent tiles (0–1, default: 0.1). Objects spanning tile boundaries are stitched together using the overlap region.
* **Important**: Ensure your objects are smaller than the overlap region. For example, with a tile size of 1024 and overlap of 0.1, objects should be less than approximately 102 pixels in their longest dimension for correct stitching.

#### Batch processing

* Use the **Batch XY**, **Batch Z**, and **Batch Time** fields to specify ranges for processing multiple positions, Z-slices, or time points (format: "1-3, 5-8", or `all` for every available coordinate). Defaults to the current tile.

#### Best practices

1. **Adjust the probability threshold** as your primary tuning parameter — start with the default of 0.15 and increase if you see too many false positives or decrease if you're missing condensates
2. **Use Min/Max Size** to filter out noise (small detections) or non-condensate objects (large detections)
3. **Use larger tile sizes** (1024 recommended) for consistent detection — smaller tiles can cause detection differences due to per-tile intensity normalization
4. **Review results visually**: Always inspect the segmentation and refine parameters if needed
5. **Post-process as needed**: Use NimbusImage's manual editing tools to correct any segmentation errors

### StarDist for nucleus segmentation

StarDist finds nuclei (and other round, compact objects) by predicting each object as a **star-convex polygon** — a shape where every point on the outline can be reached by a straight line from the object's center. That assumption suits nuclei very well, and it makes StarDist good at separating touching or crowded nuclei. It is a good choice for a DAPI or Hoechst channel. For cells with irregular or concave outlines, Cellpose-SAM is usually a better fit.

{% hint style="info" %}
If you use StarDist in your research, please cite the [relevant papers](/citations#stardist).
{% endhint %}

#### How to use

1. **Navigate to the position you want to segment.** StarDist processes the XY position, Z slice, and time point you are currently viewing.
2. **Add the tool** by clicking "ADD NEW TOOL" and choosing "Stardist" from the Stardist category.
3. **Pick the channel** containing your nuclei and choose a model.
4. **Run the tool.** Each detected object is added as a polygon with the tool's tag.

#### Key parameters

* **Model**: The pretrained model to use. `2D_versatile_fluo` (default) is trained on fluorescent nuclei; `2D_versatile_he` is trained on H\&E-stained histology.
* **Channel**: The image channel to segment (required). StarDist works on one channel at a time.
* **Probability Threshold**: How confident the model must be to report an object (range: 0–1, default: 0.5). Lower it to pick up dim or faint nuclei; raise it if you're getting spurious detections.
* **NMS Threshold**: How much two candidate objects may overlap before the weaker one is discarded (range: 0–1, default: 0.4). Lower values remove more overlapping detections; raise it if neighboring nuclei are being merged or dropped in dense regions.
* **Padding**: Expands (positive values) or shrinks (negative values) every outline by this many pixels (range: −20 to 20, default: 0).
* **Smoothing**: Simplifies the outlines by removing vertices (range: 0–10, default: 1). Higher values give simpler polygons that are faster to display and compute on.

#### Best practices

* **Start with the defaults** and adjust Probability Threshold first; it has the biggest effect on what gets found.
* **Check crowded regions.** If touching nuclei come out merged, try raising the NMS Threshold slightly.
* **Be mindful of very large images.** StarDist analyzes the whole image at the current position in a single pass, so very large images need a lot of GPU memory.

### SAM2 tools for segmentation, refinement, and tracking

NimbusImage includes a family of automated tools built on Meta's Segment Anything Model 2 (SAM2). You'll find them under the **SAM2** category in the "Add new tool" dialog (the SAM1-based few-shot tool is under **SAM**). Unlike the interactive [Segment-Anything "God Mode"](#segment-anything-semi-automated-object-finding-aka-god-mode) and [Segment similar objects](#segment-similar-objects-experimental) tools, which run in your browser on the current view, these tools run as server jobs and can process many XY positions, Z-slices, and time points at once. They create blob (polygon) objects with the tags you set for the tool.

{% hint style="info" %}
If you use the SAM2 tools in your research, please cite [SAM 2](/citations#segment-anything-model-2-sam-2). For the SAM few-shot segmentation tool, cite the original [Segment Anything Model (SAM)](/citations#segment-anything-model-sam).
{% endhint %}

{% hint style="info" %}
All of these tools "see" the image as it is displayed: they combine your channels using the current layer contrast and color settings. Adjust your layers so the objects you care about are clearly visible before running them.
{% endhint %}

Several settings are shared across these tools:

* **Batch XY / Batch Z / Batch Time**: The positions, Z-slices, and time points to process (format: "1-3, 5-8", or `all`). Leave blank to use only the current one.
* **Model** (SAM2 tools): The SAM2.1 model size: `sam2.1_hiera_tiny`, `sam2.1_hiera_small`, `sam2.1_hiera_base_plus`, or `sam2.1_hiera_large`. Larger models may give slightly better results but are slower and use more memory, which can matter when processing many objects at once.
* **Smoothing**: How much the resulting outlines are simplified (0-3). Higher values give smoother outlines with fewer vertices.
* **Padding**: Expands (positive) or shrinks (negative) the resulting outlines, in pixels (-20 to 20, default 0).

### SAM2 automatic mask generator

The **SAM2 automatic mask generator** finds and outlines *everything* SAM2 can identify in the image, without any examples or prompts. It's a quick way to get a first pass of objects in an image, which you can then filter or clean up.

#### Key parameters

* **Model**: The SAM2 model size (default: `sam2.1_hiera_small.pt`)
* **Smoothing**: Outline simplification (default: 0.3)
* **Points per side**: How densely SAM2 samples the image when looking for objects (16-128, default: 32). Higher values find more and smaller objects but take longer.

#### Best practices

Because it segments everything, expect to get background regions and other objects you don't want along with your objects of interest. If you only want objects that look like a few examples you've drawn, use few-shot segmentation instead. Each object is a single outline; holes inside objects are not preserved.

### SAM and SAM2 few-shot segmentation

The few-shot segmentation tools find objects that resemble a handful of examples you've outlined. Outline roughly 5-20 representative objects, give them a tag, and the tool searches the batch range for similar objects. No model training is needed.

Under the hood, the tool generates every candidate object it can find (like the automatic mask generator), compares each candidate's appearance to your examples, and keeps only the candidates that are similar enough.

There are two versions:

* **SAM2 few-shot segmentation** (under **SAM2**): Uses SAM2. Faster, and lets you choose among SAM2 model sizes (default: `sam2.1_hiera_base_plus.pt`).
* **SAM few-shot segmentation** (under **SAM**): Uses the original, larger SAM ViT-H model (`sam_vit_h_4b8939`). In our tests on microscopy images, it found more of the target objects than the SAM2 version, but it is considerably slower. Choose it when segmentation quality matters more than speed.

#### How to use

1. Outline 5-20 example objects with a manual blob tool and give them a common tag (e.g., "training\_cells"). Choose examples that represent the range of appearances you want to find.
2. Add **SAM2 few-shot segmentation** or **SAM few-shot segmentation** from the "Add new tool" dialog.
3. Set **Training Tag** to the tag of your examples, and set the batch range you want to segment.
4. Run the tool and review the results. Adjust **Similarity Threshold** and the mask area limits as needed, and run again.

#### Key parameters

* **Training Tag**: **Required.** The tag of your example objects. Examples can be anywhere in the dataset.
* **Similarity Threshold**: How closely a candidate must resemble your examples to be kept (0-1, default: 0.5). Increase (e.g., 0.6-0.8) if you get too many false positives; decrease (e.g., 0.3-0.4) if objects are being missed.
* **Target Occupancy**: How much context around each object the model looks at, as the fraction of the view the object fills (0.05-0.8, default: 0.2). Try 0.1-0.15 for very small objects and 0.3-0.4 for large ones.
* **Points per side**: How densely to search for candidate objects (default: 128; range 16-256 for SAM2 and 16-128 for SAM). Increase to find more small objects; decrease for faster processing.
* **Min Mask Area** / **Max Mask Area**: Candidates smaller or larger than these areas (in pixels) are ignored (defaults: 30 and 1000). Set **Max Mask Area** to 0 for no upper limit. A good starting point is about half the area of your smallest example for the minimum and about twice the area of your largest example for the maximum. **Be sure to raise Max Mask Area if your objects are larger than 1000 pixels.**
* **Smoothing**: Outline simplification (default: 0.3)

{% hint style="info" %}
Looking for something interactive? The [Segment similar objects](#segment-similar-objects-experimental) tool does a similar job in your browser on the current view, with immediate feedback. The few-shot tools are better when you want to process many positions, slices, or time points in one go.
{% endhint %}

### SAM2 Refiner

The **SAM2 Refiner** cleans up existing objects. For each tagged object, it uses the object's bounding box as a prompt to SAM2 and creates a new outline that better follows the object's edges in the image. This is useful for tightening up rough hand-drawn outlines or objects from another segmentation tool.

#### How to use

1. Add **SAM2 Refiner** from the "Add new tool" dialog.
2. Set **Tag of objects to refine** to the tag of the objects you want to clean up, and set the batch range to cover them.
3. Set the tool's output tags. The refined objects get the tool's tags, not the tags of the originals.
4. Run the tool and review the results.

#### Key parameters

* **Tag of objects to refine**: The tag of the objects to refine. Only objects within the batch range are refined. If left empty, all blob objects in the batch range are refined.
* **Delete original annotations**: Delete the original objects after the refined ones are created (default: off).
* **Model**: The SAM2 model size (default: `sam2.1_hiera_small.pt`)
* **Padding**: Outline expansion or shrinkage in pixels (default: 0)
* **Smoothing**: Outline simplification (default: 0.7)

{% hint style="warning" %}
The refiner creates new objects rather than editing the originals in place, so connections and other references to the original objects are not carried over to the refined ones.
{% endhint %}

### SAM2 propagator and SAM2 video

These two tools take objects you've outlined in one frame and carry them through time or Z, creating a matching object in each subsequent frame (or slice). Both can connect the objects across frames so that each object forms a track you can browse and analyze with [connections](/documentation/analyzing-image-data-with-objects-connections-and-properties/tools-for-connecting-objects) and review in [Time lapse mode](/documentation/time-lapse-mode).

* **SAM2 propagator** works one frame at a time: it uses the bounding boxes of the objects in the current frame as prompts to segment the next frame, then repeats from there. It works well when objects change in appearance over time (e.g., cell differentiation or condensate dynamics), and uses less memory on long sequences.
* **SAM2 video** uses SAM2's video mode, which considers the whole sequence together and keeps a memory of each object across frames. This tends to give more consistent tracking, but long sequences can require a lot of GPU memory. If a long sequence fails, try the propagator instead.

#### How to use

1. Outline the objects you want to follow in your starting frame and give them a tag. With SAM2 video, you can also provide starting objects in different frames; each one is tracked separately.
2. Add **SAM2 propagator** or **SAM2 video** from the "Add new tool" dialog.
3. Set the tag of your starting objects, choose whether to follow them across **Time** or **Z**, and choose the direction (**Forward** or **Backward**).
4. Set **Batch Time** (or **Batch Z**, when working across Z) to the full range of frames to follow the objects through, including your starting frame, e.g., "1-50" or `all`. With the default (blank), only the current frame is processed and nothing is propagated.
5. Run the tool and review the results.

#### Key parameters

* **Tag of objects to propagate** (propagator) / **Tag of objects to track** (video): The tag of your starting objects.
* **Propagate across** / **Track across**: Whether to follow objects through **Time** or **Z** (default: Time).
* **Propagation direction** / **Track direction**: **Forward** to go from earlier to later frames, or **Backward** to go from later to earlier (default: Forward).
* **Connect sequentially**: Connect each object to its counterpart in the next frame (default: on). Connections run from earlier to later frames regardless of direction, and are tagged `SAM2_PROPAGATED` (propagator) or `SAM2_VIDEO` (video).
* **Resegment propagation objects** (propagator only): Before propagating, re-segment your starting objects with SAM2 so the whole track is drawn consistently (default: on). This adds new SAM2-drawn objects in the starting frame alongside your originals.
* **Model**: The SAM2 model size (default: `sam2.1_hiera_small.pt`)
* **Padding**: Outline expansion or shrinkage in pixels (default: 0)
* **Smoothing**: Outline simplification (default: 0.7 for the propagator, 0.3 for video)

{% hint style="info" %}
To find objects first and then follow them, you can combine tools: for example, segment the first time point with Cellpose-SAM or few-shot segmentation, then propagate those objects with the SAM2 propagator or SAM2 video.
{% endhint %}


# Tools for connecting objects

In many cases, you may want to connect objects together, for instance, the same cell through a time lapse video, or spots to a nucleus. These connections can be made manually using connection tools such as Lasso connect or also automated connection algorithms such as Connect to Nearest. Connections can also be deleted manually. These connections can also sometimes be made when a property is computed to show you what objects were used in the computation.

## Best practices for connections

* **Use tags effectively**: Properly tagging your objects makes connection tools more precise
* **Assign hotkeys**: Set up hotkeys for your most frequently used connection tools
* **Think about directionality**: Remember that connections have direction (parent to child) which can be important for certain analyses

Connections form the foundation for many powerful analyses in NimbusImage, enabling you to quantify relationships between objects and trace structures across time.

## Manual connection tools: click and lasso connect

NimbusImage provides several intuitive tools for manually creating and removing connections between objects:

### Click connect

The **Click connect** tool allows you to create connections between objects by simply clicking them in sequence:

1. First, click on a "parent" object
2. Next, click on a "child" object
3. A connection will be established from the parent to the child

This tool is ideal for precisely connecting specific objects, like linking individual RNA spots to their corresponding cells or connecting organelles to their parent structures.

**Configuration options:**

* **Parent Annotation Tags**: Filter which types of objects can be selected as parents
* **Child Annotation Tags**: Filter which types of objects can be selected as children
* **Filter by layer**: Optionally restrict selections to objects on specific layers

### Lasso connect

The **Lasso connect** tool allows you to quickly connect multiple objects at once:

1. Draw a lasso around all the objects you want to connect
2. NimbusImage will automatically establish connections between the selected objects

This is particularly useful for:

* Connecting multiple spots to a cell at once
* Connecting sequential points in a time-lapse track
* Creating connections between groups of related objects

In time-lapse mode, the Lasso connect tool will intelligently connect objects sequentially by time point, making it extremely valuable for track creation and repair.

### Click disconnect

The **Click disconnect** tool allows you to remove individual connections:

1. Click on a connected parent object
2. Click on its connected child object
3. The connection between them will be removed

This is useful for removing incorrect connections without affecting other valid connections.

### Lasso disconnect

The **Lasso disconnect** tool allows you to quickly remove multiple connections at once:

1. Draw a lasso around the connected objects
2. All connections between objects within the lasso will be removed

This is particularly helpful when you need to clear all connections in a region and rebuild them correctly.

## Automated connection tools

NimbusImage provides powerful automated tools that can establish connections between objects based on various criteria, saving you considerable time compared to manual connections.

### Connect to nearest

The **Connect to nearest** tool automatically connects objects based on spatial proximity:

1. Each object with the "parent" tag will be connected to its nearest object(s) with the "child" tag
2. The connections are established based on configurable distance and relationship criteria

**Configuration options:**

* **Parent tag**: Tag that identifies which objects will serve as parents in the connections
* **Child tag**: Tag that identifies which objects will serve as children in the connections
* **Connect across Z**: When enabled, allows connections between objects on different Z-slices
* **Connect across T**: When enabled, allows connections between objects at different time points
* **Connect to closest centroid or edge**: Choose whether to measure distance from:
  * **Centroid**: The central point of each object (faster, simpler)
  * **Edge**: The boundary of each object (more precise for irregularly shaped objects)
* **Restrict connection**: Apply additional constraints to connections:
  * **None**: Connect based solely on distance
  * **Touching parent**: Only connect children that physically touch their parent
  * **Within parent**: Only connect children that are completely contained within their parent
* **Max distance (pixels)**: The maximum allowed distance between parent and child objects
* **Connect up to N children**: Limit the number of children that can connect to each parent

This tool is particularly useful for:

* Connecting RNA spots to their nearest nucleus
* Assigning cells to their closest blood vessel
* Connecting subcellular structures to their parent cells
* Efficiently processing large datasets with many objects

### Connect timelapse

The **Connect timelapse** tool specializes in automatically tracking objects across sequential time points:

1. Objects with the same tag are connected from one time frame to the next
2. Connections are established based on spatial proximity between frames
3. The algorithm intelligently handles object movement between frames

This is especially valuable for cell tracking, particle movement analysis, and other time-dependent studies.

**Configuration options:**

* **Object to connect tag**: Specifies which objects to track across time points (all objects with this tag will be connected)
* **Connect across gaps**: Allows connecting objects even when there are missing time points
  * Set a value from 0-10 to determine how many time points can be skipped
  * For example, a value of 1 would connect an object at t=5 directly to t=7 if t=6 is missing
* **Max distance**: The maximum pixel distance objects can move between frames and still be considered the same object
  * Set this based on how much your objects typically move between frames
  * Lower values (5-20 pixels) work well for slow-moving objects
  * Higher values may be needed for rapidly moving objects or lower frame rates

**How it works:**

1. The algorithm processes each spatial location (XY, Z) separately
2. For each time point, it searches for the closest matching objects in subsequent time points
3. Connections are created from later time points to earlier ones (children to parents)
4. All connections are automatically tagged with "Time lapse connection" for easy identification

This tool is perfect for:

* Automatically generating cell lineage trees
* Tracking particle movement over time
* Analyzing cell migration patterns
* Measuring growth or movement rates

**Best practices:**

* Start with a small max distance (10-20 pixels) and increase if needed
* Use the "Connect across gaps" feature when you have intermittently missing objects. These can be later fixed manually using [Time lapse mode](/documentation/time-lapse-mode)
* When tracking dividing cells, use this tool first, then manually correct division events
* Review tracks in Time lapse mode to identify and fix any tracking errors
* For very dense or challenging datasets, consider tracking a subset of objects first

After running the Connect timelapse tool, you can use the Time lapse mode (discussed in the [Time lapse mode](/documentation/time-lapse-mode) section) to visualize, review, and manually correct the resulting tracks.

### Connect sequential

The **Connect Sequential** tool (in the Connections category) links each object to its nearest neighbor in the immediately preceding slice, either across time or across Z:

1. Objects with the chosen tag are compared slice by slice along the axis you pick (Time or Z)
2. Each object becomes a "child" connected to the nearest matching object in the previous slice (time point − 1 or Z − 1), which becomes its "parent"
3. Each object connects to at most one parent

**Configuration options:**

* **Object to connect tag**: Specifies which objects to connect (all objects with this tag will be connected)
* **Connect sequentially across**: Choose **Time** to connect objects from one time point to the next, or **Z** to connect objects from one Z-slice to the next (default: Time)
* **Max distance (pixels)**: The maximum distance between a child and its parent; objects farther apart than this are not connected (range: 0–5000, default: 1000)

**How it works:**

1. Objects are never connected across different XY positions. When connecting across Time, only objects in the same Z-slice are connected; when connecting across Z, only objects at the same time point are connected.
2. Distance is always measured between object centroids (for points, the point itself).
3. Created connections are tagged with the same tag as the input objects.

**When to use it instead of Connect timelapse:**

* Use **Connect sequential** when you need to link objects **across Z-slices** (for example, following a structure through a Z-stack), since Connect timelapse only works across time.
* Use **Connect timelapse** for most time-lapse tracking, especially when objects can be missing from some frames: Connect sequential only looks at the immediately preceding slice and cannot bridge gaps.

{% hint style="info" %}
Connect sequential works on point and blob (polygon) objects. Line objects are not used.
{% endhint %}

## Browsing and editing connections

Once you have connections, the **Connections** tab in the Object Browser lets you see exactly what is connected to what, and clean up whatever is wrong — without hunting through the image for it.

<figure><img src="https://4239675806-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FX54NriBmLyFl6hdSGC9K%2Fuploads%2Fgit-blob-34982164e16f3f206137d8024fd7168f7be591dd%2Fconnections-by-track.png?alt=media" alt="" width="512"><figcaption><p>The Connections tab in by-track view. Each track shows a color swatch matching the line drawn in the viewer, its size, and Select / Delete track actions. Here the tracks are titled by a computed <code>trackId</code> property.</p></figcaption></figure>

### Two views of your connections

The **Flat** view lists individual parent-to-child links; the **By track** view groups them into tracks, where a track is a chain of connections following one object through time. By track is the natural view for time-lapse data; the flat list is more useful for spot-to-cell style connections.

A **Scope** selector controls which connections the tab shows:

* **All connections** in the dataset
* **Current location** — only connections at the XY position, Z slice, and time point you're viewing
* **Selected objects** — only connections involving objects you've selected
* **Passing filters** — only connections whose objects survive your current filters

### Deleting connections

From the Connections tab you can delete a single link, an entire track at once (**Delete track**), or every connection currently selected (**Delete selected**). This makes it practical to fix a tracking run that went wrong in one region without discarding the whole thing. Each track row also has a **Select** action that selects that track's objects in the viewer.

You can also **click connection lines directly in the viewer** — in both normal and time-lapse mode — so if you can see a bad link, you can cut it exactly where you see the problem rather than searching for it in a list.

### Connecting selected objects

The **Connect selected** action chains the objects you currently have selected into connections, in ascending time order. This is a quick way to build or repair a track from objects you've already picked out.

### Labeling tracks with a computed track ID

By default, the by-track view titles each track with a short internal identifier. If you have run the **Parent-Child Connection IDs** property worker, that worker assigns each track a numeric `trackId` — and that is the number that shows up in your exported CSV. To make the panel agree with your exports, use the **Track ID property** select in the by-track view and pick the computed property path (for example, `nucleus Connection IDs / trackId`). Each track is then titled with that value — `Track 42` — with the short internal id moved into the tooltip.

Because the worker assigned those ids against the connection graph as it existed when the property was computed, tracks whose connections have changed since then get a badge:

* **partial** — the track has members the property never covered, so objects were added after the worker ran
* **mixed IDs** — the track's members carry different ids, meaning two previously separate tracks have since been joined
* **no ID** — none of the track's members have a value

These badges are useful in their own right: they point at exactly the tracks whose connectivity changed after your last property computation, which are usually the ones worth reviewing. Re-running the property clears them.

### Filtering by track metrics

The **Track filters** menu — the filter icon beside the Flat / By track toggle — applies minimum and maximum bounds to three track metrics:

* **Connections in track** — how many links the track contains
* **Objects in track** — how many objects the track passes through
* **Duration (timepoints)** — how long the track spans in time

This is the fastest way to find the tracks worth your attention: set a minimum duration to isolate long-lived cells, or a maximum to surface the short fragments that usually indicate a tracking failure.

A connection whose track falls outside an active bound disappears from the list **and** from the image — both the connection lines in normal mode and the tracks in time-lapse mode. While a filter is narrowing, the count reads "N of M", the filter button carries a badge, and the empty state tells you the track filters are responsible rather than implying the dataset is empty.

{% hint style="info" %}
Track metrics are always computed over the **whole track**, even when the scope selector is showing you only a fragment of it. A track that spans 100 time points is judged on all 100, not on the handful visible at your current location.
{% endhint %}

Track filters are view state for the current session, and they reset when you switch datasets — numeric bounds from one dataset rarely mean the same thing in another.

**Also hide these tracks' objects in the image** is an off-by-default checkbox in the same menu. With it on, the filtered-out tracks' objects are hidden too, not just their connection lines — useful for decluttering a dense field down to the tracks you care about. This is purely a display setting: the hidden objects still appear in the Objects tab, in exports, and in analysis. Objects that aren't part of any track are never hidden by it.

### Cleaning up dangling connections

Over the life of a dataset, connections can end up pointing at objects that have since been deleted. These "dangling" connections do nothing useful but still count toward your totals and track metrics.

When NimbusImage finds any, the Connections tab shows a row offering to delete them across the whole dataset. It reports the live count, asks for confirmation first, and the deletion can be undone. On a dataset with no dangling connections the row doesn't appear at all.


# Measuring object properties

Ultimately, most researchers want to extract numbers from their image data. These could correspond to fluorescent intensity across cells, or number of cells per colony, or density of filaments per region. NimbusImage allows you to make these computations easily by defining **properties**. A property (think: area) can be associated with an object and listed and exported for plotting and analysis. You can easily compute a lot of different properties using NimbusImage out of the box because of the flexibility that its tagging and connection system allows. For instance, if you want to find the count the number of spots connected to the basement membrane, that is easy to do with just a few clicks.

First, open the **Object List** and click the blue **"Measure objects"** button. This brings up the Measure objects panel:

<figure><img src="https://4239675806-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FX54NriBmLyFl6hdSGC9K%2Fuploads%2Fgit-blob-0237af176929a3626c04a090ab7d48075a3ee2b3%2Fmeasure-objects-dialog.png?alt=media" alt=""><figcaption><p>Create new properties on the left; the properties already computed for your objects are listed on the right</p></figcaption></figure>

In the **Create New Property** section, choose the **tag** of the objects you want to quantify (for example, `nucleus`) — or select a shape — and click **"Create Property"**. NimbusImage runs the appropriate property worker, and when it finishes the new measurements appear under **Object Properties** on the right (here, "nucleus Blob metrics", "nucleus Blob intensity measurements", and "nucleus Blob annulus intensity").

To display specific values, click **"Show in annotation list…"**, expand the property (e.g. "nucleus Blob metrics"), and check the metrics you want, such as **Area**:

<div align="left"><figure><img src="https://4239675806-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FX54NriBmLyFl6hdSGC9K%2Fuploads%2Fgit-blob-2e1c23cd2cf7c99875d37f97c6c6edfbb6e7c5db%2Fproperty-select-area.png?alt=media" alt="" width="563"><figcaption><p>Choose which computed metrics to show in the annotation list</p></figcaption></figure></div>

The selected property now shows up as a column in the annotation list:

<div align="left"><figure><img src="https://4239675806-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FX54NriBmLyFl6hdSGC9K%2Fuploads%2Fgit-blob-e85faa0eb5e7e4765d70e0d121dfbbbbc8894ed6%2Fproperty-list.png?alt=media" alt="" width="563"><figcaption><p>The Area property listed alongside each object</p></figcaption></figure></div>

You can also press **"t"** while viewing the image to overlay the property values directly on the objects. When you're ready to analyze the numbers elsewhere, export them to a CSV (or TSV) from the **Import / export data** menu → **Export CSV**:

<div align="left"><figure><img src="https://4239675806-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FX54NriBmLyFl6hdSGC9K%2Fuploads%2Fgit-blob-05146a091a402661e3ea05524e8b99ec403087a6%2Fexport-csv-dialog.png?alt=media" alt="" width="500"><figcaption><p>The CSV export dialog lets you choose scope, format, which properties to include, and how to handle missing values</p></figcaption></figure></div>

## Blob metrics (area, perimeter, etc.)

The Blob Metrics property worker calculates a comprehensive set of morphological measurements for blob-shaped (polygon) objects in your dataset. This is particularly useful for analyzing cell shapes, nuclei, or any other blob-like structures you've annotated.

### Available metrics:

* **Area**: The total area enclosed by the object (in square pixels or physical units)
* **Perimeter**: The length of the object's boundary (in pixels or physical units)
* **Centroid**: The geometric center (x,y coordinates) of the object
* **Elongation**: Measures how stretched out the object is (value between 0-1, where 1 is maximally elongated)
* **Convexity**: Ratio of the object's area to the area of its convex hull (measures how convex vs. concave the shape is)
* **Solidity**: Ratio of the object's perimeter to the perimeter of its convex hull
* **Rectangularity**: How well the object fits within its minimum bounding rectangle
* **Circularity**: How closely the object resembles a perfect circle (4π × Area/Perimeter²)
* **Eccentricity**: Measures how much the object deviates from being circular (value between 0-1, where 0 is a circle)

### How to use:

1. Create blob objects in your image (manually or using automated tools)
2. Tag these objects appropriately (e.g., `nucleus`, `cell`, etc.)
3. Create a new property using the Blob Metrics worker
4. Select which tags to analyze
5. Choose whether to use physical units (μm, mm, etc.) or pixel units
6. Run the property worker to calculate metrics for all matching objects

### Physical units:

When the "Use physical units" option is enabled, all measurements will be converted from pixels to the selected physical unit (μm, mm, m, or nm) based on the pixel size metadata in your image. This allows for consistent measurements across datasets with different magnifications or resolutions.

This property is useful for:

* Measuring and comparing cell or organelle sizes
* Analyzing shape changes in response to treatments
* Quantifying morphological differences between cell types
* Correlating shape features with biological function

### Best practices for intensity measurements:

1. **Background correction**: Consider using background subtraction before measuring intensities for more accurate results
2. **Consistent exposure**: For comparative studies, ensure all images were acquired with the same exposure settings
3. **Channel selection**: Carefully select which channel to measure based on your experimental design
4. **Annulus size**: When using annular measurements, adjust the radius to match the biological structure you're analyzing (e.g., typical cytoplasm width)
5. **Validation**: Visually verify that your measurements align with the visible intensity patterns in your images

## Blob Intensity

The Blob Intensity property worker calculates pixel intensity statistics inside blob-shaped (polygon) objects in your dataset. This is ideal for measuring fluorescence within cells, nuclei, or other structures you've annotated.

### Available metrics:

* **Mean Intensity**: The average pixel intensity within the object
* **Max Intensity**: The brightest pixel value within the object
* **Min Intensity**: The dimmest pixel value within the object
* **Median Intensity**: The median pixel value (50th percentile)
* **25th Percentile Intensity**: The intensity value below which 25% of pixels fall
* **75th Percentile Intensity**: The intensity value below which 75% of pixels fall
* **Total Intensity**: The sum of all pixel intensities within the object

### How to use:

1. Create blob objects in your image (manually or using automated tools)
2. Tag these objects appropriately (e.g., `nucleus`, `cell`, etc.)
3. Create a new property using the Blob Intensity worker
4. Select the channel you want to measure intensity from (this can be different from the layer where annotations are drawn)
5. Run the property worker to calculate intensity metrics for all matching objects

### Applications:

* Quantifying protein expression levels within cells
* Measuring nuclear vs. cytoplasmic signal ratios
* Comparing fluorescence intensities between experimental conditions
* Identifying cells with high or low expression of a marker

## Blob Intensity Percentile

This worker extends the basic intensity analysis by allowing you to specify exactly which percentile to measure, giving you more flexibility for your specific analysis needs.

### Parameters:

* **Channel**: The image channel to measure intensity from. Note that this can be different from the channel where annotations are drawn. So you can calculate, e.g., the RFP intensity in objects defined by the DAPI channel to calculate nuclear RFP intensity.
* **Percentile**: A value between 0 and 99.99999 to specify which percentile intensity to calculate (default: 50)

### Output:

* **Nth Percentile Intensity**: The intensity value at your specified percentile

### When to use:

* When you need to focus on a specific portion of the intensity distribution
* For filtering out outliers (using high or low percentiles)
* When the median (50th percentile) doesn't fully capture the intensity characteristics you're interested in

## Blob Annulus Intensity

The Blob Annulus Intensity worker measures pixel intensity in a ring-shaped region around each blob object. This is particularly valuable for quantifying cytoplasmic signals around nuclei or membrane markers surrounding cells.

### Parameters:

* **Channel**: The image channel to measure intensity from
* **Radius**: The width of the annular region in pixels (default: 10)

### Available metrics:

* **Mean Intensity**: The average pixel intensity within the annular region
* **Max Intensity**: The brightest pixel value within the annular region
* **Min Intensity**: The dimmest pixel value within the annular region
* **Median Intensity**: The median pixel value in the annular region
* **25th Percentile Intensity**: The intensity value below which 25% of pixels fall
* **75th Percentile Intensity**: The intensity value below which 75% of pixels fall
* **Total Intensity**: The sum of all pixel intensities within the annular region

### Applications:

* Measuring cytoplasmic fluorescence around nuclear objects
* Quantifying membrane-associated markers surrounding cells
* Analyzing protein localization patterns at cell boundaries
* Studying gradient distributions of signals around organelles

## Blob Annulus Intensity Percentile

This worker combines the flexibility of percentile selection with annular region measurement, allowing for precise control over which statistical metric to use in your ring-shaped regions of interest.

### Parameters:

* **Channel**: The image channel to measure intensity from
* **Radius**: The width of the annular region in pixels (default: 10)
* **Percentile**: A value between 0 and 99.99999 to specify which percentile intensity to calculate (default: 50)

### Output:

* **Nth Percentile Intensity**: The intensity value at your specified percentile within the annular region

## Point count

The Point count worker counts how many point objects fall inside each blob (polygon) object — for example, the number of RNA FISH spots inside each cell or nucleus. The blobs to measure are chosen with the tag you pick in the Create New Property section; the points to count are chosen in the worker's own settings.

### Parameters:

* **Tags of points to count**: The tags of the point objects to count (for example, `spot`)
* **Count points across all z-slices**: If "Yes" (default), points on every Z slice that fall within the blob's outline are counted, which suits a cell outlined on one slice with spots spread through the stack. If "No", only points on the blob's own Z slice are counted.
* **Exact tag match?**: If "No" (default), points with any of the listed tags are counted. If "Yes", points must have exactly the listed tags.

### Output:

* A single value per blob: the number of matching points inside it, shown under the property's name

{% hint style="info" %}
Points are only counted against blobs at the same XY position and time point. Point count works from geometry alone — a point counts if it lies inside the outline, whether or not it is connected to the blob. To count points (or any objects) that you have explicitly connected to a parent object, use [Count connected objects](#count-connected-objects) instead.
{% endhint %}

## Blob overlap

The Blob overlap worker measures how much each blob overlaps with blobs from a second set — for example, how much of each nucleus lies inside a region you've outlined, or how much two segmentations of the same cells agree. The first set is chosen with the tag you pick in the Create New Property section; the second set is chosen in the worker's settings.

### Parameters:

* **Annotations to compute overlap with**: The tags of the second set of blobs
* **Compute reverse overlaps**: If checked (default), the overlap is also computed from the second set's point of view and stored on those blobs

### Output:

* **Overlap\_{tags}**: The fraction of each blob's area that overlaps blobs in the other set (overlapping area ÷ the blob's own area). A value of 0 means no overlap and 1 means the blob lies entirely within the other set.

{% hint style="info" %}
Only blobs at the same XY position, Z slice, and time point are compared. Overlaps with each blob in the other set are added together, so if blobs in the other set overlap one another, the value can exceed 1.
{% endhint %}

## Properties for point objects

The workers below measure **point** objects, such as detected spots or manually placed points. Choose a tag (or the point shape) in the Create New Property section as usual.

## Point intensity

The Point intensity property worker measures pixel intensities in a small circle centered on each point object. With the default radius, this gives you the pixel value at the point's location. With a larger radius, it summarizes a small neighborhood, which can help when, for instance, you want to estimate the local background around a spot.

### Parameters:

* **Channel**: The image channel to measure intensity from (required). This can be different from the layer the points were drawn on.
* **Radius**: The radius of the sampling circle in pixels (range: 0.5–10, default: 1). At 1 or smaller, only the pixel at the point's location is measured.

### Available metrics:

* **MeanIntensity**: The average pixel intensity within the circle
* **MaxIntensity**: The brightest pixel value within the circle
* **MinIntensity**: The dimmest pixel value within the circle
* **MedianIntensity**: The median pixel value within the circle
* **25thPercentileIntensity**: The intensity value below which 25% of pixels fall
* **75thPercentileIntensity**: The intensity value below which 75% of pixels fall
* **TotalIntensity**: The sum of all pixel intensities within the circle

### How to use:

1. Create point objects in your image (manually or using a spot detection tool)
2. Tag these objects appropriately (e.g., `spot`)
3. Create a new property using the Point intensity worker
4. Select the channel to measure and, if needed, adjust the radius
5. Run the property worker to calculate intensity metrics for all matching points

{% hint style="info" %}
Points near the edge of the image are measured using only the pixels of the circle that fall inside the image. Points whose circle contains no pixels at all are skipped.
{% endhint %}

## Point metrics

The Point metrics property worker records the coordinates of each point object as properties, so they can be shown in the object list and included in CSV exports. It does not read any image data, so no channel needs to be selected.

### Available metrics:

* **x**: The x coordinate of the point, in pixels
* **y**: The y coordinate of the point, in pixels

### How to use:

1. Create and tag point objects in your image
2. Create a new property using the Point metrics worker
3. Run the property worker to record coordinates for all matching points

## Count connected objects

The Count connected objects worker counts how many child objects are [connected](/documentation/analyzing-image-data-with-objects-connections-and-properties/tools-for-connecting-objects) to each parent object — for example, the number of spots connected to each nucleus after running Connect to nearest. Unlike Point count, which counts points that fall inside an outline, this counts explicit connections, so it works for any object shapes and for children that sit outside their parent.

The parent objects are chosen with the tag you pick in the Create New Property section; the children are chosen in the worker's settings.

### Parameters:

* **Child Tags**: The tags of the child objects to count. At least one tag is required.
* **Child Tags Exclusive**: If "No" (default), children with any of the listed tags are counted. If "Yes", children must have exactly the listed tags.

### Output:

* **Children Count**: The number of matching children connected to each parent. Parents with no connected children get 0.

### How to use:

1. Create your parent and child objects (for example, nuclei and spots)
2. Connect them, for instance with the Connect to nearest tool
3. Create a new property for the parent tag using the Count connected objects worker, and select the child tags
4. Run the property worker

{% hint style="info" %}
If no connections are found between the selected parents and children, the job warns you and records a count of 0 for every parent. Run a connection tool first.
{% endhint %}


# Analysis plots and gating

Plot property values against each other and select populations by drawing gates

Once you have computed properties for your objects, the **Analysis** panel lets you plot those measurements against each other and select populations directly from the plot — the same way you would gate a flow cytometry experiment. Open it from the scatter-plot icon in the app bar.

<figure><img src="https://4239675806-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FX54NriBmLyFl6hdSGC9K%2Fuploads%2Fgit-blob-eed6da00e652be3a3e303887e29cfcd3691bfccb%2Fanalysis-scatter-plot.png?alt=media" alt="" width="560"><figcaption><p>The Analysis panel plotting nucleus area against mean intensity for a time-lapse dataset</p></figcaption></figure>

## Making a plot

Click **Add plot** and choose an X and a Y axis. Each can be:

* **A computed property value** — for example `nucleus Blob metrics / Area` or a per-channel intensity mean
* **A categorical field of the object itself** — tags, shape, channel, or XY / Z / time position

So you can plot area against intensity to find bright large cells, or plot an intensity against a tag to compare distributions between object classes.

Underneath the plot, a readout reports how many objects were drawn — for example "2,618 of 3,796 objects plotted (1,178 without values)". Objects that have no value for one of the chosen axes cannot be placed, so they are counted separately rather than silently dropped.

## Gating: selecting a population by drawing around it

Draw a lasso around the points you want, and that selection becomes a **gate**. A gate behaves exactly like a property-range filter: it narrows the image viewer, the Object Browser, the Connections list, and everything you export. The objects outside your lasso are still there — they are just filtered out of the current view.

This makes the panel a way of asking spatial questions about a measured population: gate the brightest 5% of cells in the plot, then look at where they actually sit in the image.

### Chaining plots into a gating strategy

Plots chain. The second plot shows only the population that passed the first plot's gate, the third shows what passed the first two, and so on — so a sequence of plots reads as a gating strategy, narrowing step by step.

A plot never applies its own gate to its own points, which is what lets you see and adjust the selection you just drew.

{% hint style="info" %}
Gates are stored as the shape you drew, in property-value space — not as a list of the objects it happened to contain. That means a gating strategy travels correctly between datasets that share a configuration: draw it once on one replicate and it re-resolves against each dataset's own values.

One consequence is worth knowing for categorical axes: the category ordering in effect when you drew the gate is part of the gate's meaning, and travels with it. A category that wasn't present when you drew the gate falls outside it. If you add new tags and want them gated, redraw the gate.
{% endhint %}

## Very large datasets

On datasets with more objects than the panel plots as individual points (50,000 by default), plots switch to a **density heatmap** computed on the server, and gates are drawn as closed shapes or rectangles rather than freehand lassos.

Gating stays exact at any dataset size — the gate is resolved against every object on the server, not against a sample — so the counts you get are the real ones. This was validated on datasets of over 700,000 objects.

{% hint style="info" %}
When a heatmap can't fully express an active filter — a region of interest, a hidden-layer rule, or a very large explicit object list — a banner says so. The picture may show more than is actually in scope, but it never shows less, and the gate itself always resolves correctly.
{% endhint %}

## Knowing when a gate is narrowing your view

Because a gate applies whether or not the Analysis panel is open, it is possible to load a dataset with a saved gate already active and wonder why you can see fewer objects than you expect.

Two cues tell you what's happening:

* The Analysis palette icon shows a badge counting the active gates.
* On large datasets, the object-count indicator over the image spells it out — for example "Showing 826 of 826 in view **(1 filter applied)**". Hovering names the specific constraints ("1 lasso gate on Area × PECAM1; 1 tag filter"), and clicking opens the panels that own them.

## Related

* [Measuring object properties](/documentation/analyzing-image-data-with-objects-connections-and-properties/measuring-object-properties) — computing the values you plot
* [Interacting with objects](/documentation/analyzing-image-data-with-objects-connections-and-properties/interacting-with-objects) — the Filters panel, which is the right tool for narrowing a dataset before plotting
* [Working with large annotation datasets](/documentation/analyzing-image-data-with-objects-connections-and-properties/large-annotation-datasets) — how NimbusImage stays responsive at scale


# Spatial transcriptomics

Explore spatial-transcriptomics data such as 10x Xenium: view individual molecules, use any gene as a measurement, compare expression between groups, and compute neighborhood and region statistics

NimbusImage can hold a whole spatial-transcriptomics run in one place: the tissue images, every segmented cell, the full gene-expression table for every cell, and the individual detected molecules. Everything you already use for cell analysis — filters, the Analysis panel, gates, color-by-property, CSV export — works on genes too, so you can, for example, gate on two genes in a scatter plot and then look at where those cells sit in the tissue.

The feature was built around **10x Xenium** output bundles (Xenium Onboard Analysis 1.3 through 4, including Prime 5K and the XOA 4 protein panels). It has been used on datasets with over 700,000 cells and more than 4,600 genes.

## The workflow at a glance

1. **Ingest** a Xenium bundle with the `nimbusimage` Python tooling. This creates the image datasets, draws a polygon for every cell, and registers the expression table and the molecules.
2. **Look at molecules** with the **Transcripts** palette — individual points when zoomed in, a density heat map when zoomed out.
3. **Use genes as measurements**: add genes as live columns, copy them into a stored measurement, or compute a gene-set score. Genes then work in filters, plots, gates and color-by.
4. **Ask questions** from the **Selection summary**: composition and mean expression of a population, differential expression between two groups, neighborhood enrichment between cell types, and per-region summaries.
5. **Edit cells and recompute**: if you redraw, add or delete cell outlines, rebuild the expression table from the molecules. Earlier tables are kept as versions you can switch between.

## Getting your data in

Loading a Xenium bundle is done with the **xenium-ingest** tooling in the `nimbusimage` Python package, not through the upload page. It is usually run by whoever administers your server, or by an AI coding assistant such as Claude Code (the package ships an `xenium-ingest` skill with the full runbook). If you don't have access to run it yourself, ask your server administrator to ingest the bundle.

### What files are needed

From the 10x download, the ingest uses:

* **The output bundle** (`*_xe_outs.zip`), from which it needs `morphology_focus/`, `cells.zarr.zip` (cell outlines), `cell_feature_matrix.zarr.zip` (the counts), `analysis.zarr.zip` (clusterings), `experiment.xenium` (pixel size and run details) and, for the molecule overlay, `transcripts.zarr.zip`
* **The H\&E image** (`*_he_image.ome.tif`) and its **alignment matrix** (`*_he_imagealignment.csv`), if you want the H\&E as well
* **Cell types** (`*_cell_types.csv`), if 10x provides them for your dataset
* **Pathology regions** (`*_annotation.geojson`), optionally

### Running the ingest

The tooling is installed with `pip install 'nimbusimage[xenium]'` (use `nimbusimage[xenium-umap]` to also compute a UMAP). Every step is available both as a Python function and as a subcommand of the `nimbusimage-xenium` command; `nimbusimage-xenium <step> --help` lists each step's options. In order, the steps are:

1. **`morphology`** — create the image dataset from `morphology_focus/`, with channels named after their stains (for example `c00-DAPI`)
2. **`polygons`** — draw one polygon per segmented cell, and save a *cell map* file that later steps reuse
3. **`umap`** — compute a UMAP embedding (10x does not ship one)
4. **`properties`** — write a marker-gene panel, clusterings and the UMAP coordinates as measurements
5. **`cell-types`** — tag each cell with its type
6. **`spatial-table`** — build and register the full expression table
7. **`transcripts`** — register the molecules as an overlay
8. **`regions`** — import pathology regions as polygons tagged `region`

{% hint style="info" %}
Try each upload step on a small slice first (`--limit 2000`) and check the result in the viewer before running the full dataset.
{% endhint %}

### What you end up with

* **Two datasets**: a **morphology dataset** with the fluorescence stains (protein bundles can have \~35 channels), and a separate **H\&E dataset**. The H\&E is imaged on its own pixel grid, so the ingest uses 10x's alignment matrix to place cells, regions and molecules correctly on it.
* **Cell polygons**, one object per segmented cell, each tagged `cell` plus its cell type (for example `Memory B Cell`)
* **Measurements** such as `Gene Expression` (the marker panel), `Clustering` (for example `graphclust`) and `UMAP` (`x`, `y`)
* **A spatial expression table** with *every* gene for every cell. On protein bundles, antibody targets are named `<name> (protein)` (for example `CD4 (protein)`) so they don't collide with the gene of the same name.
* **A transcripts overlay** of the individual molecules
* Optionally, **pathology regions** as polygons tagged `region`

A new collection shows at most 6 channels as layers; use **Add layer** in the Layers panel to show the rest.

### How cells relate to the expression table

Each row of the expression table belongs to exactly one cell polygon. The table keeps all genes in a single file on the server rather than as millions of stored measurement values, which is what makes a whole-transcriptome table practical. Cells you add later have no row until you [recompute the table](#editing-cells-and-recomputing-the-table); an analysis that finds objects without a row reports them (for example "N of the summarized objects have no row in the spatial table").

### Importing pathology regions yourself

Region layers drawn in QuPath or shipped by 10x can also be imported from the app:

1. Open the **Import / export data** menu (up/down-arrows icon in the top bar) → **Import GeoJSON…**
2. Choose the `.geojson` or `.json` file and check the **Preview** (counts by shape and by class)
3. Pick the **Layer (sets the channel)**
4. Keep **Extra tag for every annotation** as `region` (the default); each feature's class name also becomes a tag
5. Click **Import**

Coordinates are read as this image's pixels, with the origin at the top-left (QuPath's convention). A warning appears if coordinates fall outside the image, which usually means the file is in microns or belongs to the other image — files drawn on the H\&E image must be imported on the **H\&E dataset**. **Export GeoJSON** in the same menu does the reverse, for use in QuPath and similar tools.

{% hint style="warning" %}
**Keep the `region` tag on regions, never on cells.** Neighborhood, region summaries and recompute treat polygons tagged `region` as regions rather than cells. A region without the tag would be counted as one giant cell; a cell with it would be left out of those analyses.
{% endhint %}

## Viewing molecules: the Transcripts palette

On datasets with registered transcripts, a **Transcripts** button (hexagon-of-dots icon) appears in the palette toolbar.

1. Open **Transcripts** and turn on **Show transcripts**
2. Search for and pick genes in **Genes (up to 8)**. Each gets its own color, which you can change next to the gene name
3. Adjust **Quality ≥** (default 20, Xenium's own cut-off) and **Opacity**
4. Choose a **Rendering** mode:
   * **Auto** — individual molecules as points when zoomed in, a density **Heat map** when zoomed out
   * **Points** or **Heat map** to force one
5. **Points on screen at most** caps how many molecules are drawn at once

**Clicking a molecule** shows its gene, position and quality. If it lies inside a cell outline, **Go to cell** jumps to and selects that cell.

A few things to know:

* **The status line** under the controls says what is being shown — a number of molecules, or "Density heat map"
* **Zoomed out, the quality threshold is approximate**: points are merged into clusters, and the heat map counts molecules of every quality. Zoom in for an exact threshold
* **On the H\&E dataset only points are available** — there is no heat map there

To see every cell at once rather than a subset, see the zoomed-out overview in [Working with large annotation datasets](/documentation/analyzing-image-data-with-objects-connections-and-properties/large-annotation-datasets).

## Genes as measurements

Every gene in the expression table can be used like any other measurement.

1. Open the **Object Browser** and go to the **Measurements** tab
2. Click **Add genes** (DNA icon). The button only appears when the dataset has an expression table
3. Search for and pick genes, then choose one of three modes:
   * **Add as live columns** (the default) — genes are read straight from the table, instantly. They work in filters, plots, color-by, the object list and CSV export, but you can't sort the object list by them
   * **Copy into a measurement** — writes each gene's count for every cell as a stored value under a **Measurement name** (default `Gene Expression`). Stored values are sortable and exportable. On large datasets this runs as a server job
   * **Gene-set score** — writes one value per cell, the **mean** (default) or **sum** of the picked genes, under a **Score name** you choose. Scores are stored in a `Gene set scores` measurement
4. Click the button at the bottom (for example **Add 3 genes as columns**, **Copy 3 genes** or **Score 3 genes**)

Live gene columns are listed under a single **Spatial table** group in the Measurements tab, without a **Run** button, since there is nothing to compute. From there they behave like the rest of your properties:

* **Showing values** — show and hide them as columns in the object list, as described in [Finding and showing measurements](/documentation/analyzing-image-data-with-objects-connections-and-properties/interacting-with-objects#finding-and-showing-measurements)
* **Filtering** — use them in property filters, like any numeric property
* **Coloring** — pick a gene in [Color by Property](/documentation/analyzing-image-data-with-objects-connections-and-properties/interacting-with-objects#coloring-objects-by-a-property-value). For cluster ids, choose **Categorical**, since **Auto** may give integer clusters a continuous ramp
* **Plotting and gating** — use genes as axes in the [Analysis panel](/documentation/analyzing-image-data-with-objects-connections-and-properties/analysis-plots-and-gating) and draw gates on them
* **Exporting** — CSV export includes live columns, named `spatial / <gene>`

Cell types arrive as tags, and categorical measurements such as clusters can be filtered as described in [Filtering by text-valued properties](/documentation/analyzing-image-data-with-objects-connections-and-properties/interacting-with-objects#filtering-by-text-valued-properties).

## Analyses

All the spatial analyses start from the **Selection summary**: open the **Import / export data** menu (up/down-arrows icon in the top bar) → **Selection summary**.

### Selection summary

**What it answers:** what is in this population, and how much do its cells express a given gene?

1. Choose **Objects to summarize**: **All objects**, **Filtered objects** (your current filters and gates), or **Selected objects**
2. Read the **Composition by tag** table — count and percentage for each tag, which for Xenium cells means each cell type
3. Optionally pick **Properties to summarize** to get n, mean, SD, min and max for each
4. In the **Expression** section, pick genes under **Genes from the spatial table** to see each gene's **Mean count** and **% expressing** over the same objects
5. **Download CSV** saves the summary, expression included

Mean counts include cells with zero counts.

### Differential expression

**What it answers:** which genes are most differently expressed between two groups of cells?

1. In the Selection summary, choose **Filtered objects** or **Selected objects** — this is **group A**. (The button is disabled for **All objects**, since there would be nothing to compare against.)
2. In the **Expression** section, click **Compare expression…**
3. Choose **group B**: **B: everything else** (the default) or **B: objects with any of these tags**
4. Choose the test: **Welch t-test** (the default) or **Wilcoxon (Mann-Whitney)**
5. Set **Genes to list** (default 50, up to 500) and click **Compare**

Every gene in the table is tested. The result is a ranked table with each gene's **log₂ FC**, **Mean A**, **Mean B**, **% A**, **% B**, the test statistic and **p**, along with the number of cells in each group and the number of genes tested. A positive log₂ fold change means higher in A. **Download CSV** saves the table.

### Neighborhood enrichment

**What it answers:** which cell types sit next to which, more or less often than expected by chance?

1. In the Selection summary, under **Spatial statistics**, click **Neighborhood…**
2. Set the **Radius (µm)** (default 30)
3. Check **Tags that are not types** (default `cell`): tags listed here are ignored when deciding each cell's type
4. Click **Compute**

Each cell's neighbors within the radius are counted by type, where a cell's type is its first tag not in the ignore list. The result is a matrix of log₂ observed / expected neighbor pairs between every pair of types — positive values mean two types are neighbors more often than expected if the type labels were shuffled. Hover over a cell of the matrix for its value; **CSV** downloads it. Each cell's neighbor fractions by type are also saved as a `Neighborhood` measurement, so you can filter, gate and color by them.

The radius needs the dataset's pixel size. When it is blank, NimbusImage fills it in from the expression table, including on the H\&E dataset; the hint under the radius shows the conversion to image pixels.

### Region summaries

**What it answers:** how many cells of each type, and how much expression, fall inside each tissue region?

1. In the Selection summary, under **Spatial statistics**, click **Regions…**
2. Choose **Polygons with a tag** and pick the **Region tag** (for example `region`), or **Selected polygons** (up to 50)
3. Optionally pick **Genes (mean per region)**
4. Click **Summarize**

Each row shows a region, its number of cells and their composition by type, plus the mean count of each chosen gene. A cell belongs to a region when its center lies inside the region polygon. **CSV** downloads the table.

## Editing cells and recomputing the table

When you redraw, add or delete cell outlines, the expression table no longer matches your cells. You can rebuild it from the molecules: every molecule is assigned to the cell polygon it falls in (the smallest polygon wins where outlines overlap), and a new table is written.

The **Cell table** card in the **Transcripts** palette shows the active table and whether it is out of date — for example "12 cells added, 3 edited since this table was built" or "Up to date with the cell polygons." Use its refresh button to check for new edits.

To recompute:

1. In the **Cell table** card, click **Recompute counts…**
2. Enter a **Version label** (default "Recomputed")
3. Choose the scope:
   * **Edited cells only** — rebuilds only the cells that were added, edited or removed, plus their neighbors (molecules may have moved from one cell to the next). Every other row is carried over unchanged. This is much faster on large sections, and needs an existing table with something changed
   * **Every cell (full rebuild)** — reassigns every molecule from scratch
4. Optionally adjust the quality threshold (default 20) and **Only cells tagged** (default `cell`; leave blank to count every polygon)
5. Optionally tick **Also recompute PCA / UMAP / k-means**, which takes minutes on large sections
6. Click **Recompute**

Cell types carry over to the new table from each cell's tags.

{% hint style="info" %}
**When do I need a full rebuild?** An imported table can't tell which cells were edited — only which were added or removed — so recompute once to start tracking edits. Older tables without saved cell footprints also need one full rebuild before **Edited cells only** is available. An edited-cells rebuild also has to use the same quality threshold, tags and transcripts as the active table; if you change any of those, run a full rebuild.
{% endhint %}

### Switching between table versions

Recomputing never discards the previous table: it is kept as a version. Use the drop-down in the **Cell table** card to switch which table is active. Each entry shows its label and size (cells × genes). Switching re-points everything at the newly active table — live gene columns, filters, gates, plots, summaries and differential expression — and gates keep their shapes but are re-evaluated against the new values.

## Python API

The `nimbusimage` Python package exposes the same features through `ds.spatial`: the expression table, transcripts, table versions, neighborhoods and region summaries.

```python
ds.spatial.info()                                  # None when no table is registered
ds.spatial.features("cd", limit=10)                # search genes
ds.spatial.aggregate(["CD3E"], filters={"tags": {"values": ["B Cell"], "exclusive": False}})
ds.spatial.materialize(["CD3E", "MS4A1"], property_name="Gene Expression")
ds.spatial.virtual_path("CD3E")                    # ["spatial", "CD3E"], usable wherever a property path is
ds.spatial.score(symbols, name, method="mean")     # gene-set score
ds.spatial.differential(filters_a, filters_b=None, max_features=50)

ds.spatial.staleness()                             # cells added/edited/removed since the table
ds.spatial.recompute("v2", scope="dirty")          # re-count from the molecules; old table kept
ds.spatial.versions(); ds.spatial.activate_version(item_id)
ds.spatial.compute_neighborhood(radius_pixels=141) # 30 µm at 0.2125 µm/px
ds.spatial.region_summary("region", features=["CD3E"])
```

`aggregate` and `differential` take the same filter object the Objects tab uses, analysis gates included. The Xenium ingest steps are in `nimbusimage.xenium`; see the [API reference](https://arjunrajlaboratory.github.io/NimbusImage/) for details.

## Limitations and tips

* **No Transcripts or Add genes button?** The dataset has no registered transcripts or expression table. Ask whoever runs your server to run the ingest step.
* **"unknown feature"** means that gene isn't in this dataset's table — check the spelling, the `(protein)` suffix, or whether you switched datasets.
* **Live gene columns can't be sorted.** Use **Copy into a measurement** if you need to sort the object list by a gene.
* **H\&E and morphology are separate images.** Use the objects and regions ingested onto the dataset you are viewing; don't import morphology-pixel files onto the H\&E dataset or vice versa.
* **Distances or areas off by a constant factor?** Check the pixel size: click the scale bar in the viewer to open **Scale settings**. A pixel size typed by hand is never overwritten automatically.
* **Region counts look wrong?** Cells are counted by their center. Make sure every region carries the region tag and no cell does; "No polygon carries that tag" means the tag is misspelled or missing.
* **Image area black right after an ingest finishes?** Reload the page.
* **Recompute is 2D.** Molecules are assigned to cells in the image plane; z position is ignored.
* **Ask Nimbus AI.** The [Nimbus AI](/documentation/nimbus-ai) assistant knows how these tools work and can walk you through them.


# Interacting with objects

One of the main advantages of working in NimbusImage is the ability to directly interact with your objects. This interactive approach allows you to quickly refine your analysis by removing incorrect objects, adding missing ones, and organizing them with tags—all within the same interface.

## Selecting and manipulating objects

<figure><img src="https://4239675806-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FX54NriBmLyFl6hdSGC9K%2Fuploads%2Fgit-blob-fd1ca21ff6fad0f52a3689f386472690c88370c8%2Fblobs-on-image.png?alt=media" alt=""><figcaption><p>Green blob objects drawn on an image</p></figcaption></figure>

To interact with objects in your dataset:

* **Shift-drag** across objects to select multiple objects at once
* Once selected, a popup menu appears with several options:
  * **Delete selected** - Remove the selected objects
  * **Delete unselected** - Keep only the selected objects and remove all others
  * **Tag selected** - Add or change tags for the selected objects
  * **Color selected** - Apply custom colors to the selected objects
  * **Copy selected IDs** - Copy the object IDs to clipboard for reference

<figure><img src="https://4239675806-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FX54NriBmLyFl6hdSGC9K%2Fuploads%2Fgit-blob-e0142f13d7970bb22ed879f140624e085b3636d6%2Fselection-popup.png?alt=media" alt=""><figcaption><p>Shift-drag allows you to select objects, revealing a popup menu to allow deletion, tagging, coloring, and identification by ID</p></figcaption></figure>

{% hint style="info" %}
The selection tool is particularly useful for cleaning up results from automated segmentation. You can quickly remove falsely identified objects or select groups of objects to apply a consistent tag.
{% endhint %}

## Object browser and filtering

The Object Browser provides powerful tools for managing which objects are visible in your view:

<figure><img src="https://4239675806-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FX54NriBmLyFl6hdSGC9K%2Fuploads%2Fgit-blob-6427fe6b41f19f26eb7557cdcd65983ba2290c45%2Ffilters-panel.png?alt=media" alt="" width="563"><figcaption><p>The Filters panel shows options for showing and hiding particular tags, plus property-value and advanced filters</p></figcaption></figure>

Key features include:

* **Tag filtering** - Filter objects by their tags (e.g., "nucleus" or "Brightfield blob")
* **Tag match options** - Choose if objects should match "Any" or "All" of the selected tags
* **Current frame only** - When enabled, shows only objects in the currently displayed time frame in the object list (helpful for time-lapse data)
* **Show annotations from hidden layers** - By default, annotations remain visible even when their corresponding layer is hidden; toggle this off to hide annotations when their layer is hidden

### Advanced filtering options

The Object Browser offers three powerful filtering mechanisms:

1. **Property value filter** - Filter objects based on measurements like area, intensity, or other computed properties
2. **Annotation ID filter** - Find specific objects by their unique IDs
3. **Region filter** - Draw a region of interest and show only objects within that area

These filters can be combined to precisely target objects meeting multiple criteria.

### Filtering by text-valued properties

Some properties hold text rather than numbers — for example, a gene name or genotype assigned to each cell. When you add a property filter for one of these, the filter automatically switches from a numeric range to a **value picker**:

* **Search box** — type to narrow the list of values; press Enter to add the exact (or top) match.
* **Value list** — every distinct value with the number of objects that have it, most common first. Click values to select them, or use **Select N shown** to add everything that matches your search.
* **Chips** — selected values appear as removable chips; **Clear** removes them all.

An object passes the filter if its value matches **any** of the selected values. A new text filter starts with nothing selected, which lets every object through. Properties with very many distinct values (more than 20,000) are searched on the server instead of locally.

## Annotation list

The Annotation List provides a detailed tabular view of all objects in your dataset:

<figure><img src="https://4239675806-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FX54NriBmLyFl6hdSGC9K%2Fuploads%2Fgit-blob-bdad12c2bf3bc464627df2fa73fc20f1e1d06711%2Fannotation-list.png?alt=media" alt="" width="563"><figcaption><p>The annotation list shows all your objects</p></figcaption></figure>

The list offers several useful features:

* **Customizable columns** - Show or hide information like Annotation ID, Index, Shape, Tags, XY coordinates, Z position, and Time
* **Sorting** - Click any column header to sort by that property
* **Navigation** - Click on any row to navigate directly to that object in the image viewer
* **Bulk actions** - Select multiple objects using the checkboxes and perform actions like deletion or tagging
* **Pagination** - For datasets with many objects, navigate through pages with the pagination controls (10, 50, 100, or 200 objects per page)

{% hint style="info" %}
For very large datasets (hundreds of thousands of objects or more), NimbusImage loads annotations lazily and handles the list on the server so everything stays responsive. See [Working with large annotation datasets](/documentation/analyzing-image-data-with-objects-connections-and-properties/large-annotation-datasets).
{% endhint %}

### Montage view

The montage view shows the objects on the Object Browser's current page as a grid of image crops, one panel per object — a quick way to eyeball every cell that passed a filter, or every object at the top of a sorted column. Open it with the grid button next to the 3D toggle, or with "Open montage view" in the [command palette](/documentation/viewing-your-data#command-palette). It appears over the image viewer, and the other panels stay usable beside it.

The montage follows the Object Browser exactly: the same filters, sort order, and page. To see more objects at once, raise the page size (up to 200) or step through pages.

* **Crops** — each panel shows the object's bounding box plus adjustable padding, at the object's own XY position, Z slice, and time point, using your current layers and contrast settings. Point objects are shown using the padding alone.
* **Scale** — **Same scale** (default) shows every object at one magnification so sizes are comparable; **Fit each** zooms each panel to fill its frame.
* **Labels** — each panel shows the object's number (its Index in the list), plus any property values you choose to display.
* **Interaction** — click a panel to toggle that object's selection; use the panel's "go to" button to navigate to the object in the viewer (which closes the montage). Hovering a panel highlights the object in the list and the image.
* **Export PNG** — save the whole montage, labels included, as a single image.

The montage closes when you switch datasets or enter 3D view.

## Finding and showing measurements

The Object Browser has three tabs — **Objects**, **Measurements**, and **Connections** — and the first two both give you access to your computed properties without opening a separate dialog.

### The measurements chip strip

Above the object list on the Objects tab, a strip of chips shows one chip per computed property, each with an eye icon and a `shown / total` count. Click a single-value property's chip to toggle its column in the list; click a multi-value property's chip to open a compact checklist of its individual values, with Show all and Hide all.

A filter box in the strip matches both property **and** value names, so typing a gene name or a metric name surfaces it directly and narrows the chips' checklists to the match. A pinned **"+ New measurement…"** chip creates a property without leaving the panel. The strip is capped at about three rows and scrolls beyond that, so a dataset with many properties can't take over the panel.

### The Measurements tab

The Measurements tab lists every property — including ones you haven't computed yet — with value counts, "N shown" badges, per-value show/hide checkboxes, and a **Run** button per property so you can compute one without going through the Measure dialog. Compute errors and warnings appear here as alerts.

## Coloring objects by a property value

Beyond showing measurements as numbers, you can color your objects by them. Use the **Color objects by property** button in the app bar, or the annotation list's **More Actions → Color by Property…**, and pick a computed property — including a nested path such as a per-channel mean. Every object in the dataset then takes its color from its value, and a legend appears in the viewer explaining the mapping.

You can color either way:

* **Continuous** — values map onto a colormap ramp
* **Categorical** — each distinct value gets its own color from a palette

{% hint style="info" %}
Continuous ramps span the 1st–99th percentile of your values by default rather than the full minimum-to-maximum extent. Real measurements often have a few extreme outliers, and stretching the ramp across them collapses everything else into one indistinguishable color. The legend still reports the true extent and marks the clipped ends with `≤` and `≥`.
{% endhint %}

Two things worth knowing:

* Objects created after you apply a coloring, and property values you recompute afterwards, don't re-color automatically. Re-apply the coloring to refresh it.
* Applying any other coloring — for example, coloring a selection by hand — retires the legend, since it no longer describes what you're looking at.

## Working with properties

Properties allow you to measure features of your objects. These measurements can be displayed alongside your objects and used for filtering:

<figure><img src="https://4239675806-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FX54NriBmLyFl6hdSGC9K%2Fuploads%2Fgit-blob-0237af176929a3626c04a090ab7d48075a3ee2b3%2Fmeasure-objects-dialog.png?alt=media" alt=""><figcaption><p>The Measure objects panel: create new properties on the left, and manage the properties already computed for your objects on the right</p></figcaption></figure>

From the Properties panel, you can:

* **View available properties** - See what measurements are available for each object type
* **Show in list** - Select which properties should appear in the Annotation List
* **Use as filter** - Enable properties to be used for filtering in the Object Browser
* **Measure objects** - Create new properties by applying different measurement algorithms to your objects

{% hint style="info" %}
Press "t" while viewing your image to show property values directly on the objects themselves, making it easy to visualize measurements in context.
{% endhint %}


# Working with large annotation datasets

NimbusImage can visualize very large annotation datasets — hundreds of thousands, or even millions, of objects — while staying responsive. This is especially useful for spatial data (for example, Xenium datasets with hundreds of thousands of cells).

<figure><img src="https://4239675806-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FX54NriBmLyFl6hdSGC9K%2Fuploads%2Fgit-blob-2efbb8c249138d6d291c37dfc1735256857f3d42%2Flarge-annotations-view.png?alt=media" alt=""><figcaption><p>A Xenium H&#x26;E slide with nearly 709,000 cell annotations. The indicator at the top ("Showing 15,900 of 708,780 in view") reflects the lazy-loading described below — only a subset is drawn at a time to keep navigation smooth.</p></figcaption></figure>

{% hint style="info" %}
This works automatically. You don't need to turn anything on: NimbusImage detects when a dataset is large and switches to the lazy-loading behavior described below. Smaller datasets behave exactly as before, loading every object fully at every zoom level.
{% endhint %}

## How lazy loading works

To stay fast with huge numbers of objects, NimbusImage avoids loading everything at once. Instead, it loads and draws only what you need to see:

* **Stubs load first.** Each annotation initially loads as a lightweight "stub" — its position and metadata, but not its full outline coordinates. Loading stubs is fast even for very large datasets.
* **Shapes fill in on demand.** As you view an area, NimbusImage fetches the full coordinates ("hydrates") for the objects in your viewport, prioritizing larger objects and anything you've selected.
* **Dots stand in for shapes.** When more objects are in view than can be drawn as full outlines, the extras appear as small dots so you can still see where everything is. Zoom in and the outlines fill in as fewer objects compete for the budget.
* **Panning and zooming load more.** As you navigate, NimbusImage loads detail for the newly visible area and keeps a cache of recently seen shapes, so revisiting an area is instant.

The result is that scrolling, zooming, and panning stay smooth even on datasets that would previously have been too large to open comfortably.

## The zoomed-out overview

When you are zoomed out far enough that individual outlines would be meaningless anyway, NimbusImage can draw the whole annotation set as a tiled image rather than as hundreds of thousands of separate shapes. Two rendering modes are available: **filled footprints**, showing where objects actually are, and **density**, showing how many are packed into each area.

The overview is built once and cached, and its progress appears in the usual progress bar. Zoom in and NimbusImage hands off from the overview to real, interactive outlines for the region you're looking at.

The overview is not just a picture — you can still select regions while zoomed out, and clicking a row in the object list navigates to that object as usual. The overview also honors the same channel and frame rules as the normal view, so it shows the same objects the vector view would.

## Knowing when something is narrowing your view

The indicator over the image ("Showing 15,900 of 708,780 in view") counts objects **after** your filters and analysis gates have been applied. If a filter is active, both numbers can be much smaller than the dataset — which, without explanation, looks indistinguishable from objects having gone missing.

So when anything is narrowing the count, the indicator says so:

> Showing 826 of 826 in view **(1 filter applied)**

Hovering names the specific constraints — for example, "Objects are narrowed by 1 lasso gate on Area × PECAM1; 1 tag filter" — and clicking opens the panels that own them, so you can see or clear the filter that's responsible.

## The object list for large datasets

The [Annotation List](/documentation/analyzing-image-data-with-objects-connections-and-properties/interacting-with-objects#annotation-list) adapts to dataset size:

* For datasets below a threshold, the list works entirely in your browser, exactly as before.
* For larger datasets, filtering, sorting, and pagination happen **on the server**, so the list stays fast even with hundreds of thousands of objects. Property-value filters are also applied server-side.

{% hint style="info" %}
In server-side mode, changing a filter returns the list to the first page.
{% endhint %}

## Advanced settings for large numbers of annotations

The defaults suit most datasets, but power users can tune the lazy-loading behavior. Open the **Settings** panel and expand **"Advanced settings for large numbers of annotations."**

{% hint style="warning" %}
Showing more annotations at once makes panning large datasets slower. Increase these limits gradually. Each setting has an allowed range; if you enter a value outside it (or one that conflicts with another setting), NimbusImage snaps it to a legal value and briefly shows an "Adjusted to …" note.
{% endhint %}

* **Stub mode threshold** (default: 100,000; range: 1,000–200,000) — The dataset annotation count above which stub-only (lazy) mode activates: stubs load first, and coordinates and property values load on demand. Independent of the render budget below.
* **Max visible annotations** (default: 50,000; range: 1,000–200,000) — The maximum number of annotations drawn per frame (as dots or shapes). This is also the size gate: datasets at or below this value render fully at every zoom. Higher values show more at once but make panning large datasets slower.
* **Max hydrated annotations** (default: 20,000; range: 500–200,000) — The maximum number of annotations drawn as full shapes per refresh; the rest show as dots. Cannot exceed **Max visible annotations**.
* **Hydration cache cap** (default: 40,000; range: 500–200,000) — The total cap on cached full-shape annotations. The cache accumulates across pans and zooms; least-recently-used shapes are evicted once the cap is exceeded (selected objects are protected until the selection alone exceeds the cap). Cannot be below **Max hydrated annotations**.
* **Zoomed-out coverage target** (default: 0.3; range: 0.01–1) — The fraction of the screen that rendered dots may cover when fully zoomed out (only for datasets larger than the render cap). Lower values give a sparser, cleaner overview. The budget doubles per zoom level up to the cap.
* **Viewport refresh threshold** (default: 0.2; range: 0.01–2) — How much the zoom or pan must change (for example, 0.2 = 20% of the viewport) before the view re-renders and re-hydrates. Higher values mean fewer refreshes and less loading churn while navigating.
* **Global threshold (all layers)** (default: on) — When on, the visibility threshold applies to the total number of annotations across all layers. When off, each layer is checked independently.


# Importing and exporting objects and properties

NimbusImage provides flexible options for exporting your analysis data, allowing you to perform additional analysis in external tools, back up your work, or transfer annotations between datasets. This section covers the different export formats and options available.

## Exporting data for analysis

After completing your image analysis in NimbusImage, you can export your data in several formats:

1. **CSV format** - For spreadsheet analysis in tools like Excel, R, or Python
2. **TSV format** - Tab-separated values, useful when property names contain commas
3. **JSON format** - For complete data backup or transfer between datasets

### Exporting properties as CSV or TSV

CSV export is ideal for statistical analysis and data visualization in external tools:

1. Open the **Import / export data** menu in the top toolbar
2. Select **"Export CSV"**
3. Configure your export options:
   * **Scope**: Export the current dataset only, or all datasets in the collection
   * **Annotations to Export**: All, filtered, or selected annotations
   * **File Format**: Choose between CSV (comma-separated) and TSV (tab-separated). CSV is the default.
   * **Property Export Options**: Choose to export all properties, only listed properties, or select specific properties
   * **Undefined Value Handling**: Decide how to represent missing values (Empty string, NA, or NaN)
4. Enter a filename
5. Click "DOWNLOAD"

The resulting file contains:

* Object identifiers and metadata (Id, Channel, XYZ coordinates, Time)
* Object tags and attributes
* All selected property values

<figure><img src="https://4239675806-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FX54NriBmLyFl6hdSGC9K%2Fuploads%2Fgit-blob-05146a091a402661e3ea05524e8b99ec403087a6%2Fexport-csv-dialog.png?alt=media" alt="" width="563"><figcaption><p>The export dialog allows you to customize the file format, which properties to include, and how to handle missing values</p></figcaption></figure>

{% hint style="info" %}
We recommend using the empty string option for undefined values, because it is generally recognized by most analysis software.
{% endhint %}

{% hint style="info" %}
If your property names contain commas (from older tag-based naming), the export dialog will display a warning recommending TSV format. TSV avoids column misalignment issues that commas in property names can cause in CSV files. Property names with commas are automatically quoted in CSV exports, but TSV is the more reliable option.
{% endhint %}

### Exporting complete annotation data as JSON

The JSON export provides a comprehensive record of all annotation data:

1. Open the **Import / export data** menu in the top toolbar
2. Select **"Export to JSON"**
3. Choose what to include:
   * Export annotations (objects)
   * Export annotation connections
   * Export properties
   * Export property values
4. Enter a filename
5. Click "EXPORT SELECTED ITEMS"

<figure><img src="https://4239675806-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FX54NriBmLyFl6hdSGC9K%2Fuploads%2Fgit-blob-4ff21012b824fd56b1f0b6c3d28e55ba4f020c8b%2Fexport-json-dialog.png?alt=media" alt="" width="563"><figcaption><p>The JSON export dialog lets you select exactly which components of your analysis to include</p></figcaption></figure>

The exported JSON file contains:

* Complete geometric data for all annotations (coordinates, shapes, colors)
* All connection information between objects
* Property definitions and calculated values
* Metadata about the dataset

{% hint style="info" %}
JSON export is particularly valuable for:

* Creating a complete backup of your analysis
* Transferring annotations between compatible datasets
* Advanced programmatic analysis using the complete data structure
* Archiving analysis results alongside raw data
  {% endhint %}

## Importing annotation data

NimbusImage allows you to import previously exported JSON files, making it possible to:

1. Restore annotations from backups
2. Transfer annotations between compatible datasets
3. Share analysis with collaborators

To import annotation data:

1. Navigate to the dataset where you want to import annotations
2. Open the **Import / export data** menu in the top toolbar
3. Select **"Import from JSON"**
4. Select your JSON file
5. Review the import options
6. Click "IMPORT"

{% hint style="warning" %}
When importing annotations, be aware that:

* The target dataset should have a compatible structure with the source dataset
* Importing will not overwrite existing annotations unless explicitly configured to do so
* For time-lapse datasets, ensure the time points in the imported data match the structure of your target dataset
  {% endhint %}

## Data ownership and transparency

NimbusImage's export capabilities ensure that you maintain complete ownership of your analysis data. By supporting standard formats like CSV and comprehensive JSON exports, you can:

* Perform advanced analysis in your preferred tools
* Maintain complete backups of your work
* Share results transparently with collaborators
* Integrate NimbusImage analysis into broader workflows
* Create reproducible analysis pipelines

The combination of interactive analysis within NimbusImage and flexible data export options provides a powerful workflow that respects scientific integrity while maintaining ease of use.


# Image processing

Images often can be improved through various image processing techniques. These are for things like background correction to remove uneven illumination, image registration to fix shaky timelapses, and enhance spots.

NimbusImage supports a number of these image processing techniques and we are planning to make more in the near future.

## Overall workflow

The image processing workflow in NimbusImage follows these steps:

1. **Select "ADD NEW TOOL"** from the Toolset panel
2. **Choose a processing tool** (such as "Crop") and create the tool
3. **Configure the tool parameters** as needed in the worker panel that appears after clicking on the tool
4. **Run the worker process** to apply the selected tool to your image
5. **Review results** a new dropdown appears just below the dataset navigator that allows you to switch between the orignal and processed images

<div align="left"><figure><img src="https://4239675806-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FX54NriBmLyFl6hdSGC9K%2Fuploads%2Fgit-blob-df103d262d6b6cda59da5efaac213aba47ac0637%2Fimage-processing-crop.png?alt=media" alt=""><figcaption><p>A processing tool's worker panel (here, Crop) where you configure parameters and click Compute</p></figcaption></figure></div>

<div align="left"><figure><img src="https://4239675806-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FX54NriBmLyFl6hdSGC9K%2Fuploads%2Fgit-blob-57881c16c9feb26bb60960e8fdd65e552439570f%2Fimage-processing-select-image.png?alt=media" alt="" width="314"><figcaption><p>After processing, a "Select Image" dropdown lets you switch between the original and the processed images</p></figcaption></figure></div>

## Crop

The Crop tool allows you to reduce your image dimensions by selecting only a portion of the original image. This is useful for focusing on regions of interest, removing unnecessary image areas. You can both remove entire slices and also crop to particular regions.

### How to use

1. **Add the Crop tool** by clicking the "ADD NEW TOOL" button in the Toolset panel
2. **Configure crop parameters** using one of the following methods:
   * **XY Range**: Specify which XY positions to retain (especially useful for multi-position datasets)
   * **Z Range**: Specify which Z-slices to retain (for 3D images)
   * **Time Range**: Specify which time points to retain (for time-lapse sequences)
   * **Crop Rectangle**: Select a previously drawn rectangle or polygon annotation to define the crop region.
3. **Process the image** by running the worker
4. **Review the result** by switching between "Original image" and "cropped" in the dropdown menu

### Parameters

* **XY Range**: Enter position numbers to retain (format: "1-3, 5-8", or `all`). Default is all positions.
* **Z Range**: Enter Z-slice numbers to retain (format: "1-3, 5-8", or `all`). Default is all Z-slices.
* **Time Range**: Enter time point numbers to retain (format: "1-3, 5-8", or `all`). Default is all time points.
* **Crop Rectangle**: Select a tag that identifies a rectangle or polygon annotation to define the crop region.

### Technical details

The Crop tool works by creating a new image that contains only the specified region of interest from the original image. For annotation-based cropping, the tool uses the bounding box coordinates of the selected annotation to define the crop region. All metadata from the original image is preserved in the cropped output.

## Registration

The Registration tool corrects for movement and shift in time-lapse image sequences, helping to stabilize your data for more accurate analysis. This is particularly useful for long time-lapse experiments where sample drift occurs. It allows you to use both automated algorithms and manual control points to guide the registration process; you can even use both at the same time.

### How to use

1. **Add the Registration tool** by clicking the "ADD NEW TOOL" button in the Toolset panel
2. **Set the reference** parameters:
   * **Reference Z Coordinate**: Specify which Z-slice to use as reference
   * **Reference Time Coordinate**: Specify which time point to use as reference
   * **Reference Channel**: Select which channel to use for registration calculations
   * **Reference region tag**: Optionally restrict registration to a specific region of interest
3. **Select correction options**:
   * **Channels to correct**: Check which channels should be adjusted
   * **Control point tag**: Optionally use point annotations to guide registration
   * **Algorithm**: Choose the registration method that best suits your data
4. **Process the image** by running the worker
5. **Review the result** by switching between "Original image" and "registered" in the dropdown menu

### Parameters

* **Apply to XY coordinates**: Specify which XY positions to correct (format: "1-3, 5-8")
* **Reference Z Coordinate**: The Z-slice used as reference (default: 1)
* **Reference Time Coordinate**: The time point used as reference (default: 1)
* **Reference Channel**: Channel used for calculating registration
* **Channels to correct**: Select which channels to apply registration to
* **Reference region tag**: Optional tag for a region to use for registration calculations
* **Control point tag**: Optional tag for point annotations to use as registration anchors
* **Apply algorithm after control points**: When checked, applies the algorithm after control point corrections. For instance, you can use control points to roughly register your images and then use the algorithm to fine-tune the registration.
* **Algorithm**: Registration method to use (strongly recommended to use the default "Translation" algorithm):
  * **None (control points only)**: Uses only control points for registration
  * **Translation**: Corrects for X/Y movement (shifting)
  * **Rigid**: Corrects for translation and rotation
  * **Affine**: Corrects for translation, rotation, and scaling

### Technical details

The Registration tool calculates transformation matrices between time points using the StackReg algorithm from the PyStackReg library. For time-lapse sequences, each frame is aligned relative to the reference frame, creating a stable series where features remain in consistent positions.

The tool can use manual control points (annotated points that indicate the same feature across time points) to guide registration or can automatically detect and track features. When both are used, control points provide initial guidance followed by algorithmic refinement.

## Histogram Matching

The Histogram Matching tool normalizes intensity distributions across multiple images by matching their histograms to a reference image. This is particularly useful for correcting intensity variations in time-lapse sequences or multi-position acquisitions, ensuring consistent visualization and analysis.

### How to use

1. **Add the Histogram Matching tool** by clicking the "ADD NEW TOOL" button in the Toolset panel
2. **Set the reference image** by specifying:
   * **Reference XY Coordinate**: The position to use as reference
   * **Reference Z Coordinate**: The Z-slice to use as reference
   * **Reference Time Coordinate**: The time point to use as reference
3. **Select channels to correct** by checking the appropriate channel boxes
4. **Process the image** by running the worker
5. **Review the result** by switching between "Original image" and "normalized" in the dropdown menu

### Parameters

* **Reference XY Coordinate**: The XY position to use as intensity reference (default: 1)
* **Reference Z Coordinate**: The Z-slice to use as intensity reference (default: 1)
* **Reference Time Coordinate**: The time point to use as intensity reference (default: 1)
* **Channels to correct**: Select which channels should be histogram-matched

### Technical details

The Histogram Matching tool works by analyzing the intensity distribution of each specified channel in the reference image, then transforming the histograms of all other images to match that reference. This process preserves the relative differences in intensity within each image while making the overall intensity ranges consistent across the entire dataset.

This technique is especially valuable when:

* Comparing images acquired with different exposure settings
* Analyzing time-lapse data where photobleaching causes intensity decay over time
* Standardizing multi-position acquisitions with varying background intensities
* Preparing datasets for quantitative analysis that requires consistent intensity values

The implementation uses scikit-image's `match_histograms` function to perform precise histogram transformations while maintaining image details.

## Gaussian Blur

The Gaussian Blur tool smooths images by applying a Gaussian filter, which reduces noise and detail. This is useful for removing high-frequency noise, creating soft focus effects, or as a preprocessing step for other analysis techniques.

### How to use

1. **Add the Gaussian Blur tool** by clicking the "ADD NEW TOOL" button in the Toolset panel
2. **Configure the blur settings**:
   * **Sigma**: Control the blur strength (higher values create stronger blurring)
   * **Channel**: Select the default channel to blur
   * **All channels**: Check which channels should be processed
3. **Process the image** by running the worker
4. **Review the result** by switching between "Original image" and the blurred result in the dropdown menu

### Parameters

* **Sigma**: Determines the strength of the blur effect (range: 0-100, default: 20)
* **Channel**: The default channel to blur
* **All channels**: Select multiple channels to apply blurring to

### Technical details

The Gaussian Blur tool applies a Gaussian filter to the selected channels of your image. This filter uses a Gaussian function (bell curve) to create a weighted average of each pixel's neighborhood. The sigma parameter controls the standard deviation of this Gaussian function - larger values consider pixels from a wider area, creating stronger blurring effects.

The implementation uses scikit-image's `filters.gaussian` function to perform the blurring operation. The tool preserves the original image's data type and dynamic range while applying the blur effect proportionally to the image's intensity values.

This technique is particularly useful for:

* Reducing random noise in images
* Softening edges and textures
* Preprocessing images before feature detection or segmentation
* Creating depth-of-field effects

## Rolling Ball

The Rolling Ball tool performs background subtraction, removing slowly varying background signal such as uneven illumination or diffuse haze while leaving smaller foreground features (cells, spots, and other structures) intact. It is the tool to reach for when you want simple background correction on fluorescence microscopy images, for instance before measuring intensities.

### How to use

1. **Add the Rolling Ball tool** by clicking the "ADD NEW TOOL" button in the Toolset panel and choosing "Rolling Ball" from the Image Processing category
2. **Configure the correction settings**:
   * **Radius**: Set the size of the rolling ball (see below for how to choose it)
   * **Channels to correct**: Check which channels should be background-subtracted
3. **Process the image** by running the worker
4. **Review the result** by switching between "Original image" and the corrected result in the dropdown menu

### Parameters

* **Radius**: The radius of the rolling ball, in pixels (range: 0–100, default: 20). Smaller radii remove finer-grained background variation; larger radii remove only broad, slowly varying background. Choose a radius larger than the features you want to keep.
* **Channels to correct**: Select which channels to apply background subtraction to. Unselected channels are copied to the output unchanged.

{% hint style="info" %}
If you select a channel that doesn't exist in the dataset (for example, from a saved tool configuration run on a dataset with fewer channels), the job reports it: you get a warning if some of the selected channels are missing, or an error if none of them exist.
{% endhint %}

### Technical details

The rolling ball algorithm estimates the local background by "rolling" a ball of the specified radius underneath the image's intensity surface. The surface traced out by the ball is taken as the background, and it is subtracted from the original image. Each selected frame (every XY position, Z-slice, and time point of the chosen channels) is corrected independently.

The implementation uses scikit-image's `restoration.rolling_ball` function. The result is uploaded as a new image in your dataset, with channel names and pixel size carried over from the original; the radius used is recorded in the new image's metadata.

## H\&E Deconvolution

The H\&E Deconvolution tool separates a brightfield RGB image of an H\&E-stained (hematoxylin and eosin) histology slide into its individual stain components. Instead of a mixed pink-and-purple color image, you get separate channels for hematoxylin (which stains nuclei) and eosin (which stains cytoplasm and extracellular matrix). These channels behave like any other channel in NimbusImage, so you can contrast them independently or run segmentation tools, such as Cellpose-SAM, on the hematoxylin channel to find nuclei.

{% hint style="info" %}
This tool is designed specifically for H\&E-stained histology images. It will not give meaningful results on fluorescence images or other stain types.
{% endhint %}

### How to use

1. **Upload your RGB image** so that it has three channels (red, green, blue). If your file is imported as a single color image, use Advanced Import and make sure the RGB bands are split into separate channels.
2. **Add the H\&E Deconvolution tool** by clicking the "ADD NEW TOOL" button in the Toolset panel and choosing "H\&E Deconvolution" from the Image Processing category
3. **Set the Max percentile** (the default of 99 works well for most slides)
4. **Process the image** by running the worker
5. **Review the result** by selecting the deconvolved image from the "Select Image" dropdown just below the dataset navigator

### Parameters

* **Max percentile**: The upper percentile used to rescale each stain channel's intensity (range: 0–100, default: 99). Values above this percentile are clipped to the maximum brightness. Lower values increase contrast but clip more of the brightest pixels; higher values preserve more of the bright end at the cost of contrast.

### Technical details

The tool converts each RGB image into the HED (Hematoxylin–Eosin–DAB) color space using scikit-image's `rgb2hed` color deconvolution. It then rescales each resulting channel to 8-bit (0–255), mapping the range from zero to the chosen percentile onto the full output range. Every XY position, Z-slice, and time point is processed.

The output is uploaded as a new image in your dataset with three channels:

* **Channel 1**: Hematoxylin
* **Channel 2**: Eosin
* **Channel 3**: DAB (a stain used in immunohistochemistry; for a plain H\&E slide this channel carries little real signal)

The output channels keep the original channel names (for example, the red, green, and blue names), even though they now hold stain values rather than color values.

**Requirements**: The image must have exactly three channels. Images with a different number of channels are rejected with an error.

## Deconvolution (Deconwolf)

The Deconvolution tool uses [deconwolf](https://github.com/elgw/deconwolf), an open-source 3D deconvolution engine, to computationally reverse the optical blurring inherent in fluorescence microscopy images. It applies the Richardson-Lucy algorithm with a theoretically generated Born-Wolf point spread function (PSF) to produce sharper images with improved contrast and resolution. GPU acceleration is supported and enabled by default.

This tool is designed for fluorescence microscopy Z-stacks. If the input image has only a single Z-slice, deconvolution is not applicable and the image will pass through unchanged.

### How to use

1. **Add the Deconvolution tool** by clicking the "ADD NEW TOOL" button in the Toolset panel
2. **Select channels to deconvolve** using the channel checkboxes. Unselected channels pass through to the output unchanged.
3. **Set optical parameters** either manually or by enabling "Auto-extract from ND2" to read them from your image metadata:
   * **Numerical Aperture (NA)**: The NA of your objective lens
   * **Refractive Index**: The immersion medium refractive index (1.0 for air, 1.515 for oil)
   * **Pixel Size XY**: Lateral pixel size in nanometers
   * **Z Step**: Axial step size between Z-slices in nanometers
   * **Emission Wavelength**: Emission wavelengths for your channels
4. **Adjust processing settings** as needed:
   * **Iterations**: Number of Richardson-Lucy iterations (higher = sharper but slower)
   * **Use GPU**: Enable for faster processing (falls back to CPU automatically if unavailable)
   * **Tile Size / Overlap**: For processing large images in tiles
5. **Process the image** by running the worker
6. **Review the result** by switching between "Original image" and the deconvolved result in the dropdown menu

### Parameters

* **Channels to deconvolve**: Select which channels to deconvolve; unselected channels pass through unchanged
* **Auto-extract from ND2**: Attempt to read optical parameters (pixel size, NA, refractive index, emission wavelengths) from image metadata. Any parameters not found fall back to the manually entered values.
* **Numerical Aperture (NA)**: Numerical aperture of the objective lens (range: 0.1–1.7, default: 0.75)
* **Refractive Index (ni)**: Immersion medium refractive index (range: 1.0–1.6, default: 1.0)
* **Pixel Size XY (nm)**: Lateral pixel size in nanometers (range: 1–10000, default: 325)
* **Z Step (nm)**: Axial step size between Z-slices in nanometers (range: 1–50000, default: 5000)
* **Emission Wavelength (nm)**: Comma-separated emission wavelengths, one per channel in order. A single value applies to all channels. Defaults to 450, 520, 580, 680 nm if left blank.
* **Iterations**: Number of Richardson-Lucy iterations (range: 1–200, default: 50). Typical range is 20–100.
* **Use GPU**: Enable GPU acceleration via OpenCL. Falls back to CPU automatically if no compatible GPU is available.
* **Tile Size (pixels)**: Maximum tile dimension for processing large images (range: 256–8192, default: 1024). Images exceeding this size in either dimension are processed in tiles.
* **Tile Overlap (pixels)**: Overlap between adjacent tiles to reduce edge artifacts (range: 0–500, default: 100).

### Technical details

The tool wraps two deconwolf command-line programs:

* **`dw_bw`** generates a theoretical PSF using the Born-Wolf diffraction model given the optical parameters. The PSF axial size is set to `2 × num_z_slices − 1` to cover the full extent of the image.
* **`dw`** performs Richardson-Lucy deconvolution of each Z-stack against the corresponding PSF.

Each Z-stack (grouped by XY position, timepoint, and channel) is deconvolved independently. The deconvolved and pass-through frames are then assembled into a multi-dimensional TIFF preserving the original image structure.

**GPU acceleration**: When enabled, deconvolution is attempted on the GPU first. If OpenCL fails (e.g., no compatible GPU is present), the worker automatically falls back to CPU processing, so the tool is safe to use on any machine.

**Tiling**: For images where either dimension exceeds the tile size, deconwolf's built-in tiling mode splits the image into overlapping tiles, deconvolves each independently, and stitches them back together. The overlap parameter controls how much adjacent tiles share to minimize edge artifacts.

**ND2 metadata extraction**: When auto-extraction is enabled, the worker reads pixel size, NA, refractive index, and emission wavelengths from the image's ND2 metadata. Any parameters not found in the metadata fall back to the manually entered values.

For more details on the deconwolf algorithm, see: Wernersson, E. (2024). deconwolf — Large deconvolution with GPU or CPU. *SoftwareX*, 27, 101747.

## Stitch Refinement + Illumination Correction

When you upload a tiled acquisition with **Composite** checked, NimbusImage assembles the individual stage positions into one large image using the stage coordinates recorded by the microscope. Those coordinates are usually close but rarely perfect, so tiled images often show faint seams. Two things cause them: the stage position for each tile can be off by a few pixels, and each raw tile is typically brighter in the middle than at its edges (vignetting), which makes the tile boundaries appear as a grid pattern across the mosaic.

The Stitch Refinement + Illumination Correction tool fixes both problems at once. It goes back to the original raw tiles, measures how neighboring tiles actually overlap, solves for a consistent set of corrected tile positions, and fits a per-channel flat-field model from those same overlaps. The corrected mosaic is uploaded as a **new** image in your dataset — your original image is never modified.

{% hint style="info" %}
This tool needs the original, unstitched tiles, so it only works on datasets that were composited by NimbusImage from a Nikon .nd2 file. It cannot run on an image that was already stitched before it reached NimbusImage (for instance, one stitched in Nikon Elements), because the overlapping raw tiles it measures no longer exist in such a file. For images like that, use [Stitched TIFF Illumination Correction](#stitched-tiff-illumination-correction) instead.
{% endhint %}

### Before you start: upload with "Composite" checked

The tool can only run on a dataset that has NimbusImage's compositing geometry. To set that up:

1. **Use Advanced Import** when you upload your .nd2 file, rather than Quick Import.
2. **Check "Composite"** at the variable-assignment step. This tells NimbusImage to lay the stage positions out side by side into a single large image instead of making them a variable you scroll through. See [Compositing](/documentation/images-datasets-and-collections) for more on what this option does.
3. **Keep the original .nd2 file** in the dataset. The tool re-reads the raw tiles from it, and it will stop with an error if that file has been deleted.

The dataset must be composited from a single .nd2 file; composites assembled from a mix of source files are not supported.

### How to use

1. **Add the tool** by clicking "ADD NEW TOOL" in the Toolset panel and choosing "Stitch Refinement + Illumination Correction" from the Image Processing category
2. **Choose a refinement channel** — the channel used to align neighboring tiles. A channel with sharp, high-contrast structure works best; the first channel (usually DAPI) is a good default.
3. **Decide whether to refine positions.** Leave "Refine stitch positions" checked to correct tile placement as well as illumination. Clearing it applies illumination correction only and keeps the original tile positions exactly as they are.
4. **Pick an illumination algorithm.** The recommended option additionally corrects for small brightness differences between individual tiles.
5. **Run the worker.** Processing takes a while for large mosaics, since every raw plane in the file is corrected and rewritten.
6. **Review the result** by selecting the new corrected image from the "Select Image" dropdown just below the dataset navigator.

{% hint style="warning" %}
Existing objects are **not** moved when tile positions are refined. If your dataset already has annotations, their coordinates can shift by tens of pixels relative to the corrected image. It is best to run this tool before you start annotating.
{% endhint %}

### Parameters

* **Refine stitch positions**: When checked (default), applies the corrected tile translations. When cleared, overlaps are still measured for the illumination fit, but the original tile positions are kept.
* **Refinement channel**: The channel used to align neighboring tiles (default: the first channel). Tiles are aligned on a maximum-intensity projection through Z of this channel.
* **NCC threshold**: The minimum normalized cross-correlation score an adjacent tile pair must reach to be trusted (range: 0.5–1.0, default: 0.5). Lower values keep more dim or low-texture pairs but risk false matches; higher values are stricter but can leave parts of the tile grid disconnected.
* **Illumination algorithm**: Choose between "Overlap DCT + tile gains (recommended)", which also fits a small per-tile brightness gain, and "Overlap DCT", which fits only the shared flat-field shape.
* **Output filename**: An optional name for the resulting `.tif`/`.tiff` file. Left blank, the name is derived automatically from the source .nd2.

### Technical details

**Position refinement.** The existing stage geometry is used as a starting point rather than thrown away — the tool never re-derives the stage layout from scratch and never changes the camera's rotation or flip, only the translations. For each adjacent tile pair it builds a maximum-Z reference tile from the refinement channel, then searches around the position the metadata predicts (a coarse ±24 pixel search at 3 pixel steps, followed by a fine ±4 pixel search at 1 pixel steps), scoring each candidate by normalized cross-correlation. Pairs scoring below the NCC threshold are discarded. All the remaining constraints are then solved together, weighted by their NCC scores, with the average coordinate shift held at zero so the mosaic does not drift as a whole. If part of the tile grid ends up disconnected, a conservative global fit is used as a fallback for those tiles.

**Illumination correction.** A smooth flat field is fitted per channel from the aligned raw-tile overlaps: wherever two tiles image the same piece of sample, any brightness difference between them must come from the illumination profile rather than the specimen. The fit uses a low-order (order-5) two-dimensional discrete cosine transform with a robust, outlier-resistant regression, computed at 128×128 and expanded to the full camera dimensions. Because overlaps only cover the margins of each tile, the fit is anchored so that the correction stays neutral in the un-overlapped tile interiors, where the overlaps provide no evidence about the illumination. Without this anchoring, the correction could over-shoot in the tile centers and leave corrected tiles a few percent darker in the middle than at the edges — a residual grid pattern most noticeable in dim, low-contrast background channels once you stretch the display contrast. The recommended algorithm additionally fits a regularized per-position gain, capped to a 1.10-fold range, to absorb small tile-to-tile brightness differences. Every channel is corrected independently, and all time points and Z planes are corrected using the model fitted from the reference Z plane at the first time point.

**Output.** Corrected raw planes are streamed into a lossless pyramidal TIFF — the assembled mosaic is never held in memory, so very large tiled images can be processed. The result is uploaded as a new item in the dataset and appears alongside the original in the "Select Image" dropdown, where it can also be deleted independently if you don't want to keep it.

**Diagnostics.** The job report and the new image's metadata record the predicted and measured offset and NCC score for every tile pair, the number of pairs accepted, the per-pair residuals from the solved fit, the mosaic bounds before and after, and per-channel illumination model diagnostics (including the fraction of each tile covered by overlaps and the strength of the interior anchoring). A warning appears if the largest residual exceeds 2 pixels, or if the outer edge of the mosaic moves by more than 16 pixels.

### Tuning and troubleshooting

* **Leave the NCC threshold at 0.5** for normal runs. On a well-behaved dataset, essentially every adjacent pair scores far above it.
* **Raise the threshold** only if the report shows low-scoring pairs with inconsistent offsets, a large residual, or you can still see misregistration in the output. Be aware that raising it too far can disconnect part of the tile grid.
* **If the job reports that no pairs met the threshold**, the refinement channel probably lacks texture in the overlap regions. Choose a sharper, higher-contrast channel, or lower the threshold back toward 0.5.

### Limitations

* Only composited Nikon .nd2 datasets are supported, and the composite must come from a single .nd2 file.
* Already-stitched images are rejected before processing, as are datasets whose original .nd2 has been deleted.
* Only tile translations are refined; all tiles must share a single camera orientation.
* Existing object coordinates are not migrated to the corrected image.

## Stitched TIFF Illumination Correction

If your tiled image was already stitched before it reached NimbusImage — for example, a mosaic exported from Nikon Elements or another stitching program — the raw overlapping tiles that [Stitch Refinement + Illumination Correction](#stitch-refinement--illumination-correction) relies on are gone. The Stitched TIFF Illumination Correction tool is the fallback for that situation. It works only from the pixels in the stitched image: it detects the repeating tile grid, fits an illumination model per channel, and uploads a corrected copy as a **new** image in your dataset. Your original image is never modified.

Because it can't see the true overlaps, this tool can't refine tile positions and has to be more careful about what it corrects. Its default "Automatic" mode fits several candidate correction models, tests each of them on Z planes it didn't fit on, and keeps a correction only if it clearly improves the grid pattern without damaging your data. If nothing passes, the channel is left unchanged and you get a warning saying so. This is deliberately conservative — it will sometimes decline to correct a channel rather than risk altering real biology.

{% hint style="info" %}
Whenever the original .nd2 is still in your dataset, prefer Stitch Refinement + Illumination Correction. It has access to the raw tile overlaps and produces a better-constrained correction, and it fixes tile placement at the same time.
{% endhint %}

### How to use

1. **Navigate to a well-focused plane.** The tool fits its models on the XY position, Z plane, and time point you are currently viewing (unless you override them in the parameters), so pick a representative, in-focus plane.
2. **Add the tool** by clicking "ADD NEW TOOL" in the Toolset panel and choosing "Stitched TIFF Illumination Correction" from the Image Processing category.
3. **Check the channels to correct.** Each checked channel gets its own independently fitted model; unchecked channels are copied through untouched.
4. **Leave the algorithm on "Automatic"** unless you have a reason to force a specific model.
5. **Run the worker.** Automatic mode takes longer than a single algorithm because it fits and evaluates several candidates per channel.
6. **Review the result** by selecting the new corrected image from the "Select Image" dropdown just below the dataset navigator. Check the job report for any channels that were left unchanged.

{% hint style="warning" %}
Only the current XY position and time point are corrected (across all Z planes). Other positions and time points are copied to the output unchanged, because their tile grids and brightness offsets can differ. Multi-position or time-lapse datasets need a separate run per position or time point.
{% endhint %}

### Parameters

* **Channels to correct**: The channels for which correction models are fitted and applied. Each channel is corrected independently; only the grid geometry is shared.
* **Algorithm**: "Automatic (recommended)" compares every candidate and picks the best one per channel, including leaving the channel unchanged. You can instead force BaSiC, Folded log-gradient, or Split-half affine (see below).
* **Reference channel mode**: By default the tool scans all channels and uses the one with the clearest tile grid to determine the grid geometry. Switch to manual mode to name the channel yourself.
* **Reference channel**: The channel used for grid detection when the reference mode is manual (default: the first channel).
* **Reference XY / Z / Time** (1-based): The plane used for fitting. Left blank, the tool uses the position you are currently viewing. Choose a well-focused Z plane.
* **BaSiC darkfield**: When forcing the BaSiC algorithm, choose whether to include an additive dark-field term. Automatic mode always evaluates both settings.
* **Per-tile gain correction**: Off by default. An experimental option that also corrects whole-tile brightness differences for the BaSiC and Folded log-gradient models. Because a tile that is genuinely brighter (more cells, more signal) looks the same as a tile with a gain error, this can absorb real biological differences — enable it with care.
* **Punctate channels for spot metric**: Channels containing spot-like signal (for example, RNA FISH). For these channels, Automatic mode additionally checks that detected spot counts are uniform across the tile grid. Leave empty for diffuse signal.
* **Output type**: "Float32 (recommended)" keeps the corrected values exactly. "Preserve source dtype" writes the original integer type instead, and fails if more than a negligible fraction of pixels would be clipped.
* **Validate every corrected plane**: On by default. Re-checks each output plane for damage to object intensities, fine detail, and numeric range, not just the held-out planes used for selection.
* **Minimum / Maximum tile pitch**: The range of tile sizes, in pixels, the grid detector will consider (default: 150–1400 px). Adjust only if your tiles fall outside this range.

### Technical details

**Grid detection.** The tool looks for a repeating brightness pattern in each image axis to find the physical tile pitch and the seam positions between tiles. Each axis must contain at least four full tile periods for detection to work. In automatic reference mode, every channel is analysed and the dominant pitch shared across channels is used, taken from the channel where it is measured most cleanly.

**Candidate algorithms.**

* **BaSiC** resamples complete tile-to-tile intervals onto a common tile coordinate and fits a multiplicative flat-field (and optionally an additive dark-field) using the BaSiCPy implementation, then expands the result across the mosaic using the measured seam positions. Both darkfield settings are tried in Automatic mode.
* **Folded log-gradient** combines the gradients of log intensity across all tiles, integrates the resulting periodic gradient field with a Fourier-domain Poisson solve, and expands the result over the mosaic. It is useful for dense or saturated channels where the background is dominated by signal.
* **Split-half affine** estimates separable multiplicative and additive curves along each axis, keeping each spatial frequency only in proportion to how reproducibly it appears in two independent halves of the tiles. It is the most conservative candidate.
* **Identity** — leaving the channel unchanged — is always a candidate and is the baseline every correction must beat.

**Automatic selection.** Models are fitted on the reference Z plane and scored on held-out Z planes (the first, middle, and last planes, excluding the one used for fitting). Scores measure the residual grid pattern: within-tile brightness falloff, modulation at the tile frequency, position-dependent background, background dynamic range, and tile-to-tile scatter. A correction replaces the unchanged image only if it improves the aggregate score by more than 5% *and* improves every held-out plane; ties go to the simpler model. Candidates are rejected outright if they reorder object intensities (Spearman rank below 0.98), lose fine detail (high-frequency power below 90% of the original), push any real object's intensity to zero, or produce non-finite or newly non-positive pixels. Because selection needs at least one Z plane it didn't fit on, Automatic mode leaves single-Z datasets unchanged; you can still force a specific algorithm on those, accepting that it is fitted and applied on the same plane.

**Output.** The corrected image is uploaded to your dataset with channel names, pixel size, and magnification carried over from the source. Its metadata records the requested and selected algorithm per channel, the full candidate scores and rejection reasons, the reference coordinates and held-out planes, the measured pitch and seam positions, and the worker version.

### Limitations

* Requires a stitched mosaic with a regular, repeating tile pattern; irregular or single-tile images cannot be processed.
* Tile positions are not refined — only illumination is corrected.
* Only the reference XY position and time point are corrected; other positions and time points are passed through unchanged.
* Automatic mode needs at least two Z planes.


# Snapshots

How to use Snapshots to "bookmark" and download image and movies from your data

Snapshots serve a few purposes:

1. Bookmark a location in your dataset to facilitate sharing.
2. Download images of specific regions for publication purposes.
3. Download movies from your dataset to make it easy to share these with people.

## Making a Snapshot

Making a snapshot is easy. Just open the Snapshot pane by clicking here.

Drag the red rectangle to cover the area of interest. The pixel-precise location area are also given in numerical fields, so you can make it precisely the size you would like. A couple convenience functions are there:

1. **Set frame to current viewport.** If you've zoomed into a place you like, then click this button and the frame of the Snapshot will be set to precisely the region you zoomed to.
2. **Set frame to maximum.** This button will reset the frame to contain the entire image in the view.

## Selecting multiple Snapshots

You can select multiple snapshots using checkboxes next to each snapshot in your snapshot list. This makes it easy to:

* Download images for multiple snapshots at once
* Delete multiple snapshots simultaneously
* Organize and manage your snapshot collection efficiently

Simply check the boxes next to the snapshots you want to work with, then choose the appropriate action from the available options.

## Downloading Images and Movies

### Image Download Options

<div align="left"><figure><img src="https://4239675806-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FX54NriBmLyFl6hdSGC9K%2Fuploads%2Fgit-blob-e6b0bb73e4bf30d5b06c755a4a597b6b4a715679%2Fsnapshots-download-options.png?alt=media" alt="" width="375"><figcaption><p>Downloading options</p></figcaption></figure></div>

There are multiple ways in which you can download Snapshot images for use in a publication or presentation.

**Scaled layers vs Raw channels.** You can either download contrasted images or raw pixel value images. Note that all contrasts are linear and hence allowed by most major journals.

**Format.** Select the desired file format for your downloaded images. PNG is the default option, which preserves image quality.

**Layer download options.** There are several ways you can download your images:

1. **Download images for current location.** Gives you images for the current snapshot location with these options:
   * *All layers.* Provides an image file for each layer separately.
   * *Composite layers.* Provides a composite image with all layers merged together, matching what is on screen.
   * *Individual layers.* Allows you to download an image just for the specific layer selected.
2. **Download images for all snapshots.** Applies the selected download options to all snapshots in your dataset.
3. **Download movie for current location.** Creates a movie from the current snapshot location.
4. **Download screenshot of current viewport.** Allows you to download a "screenshot" of exactly what you see on screen, including all annotations and the scale bar if enabled.

**Download across XY, Time, and Z.** By default a snapshot downloads the single XY position, time point, and Z slice it was saved at. Check any combination of the "Download across" XY, T, and Z boxes to export the same field of view at every value of those dimensions — for example, every Z slice of a stack, or every time point of a movie as separate stills. This works for the current snapshot, all snapshots, or a selection of snapshots. When more than one image results, they download as a single ZIP containing one TIFF per position, channel, and layer, with the coordinates in each filename. Your current viewer location and layer settings are not changed.

{% hint style="info" %}
TIFF downloads preserve the exact pixel values sent by the server and therefore do not include the scale bar drawn on the canvas. Use PNG or the viewport screenshot if you need the scale bar burned into the image.
{% endhint %}

### Scale Bar Options

You can add a scale bar to your exported images by checking the "Add scalebar" option. Click the settings icon next to the scale bar option to customize:

<div align="left"><figure><img src="https://4239675806-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FX54NriBmLyFl6hdSGC9K%2Fuploads%2FeB21ifT4kfJqt5l9oDk4%2Fsnapshot_scalebar.jpg?alt=media&amp;token=f4d9ead2-7a7f-41c9-a8b2-40c842058ebd" alt="" width="375"><figcaption></figcaption></figure></div>

**Pixel size options:**

* Use pixel size from dataset (based on pixel size reported in the microscope metadata)
* Manually select pixel size

**Scalebar length options:**

* Automatic scalebar length (automatically calculated to be optimal for most cases)
* Manually select scalebar length

You can also adjust the color of the scale bar using the color slider.

### Time-lapse Movie Options

When downloading a movie from your dataset, you have several options to customize:

<div align="left"><figure><img src="https://4239675806-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FX54NriBmLyFl6hdSGC9K%2Fuploads%2FZAimMRxk6tqPzHdoQQhX%2Fsnapshot_timelapse.jpg?alt=media&amp;token=e92b1655-1aa4-4bac-af77-4f5745323345" alt="" width="375"><figcaption></figcaption></figure></div>

**Time Range:**

* Start Time: The beginning frame number (default: 1)
* End Time: The final frame number

**Frames per Second:** Controls the playback speed of your movie (default: 10 fps)

**Download Format Options:**

* Download zipped sequence of image files (useful if you want to make a movie with some other software)
* Download GIF (useful for sharing on social media)
* Download movie (video file for presentations, WebM format)

**Time Stamp Options:**

* Insert time stamp: Adds a time indicator to each frame
* Initial time: Starting value for the time stamp (default: 0)
* Time step: Increment between frames (default: 1)
* Units: Time units to display (hours, minutes, seconds, etc.)

After configuring your settings, click "Download Movie" to generate and download your time-lapse movie.


# Time lapse mode

How to track and analyze objects across time using Time lapse mode

Time lapse mode in NimbusImage provides powerful capabilities for tracking and analyzing objects across time points. This feature is particularly useful for cell tracking, movement analysis, and other time-dependent studies.

## Enabling Time lapse mode

When working with time lapse datasets, the Time lapse mode option automatically becomes available in the interface:

<div align="left"><figure><img src="https://4239675806-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FX54NriBmLyFl6hdSGC9K%2Fuploads%2Fgit-blob-ba722e745980f570926b64d81a2ebb7871457f22%2Ftimelapse-mode-panel.png?alt=media" alt="" width="314"><figcaption></figcaption></figure></div>

1. Look for the "Time lapse mode" checkbox in the variable navigation panel
2. Check the box to enable tracking visualization and special time lapse features

The "Time lapse mode" checkbox stays in the Navigator, but the controls themselves now live in their own **Time Lapse** palette next to it, rather than inside the Navigator — so turning the mode on doesn't push the Layers and Tools panels down the screen. Closing the palette turns the mode off.

The panel provides a **Window** slider, a **Tags** filter, a **Labels** toggle, track coloring controls, a live track count, and a **Delete all timelapse connections** button.

## Understanding tracks and connections

In Time lapse mode, objects are connected across time points to form "tracks" that represent the same biological entity (like a cell) over time.

### Visualizing tracks

Tracks appear as connected lines between objects across different time points:

<figure><img src="https://4239675806-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FX54NriBmLyFl6hdSGC9K%2Fuploads%2Fgit-blob-c2219ca5c44ddb61a43a1fd295f03990f401464f%2Ftimelapse-tracks.png?alt=media" alt=""><figcaption><p>Two tracked cells at the current time point ("Curr T=9"), each linked back through earlier frames to its start ("T=1")</p></figcaption></figure>

Key features of track visualization:

* **Current time point**: The current time point is highlighted with "Curr T=X" label and typically appears larger
* **Connected objects**: All objects connected to the current object are shown as a track
* **Time labels**: Each object shows its time point (T=1, T=7, etc.). These labels are clickable to take you right to that time point.
* **Connection colors**:
  * **Colored connections**: Normal connections between consecutive time points. Each color represents a different track.
  * **Red connections**: Connections that skip time points (track connecting from e.g. t=8 to t=10)
  * **Line thickness**: Forward-in-time connections are thicker than backward-in-time connections

### Track window setting

The "Window" slider controls how many time points before and after the current time point are shown in the track visualization:

* Higher values show more of the track's history and future
* Lower values focus on just the immediate connections
* Adjust based on the density of your data and analysis needs

The tags field allows you to only do time-lapse analysis on a subset of objects defined by the specified tags.

Delete all timelapse connections will delete all connections made by the "Connect timelapse" tool and also the "Lasso connect".

### Track coloring

Three buttons next to the Labels toggle control how tracks are colored:

* **Give each track its own color** — makes it much easier to follow an individual track through a crowded field
* **Draw every track in one color** — renders every track white, often the clearer choice when many tracks overlap
* **Shuffle track colors** — re-rolls the assignment, which helps when two neighboring tracks happen to land on similar hues

### Track count and jumping to the Connections tab

A live **"N tracks · M links"** readout tells you how many tracks are currently drawn — in the panel above, 121 tracks across 9,965 links. The **Show tracks** button beside it opens the Object Browser straight into the [by-track connection view](/documentation/analyzing-image-data-with-objects-connections-and-properties/tools-for-connecting-objects#browsing-and-editing-connections), where each track shows a color swatch matching the line drawn in the viewer, its size ("18 objects · T1–T17 · 68 links"), and **Select** and **Delete track** actions.

This makes the panel and the list two views of the same thing: spot a suspicious track in the image, click through to its row; or filter tracks by length in the list and watch the image narrow to match.

### Filtering which tracks are drawn

The **Track filters** in the Connections tab — bounds on connections per track, objects per track, and duration in time points — apply to the tracks drawn here as well. Setting a minimum duration is an effective way to clear short, spurious fragments out of the view so you can concentrate on the tracks that persist. See [Filtering by track metrics](/documentation/analyzing-image-data-with-objects-connections-and-properties/tools-for-connecting-objects#filtering-by-track-metrics).

{% hint style="info" %}
Time lapse mode stays responsive on datasets with very large numbers of connections — tens of thousands of links across thousands of objects. Scrubbing through time redraws only the tracks that actually changed rather than rebuilding the whole layer.
{% endhint %}

## Creating and editing tracks

### Using Connect timelapse tool

NimbusImage provides a dedicated tool for connecting objects across time:

Key settings:

* **Object to connect tag**: Select which type of objects to connect (based on their tags)
* **Connect across gaps**: Allows connecting objects even when there are missing time points
* **Max distance**: Maximum pixel distance between objects in consecutive frames to be considered for connection

To use the tool:

1. Create the Tool from the toolset menu
2. Configure the settings
3. Click "COMPUTE" to automatically connect objects based on proximity and settings

### Using Lasso connect for manual tracking

One of the most powerful features is the ability to use a lasso tool to manually define tracks:

1. Create a lasso connect tool from the toolset menu
2. Draw a lasso around the objects you want to connect across time
3. NimbusImage will **automatically connect them sequentially by time point**

This feature is particularly helpful for:

* Connecting "orphaned" objects to existing tracks
* Creating new tracks from scratch
* Fixing tracking errors where automatic tracking failed

Here's an example of connecting up an "orphan" cell at t=8 (orphans are in gray). The track is connected up until t=7 and from t=9 onwards, but sometimes you get a gap in the track because of a missed cell segmentation. Here, we drew in the missing cell manually, but then you want to connect up the track:

<div align="left"><figure><img src="https://4239675806-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FX54NriBmLyFl6hdSGC9K%2Fuploads%2FhgHgvu62xAkgZN9PqOTs%2Fimage.png?alt=media&amp;token=29ecebb7-3c33-45a5-b4d7-801103165c58" alt="" width="563"><figcaption></figcaption></figure></div>

Using "Lasso connect", you can just circle (sloppily) all the points in the track, and it will "auto-magically" connect the tracks up sequentially:

<div align="left"><figure><img src="https://4239675806-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FX54NriBmLyFl6hdSGC9K%2Fuploads%2Fh3ZUuvkGx9F1EL1NQKUI%2Fimage.png?alt=media&amp;token=cbcbfc18-56f5-48b2-b44c-534d134481c6" alt="" width="563"><figcaption></figcaption></figure></div>

### Cutting a track where you see the problem

Connection lines drawn in the viewer are clickable, so when a track visibly jumps to the wrong cell you can select that link and delete it directly — no need to find it in a list first. This is usually the fastest way to repair a track that merged two objects at a single frame.

## Navigating time with tracks

Tracks provide an intuitive way to navigate through time:

* **Click on any point in a track** to jump directly to that time point
* Use this to quickly inspect the history or future of a specific object
* Especially useful when analyzing division events or complex behaviors

## Best practices for time lapse analysis

1. **Start with automatic connections** using the Connect timelapse tool
2. **Review and fix tracks** using the lasso connect tool for any errors
3. **Use track window setting** to adjust visualization density
4. **Enable "Labels"** to see time point information directly on objects
5. **Create properties** to analyze track information (velocity, displacement, etc.)

## Exporting time lapse data

Once you've established tracks, you can:

1. Create properties to measure changes over time
2. Export track data to CSV for further analysis in Python/R
3. Create snapshots to document specific tracking events
4. Download time lapse movies showing your tracks (see [Snapshots](/documentation/snapshots) for more details)

## Common applications

Time lapse mode is particularly useful for:

* Cell migration tracking
* Mitotic event analysis
* Particle movement studies
* Growth measurements over time
* Interaction analysis between objects

By combining NimbusImage's flexible object tagging system with Time lapse mode, you can create sophisticated tracking analyses that capture the dynamic nature of your biological systems.


# Nimbus AI

Use Nimbus AI, a conversational assistant that can drive the NimbusImage interface, run analyses, and answer questions about how the app works

Nimbus AI is a conversational assistant built into NimbusImage. You describe what you want in plain language — "go to the third time point and show only the DAPI channel", "find the nuclei and measure their area" — and the assistant carries it out in your own viewer while you watch. It can also look at your image, summarize and plot your measurements, and explain how to do things in the interface. Nimbus AI currently runs on Claude Sonnet 5.5.

Nimbus AI can only do what you could do yourself by clicking, and it works with your own account and permissions.

To work with your data from outside the app, with Claude Code, Codex, claude.ai, or Claude Desktop, see [Agentic control](/documentation/agentic-control).

## Opening Nimbus AI

You need to be logged in to use Nimbus AI. Open the panel in either of these ways:

* **Robot button.** Click the robot icon at the right end of the top app bar.
* **Command palette.** Press ⌘K (Mac) or Ctrl+K (Windows/Linux), type "AI" or "assistant", and choose **Open Nimbus AI panel**. See [Command palette](/documentation/viewing-your-data#command-palette).

Type your request in the box at the bottom and press Enter to send it (Shift+Enter starts a new line). Each step the assistant takes appears in the panel as a short card (for example, "Move to Z=4") with a running, done, or failed status, followed by a brief summary of the result.

The buttons at the top of the panel let you:

* **Revert** (circular-arrow icon) the view changes from the last message. This appears after a message that changed the view.
* **Start over** (refresh icon) by clearing the conversation.
* **Close** the panel.

While the assistant is working, the send button becomes a red **stop** button that you can use to interrupt it. Your conversation, including any plots, is kept in your browser between sessions until you clear it.

## What Nimbus AI can do

### Looking at your data

* **Check where you are.** The assistant always knows your current dataset, collection, location (XY/Z/time), layers, selected tool, active filters, and object counts.
* **See the image.** When it needs to judge what's actually in the image (for example, what kind of staining or sample is visible), it takes a screenshot of the viewer and looks at it.
* **Count and summarize objects.** It can break down your objects by tag, shape, and channel, or look at a few specific objects.

### Navigating and changing the view

* **Move around.** Go to a different XY position, Z slice, or time point; pan and zoom; or fit the view to all objects, the selected objects, or the full image.
* **Adjust layers.** Change a layer's color, contrast, name, or visibility; show only certain layers; switch between single, multiple, and unrolled layer modes.
* **Display options.** Show or hide objects and connection lines, change object opacity, toggle the scale bar, change the background color, and switch between 2D and 3D views.
* **Select and filter objects.** Select objects by tag, shape, or channel; filter what's shown by tag, by current frame, or by a measurement range (for example, area above 100).

### Tools, workers, and measurements

* **Set up tools.** Create a manual blob, point, or line tool, or an automated worker tool such as Cellpose-SAM or Piscis, with tags and parameters chosen for your channels. It can also activate a tool for you.
* **Run workers.** Run a worker tool on your dataset, then wait for the job to finish and continue with the result.
* **Measure objects.** Set up and compute properties (such as intensity or morphology) for a set of objects, then report summary statistics.
* **Set the physical scale.** Record pixel size, Z step, and time step so that measurements use real units.

### Coloring and tagging objects

* **Color objects.** Give selected objects, or objects matching a tag or shape, a single color or random colors.
* **Color by a property.** Color every object in the dataset by a computed property, with a legend in the viewer — a color ramp for continuous values, or distinct colors for categories such as cluster IDs. See [Coloring objects by a property value](/documentation/analyzing-image-data-with-objects-connections-and-properties/interacting-with-objects#coloring-objects-by-a-property-value).
* **Tag objects.** Add, remove, or replace tags on selected objects or on objects matching a query.

### Analyzing measurements

* **Statistics and distributions.** Ask for the mean, median, spread, or a histogram of any property, optionally for just one subset of objects.
* **Plots in the panel.** Ask for a scatter plot, histogram, or box plot (including one box per tag). The interactive plot appears right in the panel.
* **Analysis plots and gates.** Add a plot to the Analysis panel with a rectangular gate that filters objects everywhere in the app. See [Analysis plots and gating](/documentation/analyzing-image-data-with-objects-connections-and-properties/analysis-plots-and-gating).

### Answering questions

* **How-to help.** Ask how a feature works or how to do something yourself. The assistant draws on built-in NimbusImage help covering the interface, visualization, object tools, connections, measurements, import/export, and troubleshooting.
* **Explaining what you see.** For example, why some objects are missing (it checks for filters and analysis gates) or why objects have the colors they do.

### Example prompts

* "What am I looking at?"
* "Hide everything except DAPI and brighten it a bit."
* "Set up a Cellpose-SAM tool for nuclei on the DAPI channel and run it."
* "Measure the area of all my nucleus objects and show me a histogram."
* "Make a scatter plot of area versus mean intensity, colored by tag."
* "Color my cells by area."
* "Only show spots with intensity above 500."
* "Why do I see fewer objects than I expected?"

## Approving actions

Changes to the view — location, camera, layer settings, display options, filters, selection — happen immediately without asking, because you can see them and revert them. Actions that start computations or change things shared with everyone using the collection ask for your confirmation first. The assistant shows a card describing what it is about to do, with **Run** and **Cancel** buttons. Actions that need approval are:

* **Running a worker** — it can take minutes and may create many objects.
* **Computing a property** — it starts a compute job.
* **Creating a tool or a property, or setting the scale** — these change the shared collection.
* **Coloring the whole dataset by a property** — it replaces every object's color and is not undoable.
* **Removing analysis plots** — the plots and their gates belong to the shared collection and can't be rebuilt.

If you click **Cancel**, the assistant is told you declined and will adjust its plan or ask what you'd like instead.

The **Auto-approve all actions** switch below the text box skips these confirmations. Use it with care, especially for coloring by a property, which can't be undone.

### Undoing changes

* **View changes** from your last message can be reverted with the revert button at the top of the panel. If you've switched to a different dataset since then, revert isn't available.
* **Object edits** such as coloring or tagging specific objects are on the normal undo history, so you can ask the assistant to undo them or undo them yourself.
* **Coloring by a property** is not undoable; to change it, re-apply a different coloring or remove the coloring.

{% hint style="info" %}
If you switch to a different dataset while the assistant is working, it stops rather than applying changes to the wrong dataset.
{% endhint %}

## What Nimbus AI can't do

Some things are outside what the assistant can do directly. In these cases it will guide you to do them yourself:

* **Connections.** It can't create, filter, or delete connections. It will point you to the connection tools and the Connections tab of the Object list. See [Tools for connecting objects](/documentation/analyzing-image-data-with-objects-connections-and-properties/tools-for-connecting-objects).
* **Organizing tools.** It can't pin or reorder tools in the Tools palette.
* **Command palette.** It can't open the command palette for you, but it often suggests what to type there.
* **Drawing gates.** It can only make rectangular gates. For an irregular population, it creates the plot and asks you to draw the region.
* **Creating or deleting objects directly.** It can't draw or delete objects one by one, or switch to a different dataset or collection. It can create objects by running a worker.

## AI-suggested tools

Separately from the chat panel, NimbusImage can suggest a starting set of tools for a new collection based on your image and its channel names. Suggestions appear automatically the first time you open a new, empty collection, and you can ask for them at any time with the lightbulb button in the Tools palette or **Suggest tools with AI** in the command palette. Nothing is added until you accept it. See [AI-suggested tools](/documentation/analyzing-image-data-with-objects-connections-and-properties/tools-for-making-objects#ai-suggested-tools).

## What is shared with the AI model

Nimbus AI sends your requests through the NimbusImage server to Anthropic's Claude API. Along with each message, it sends a text summary of your current interface state (dataset and collection names, location, layers, filters, object counts, and so on). It sends screenshots of the viewer only when it decides it needs to see the image content. AI-suggested tools similarly send a screenshot of the viewer along with your channel names.

## Tips for getting good results

1. **Use channel and tag names.** "Run Cellpose-SAM on the DAPI channel and tag the results nucleus" works better than "find the cells".
2. **Ask for one workflow at a time.** The assistant takes up to 30 steps per message; if it stops partway through a long task, send another message to continue.
3. **Ask for plots and summaries, not lists.** It reports counts and statistics rather than pasting long lists, since you can see the objects in the interface.
4. **Check worker settings before approving.** The approval card summarizes what will run. If a parameter looks wrong, cancel and tell the assistant what to change.
5. **Treat image descriptions with care.** The assistant sees a lower-resolution screenshot, so verify its observations about image content yourself.
6. **Start over when changing topics.** Clearing the conversation with the refresh button gives the assistant a clean slate.


# Agentic control

Let AI agents such as Claude Code, Codex, and claude.ai work with your NimbusImage data on your behalf

NimbusImage can be driven by AI agents. You describe what you want in plain language, and the agent finds your datasets, looks at your images, runs analyses, and reports back. The agent always acts as you: it can see and change only what your own account can.

There are three ways to do this. They differ in where the agent runs and how much it can do.

| You use                                   | Use this                                                                                          | What it can do                                                                                                                       |
| ----------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------ |
| The NimbusImage app itself                | [Nimbus AI](/documentation/nimbus-ai)                                                             | Drives your viewer while you watch: navigation, layers, tools, workers, measurements, plots.                                         |
| Claude Code or Codex (coding agents)      | [The Python package and skill pack](/documentation/agentic-control/python-package-and-skill-pack) | The most capable option: bulk changes, image arrays, custom analysis, and reusable scripts.                                          |
| claude.ai (web) or the Claude Desktop app | [The MCP connector](/documentation/agentic-control/mcp-connector)                                 | Lookups and summaries in a chat: find datasets, count annotations, view images, read measurements, run workers, and tag annotations. |

## Which option should I use?

**If you can use a coding agent, use the Python package and skill pack.** Coding agents such as Claude Code and Codex can write and run code. With the `nimbusimage` Python package, they can do anything the API allows, on as much data as you need. The skill pack teaches the agent how to use the package well.

**If you work in claude.ai or the Claude Desktop app, use the MCP connector.** These apps can't run code, so the connector gives Claude a fixed set of tools instead. It is ideal for quick questions about your data, but it returns summaries and isn't meant for bulk work.

**If you want help inside the viewer, use Nimbus AI.** It is built into NimbusImage and changes what you see on screen as it works.

## In this section

* [Python package and skill pack](/documentation/agentic-control/python-package-and-skill-pack) — install the `nimbusimage` package, get an API key, and add the skills to Claude Code or Codex.
* [Connect Claude to NimbusImage (MCP connector)](/documentation/agentic-control/mcp-connector) — add NimbusImage to claude.ai or Claude Desktop, see what you can ask, and manage your connections.


# Python package and skill pack

Use the nimbusimage Python package and the NimbusImage skill pack to let Claude Code or Codex work with your data

The `nimbusimage` Python package gives you programmatic access to NimbusImage. You can fetch images as arrays, create and edit annotations, run workers, compute measurements, and export results, all from code.

The NimbusImage skill pack teaches coding agents such as Claude Code and Codex how to use this package. Once it is installed, you can ask the agent to do things like "segment the nuclei in every dataset in this collection and export their areas to a CSV," and it writes and runs the code for you.

{% hint style="info" %}
**Using Claude Code or Codex?** This page is the recommended setup. It can do far more than the [MCP connector](/documentation/agentic-control/mcp-connector), which is meant for claude.ai and Claude Desktop.
{% endhint %}

## Step 1: Get an API key

The package signs in with an API key. The key doesn't expire, so you only need to set it up once.

* **On app.nimbusimage.com:** email <support@cytopixel.com> from your account's email address and ask for an API key.
* **On your own server:** in the Girder admin interface, open **Users**, select your user, and choose **Edit User** > **API Keys** to create a key. Or ask your server's administrator. See [Installation](/installation) for more about running your own server.

Keep your key private. Anyone who has it can act as you in NimbusImage.

## Step 2: Install the package

```bash
pip install nimbusimage
```

Then tell the package where your server is and what your key is. Add these lines to your shell profile (for example, `~/.zshrc` or `~/.bashrc`):

```bash
export NI_API_URL="https://app.nimbusimage.com/girder/api/v1"
export NI_API_KEY="your-api-key-here"
```

Open a new terminal and check that it works:

```python
import nimbusimage as ni

client = ni.connect()
for d in client.list_datasets():
    print(d["name"])
```

## Step 3: Install the skill pack

### Claude Code

```bash
claude plugin marketplace add arjunrajlaboratory/NimbusImage
```

```bash
claude plugin install nimbusimage@NimbusImage
```

### Codex

```bash
codex plugin marketplace add arjunrajlaboratory/NimbusImage
```

```bash
codex plugin add nimbusimage@NimbusImage
```

You only need to add the marketplace once. After that, start a new session and ask the agent about your NimbusImage data.

## What the skills cover

The agent loads the right skill automatically based on what you ask. You can also call one by name.

| Skill                   | What it covers                                                                                      |
| ----------------------- | --------------------------------------------------------------------------------------------------- |
| Core (`nimbusimage`)    | Connecting, finding datasets, dataset metadata, projects                                            |
| Images                  | Single frames, composites, z-stacks, and crops as arrays                                            |
| Annotations             | Creating, filtering, editing, and deleting objects; bulk operations; converting to shapes and masks |
| Workers                 | Finding and running analysis workers, and tracking their jobs                                       |
| Analyze                 | Measurements (properties), export to CSV, JSON, and GeoJSON, connections, and sharing               |
| Xenium ingest           | Loading a 10x Xenium bundle (images, cells, genes, clusters) into NimbusImage                       |
| Spatial Genomics ingest | Loading a Spatial Genomics (GenePS) export into NimbusImage                                         |

## What you can ask

* "List my NimbusImage datasets and how many objects each one has."
* "Run Cellpose-SAM on the DAPI channel of every dataset in this project."
* "For each cell, count the spots inside it and save the counts as a property."
* "Delete all the point objects tagged 'test' in this dataset."
* "Get the z-stack for channel 2 at XY position 3 and make a max projection."
* "Export area and mean intensity for all nuclei to a CSV."
* "Load this Xenium bundle into NimbusImage."

Depending on your agent's settings, it may ask before running code. For anything that deletes or changes many objects, ask the agent to explain its plan first, and check it before you let it run.

## Using the package without an agent

You can also use the package directly in your own Python scripts and notebooks. A short example:

```python
import nimbusimage as ni

client = ni.connect()
ds = client.dataset(name="My Experiment")

img = ds.images.get(channel=0, z=0)          # a numpy array
nuclei = ds.annotations.list(shape="polygon", tags=["nucleus"])
ds.export.to_csv(property_paths=[["prop_id", "Area"]], path="results.csv")
```

See the [API reference](https://arjunrajlaboratory.github.io/NimbusImage/) for the full set of functions.

## Connecting the MCP connector in Claude Code too

You don't need the [MCP connector](/documentation/agentic-control/mcp-connector) in Claude Code if you have the skill pack. If you add both, the skill pack tells Claude to use the Python package for anything beyond a quick lookup. See [Claude Code (optional)](/documentation/agentic-control/mcp-connector#claude-code-optional).


# Connect Claude to NimbusImage (MCP connector)

Connect Claude (claude.ai or Claude Desktop) to NimbusImage so you can ask questions about your data in a chat

NimbusImage has an MCP connector at this address:

```
https://app.nimbusimage.com/mcp
```

Once it is connected, Claude can work with your NimbusImage data in a chat. It can find datasets, count and summarize annotations, look at images, read measurements, run analysis workers, and tag annotations.

* **Claude acts as you.** It sees exactly what your NimbusImage account can see, and nothing more.
* **You stay in control.** You approve the connection once, and you can [disconnect it](#see-and-disconnect-your-connections) at any time.
* **Claude asks before changing data.** Tools that change data (tagging annotations, computing a measurement, running a worker) are marked so that Claude asks you first.
* **Results are summaries by design.** Lists are capped (for example, 100 datasets or 200 annotations per request). Images come back downsampled. Claude waits up to about 2 minutes for a long job. For bulk work, see [Which option should I use?](#which-option-should-i-use)

## Which option should I use?

| You use                                   | Use this                                                                                                                                                                              |
| ----------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| claude.ai (web) or the Claude Desktop app | The MCP connector (this page)                                                                                                                                                         |
| Claude Code or Codex (coding agents)      | The [Python package and skill pack](/documentation/agentic-control/python-package-and-skill-pack). It is much more capable: bulk changes, image arrays, custom analysis, and scripts. |

Coding agents can run code, so the Python package lets them do far more than the connector's fixed set of tools. The connector exists for apps that can't run code. You can also connect it in Claude Code ([see below](#claude-code-optional)), but you don't need to.

{% hint style="info" %}
Anthropic's menus change over time, so the steps below describe them in general terms. For the current details, see Anthropic's guide to [custom connectors](https://support.claude.com/en/articles/11175166-getting-started-with-custom-connectors-using-remote-mcp).
{% endhint %}

## Add the connector: Team and Enterprise organizations

An organization Owner adds the connector once for the whole organization. (On Enterprise, any role allowed to manage connectors can do this.)

1. In claude.ai, open your organization's connector settings and choose **Add custom connector**.
2. For **Name**, enter `NimbusImage`. For **URL**, enter `https://app.nimbusimage.com/mcp`.
3. For **Authentication**, choose **Sign in now**. Each member then signs in with their own NimbusImage account.
4. For **OAuth client**, choose **Use Claude's published identity**. claude.ai usually detects this automatically.
5. Leave **Request headers** empty and **Advanced** unchanged. Click **Save**.

{% hint style="warning" %}
Do **not** choose **No sign-in** with a shared API key in the request headers for an organization. Everyone in the organization would then act as the same NimbusImage user.
{% endhint %}

Then each member connects their own account:

1. In claude.ai, open your connector settings, find **NimbusImage**, and click **Connect**.
2. A NimbusImage page opens. Sign in if asked.
3. Review the consent page. It names the app that is asking for access. Click **Approve**. You return to Claude.
4. Try it out. Ask Claude: "List my NimbusImage datasets."

## Add the connector: individual Pro or Max plans

On a personal plan, you add the connector yourself.

1. In claude.ai, open your connector settings and choose **Add custom connector**.
2. For **Name**, enter `NimbusImage`. For **URL**, enter `https://app.nimbusimage.com/mcp`.
3. For **Authentication**, choose **Sign in now**.
4. For **OAuth client**, choose **Use Claude's published identity**.
5. Leave **Request headers** empty. Click **Save**.
6. Click **Connect**, sign in to NimbusImage if asked, and click **Approve**.

## Claude Desktop

Connectors you add on claude.ai belong to your Claude account. They appear in the Claude Desktop app automatically when you sign in with the same account. See Anthropic's [custom connectors guide](https://support.claude.com/en/articles/11175166-getting-started-with-custom-connectors-using-remote-mcp) for details.

## Claude Code (optional)

For Claude Code, we recommend the [Python package and skill pack](/documentation/agentic-control/python-package-and-skill-pack) instead. To install them:

```bash
pip install nimbusimage
```

```bash
claude plugin marketplace add arjunrajlaboratory/NimbusImage
```

```bash
claude plugin install nimbusimage@NimbusImage
```

For Codex:

```bash
pip install nimbusimage
```

```bash
codex plugin marketplace add arjunrajlaboratory/NimbusImage
```

```bash
codex plugin add nimbusimage@NimbusImage
```

If you still want the connector in Claude Code (for example, for a quick look without keeping an API key on your computer):

1. Add it:

   ```bash
   claude mcp add --transport http nimbusimage https://app.nimbusimage.com/mcp
   ```
2. In Claude Code, type `/mcp`, choose `nimbusimage`, and choose **Authenticate**.
3. Your browser opens the NimbusImage consent page. Click **Approve**.

To remove it later, run the command below. Then also disconnect it in NimbusImage (see [See and disconnect your connections](#see-and-disconnect-your-connections)).

```bash
claude mcp remove nimbusimage
```

### Using an API key instead of signing in

You can also connect Claude Code with an [API key](/documentation/agentic-control/python-package-and-skill-pack#step-1-get-an-api-key) instead of signing in. On app.nimbusimage.com, request a key from <support@cytopixel.com>.

1. Save your key in a file that only you can read:

   ```bash
   chmod 600 ~/.nimbus_api_key
   ```
2. Add the connector with the key:

   ```bash
   claude mcp add --transport http nimbusimage https://app.nimbusimage.com/mcp \
     --header "Authorization: Bearer $(cat ~/.nimbus_api_key)"
   ```

Note that Claude Code stores the key in its own configuration file.

## What you can ask

Here are some examples. Replace the parts in angle brackets with your own names.

* "List my NimbusImage datasets."
* "What channels and z-slices does \<dataset> have?"
* "How many annotations are in \<dataset>, by tag and by shape?"
* "Show me channel 2 of \<dataset>."
* "Summarize the \<measurement> values for cells tagged 'nucleus'."
* "Which workers can segment nuclei? Run it on \<dataset> and tell me when it's done."
* "Tag every point annotation in \<dataset> with 'reviewed'." (Claude asks you first.)

The connector gives Claude these groups of tools:

| Group            | What Claude can do                                                                                          |
| ---------------- | ----------------------------------------------------------------------------------------------------------- |
| Datasets         | List your datasets; get a dataset's size, channels, z-slices, time points, XY positions, and pixel size     |
| Annotations      | Count, summarize, and list annotations; add, remove, or replace tags                                        |
| Images           | Get the image as NimbusImage draws it (composite), or one channel in grayscale                              |
| Measurements     | List measurements (properties), summarize their values, draw a histogram, and start computing a measurement |
| Workers and jobs | List workers, read a worker's parameters, run a worker, and wait for a job to finish                        |
| Help topics      | Read NimbusImage's own documentation                                                                        |

## See and disconnect your connections

1. In NimbusImage, open the account menu (top right) and find **Connected apps**.
2. Each connection is listed with:
   * the app (for example, Claude or Claude Code);
   * where it connects from (`claude.ai`, or `127.0.0.1` for Claude Code on your computer);
   * when it was connected;
   * when it was last used.
3. Click **Disconnect** to end a connection immediately. The app must sign in again to use NimbusImage. Disconnecting one connection doesn't affect the others.

A few things to know:

* "Last used" updates when the app signs in or renews its access, so it can lag by a few hours.
* Connections end on their own after 30 days without use.

## Troubleshooting

**Claude says it needs to sign in again, or "authentication required."**\
The connection was disconnected or has expired. Reconnect it. In claude.ai, click **Connect** again. In Claude Code, type `/mcp` and choose **Authenticate**.

**Claude can't find my dataset.**\
Claude only sees datasets your account can open. Check that you signed in as the right NimbusImage user.

**A worker job didn't finish.**\
Claude waits up to about 2 minutes. Ask it to check the job again, or watch the job in NimbusImage.

**I want Claude to do something bigger, like thousands of edits or a custom analysis.**\
Use the [Python package and skill pack](/documentation/agentic-control/python-package-and-skill-pack) with Claude Code or Codex.

**Is this secure?**\
Claude acts with your permissions, and you can disconnect it at any time from **Connected apps**. NimbusImage never sees your Claude password, and Claude never sees your NimbusImage password.


