Skip to main content

Visualize cell tracking errors

Project description

divisualisation

PyPI tests napari hub

A napari plugin to visualise cell-tracking errors, computed via traccuracy, by lifting 2D/3D+time tracks into an interactive 3D "spacetime" view.

🆕 divisualisation is now a fully fledged napari plugin, with a stateful spacetime lifted view that integrates with regular napari workflows.

2D tracking (bacteria) 3D tracking (C. elegans nuclei)

We originally introduced these visualisations to compare our results in Trackastra: Transformer-based cell tracking for live-cell microscopy to other cell tracking algorithms.

Installation

  1. Please install napari as outlined here.

  2. After that, install divisualisation, either:

    • from within napari via Plugins → Install/Uninstall Plugins… (search for "divisualisation"),
    • or from PyPI:
      pip install divisualisation
      
    • or the latest development version from GitHub:
      pip install git+https://github.com/bentaculum/divisualisation.git
      

Note: requires Python ≥ 3.11 and napari ≥ 0.8.

Usage

Open Plugins → divisualisation → Lift tracks & Divisualisation. The widget has two independent workflows, each in its own box:

  • Lift all tracks layers — fold time into a z axis so every tracks layer rises out of the image plane into a 3D "spacetime" cone. Scrub the time slider to sweep through the cone; toggle off to restore the flat view exactly.
  • Divisualisation — assign ground-truth / predicted / FN-edge / FP-edge tracks layers via the role dropdowns (auto-guessed from layer names), Compute edge errors from the GT/predicted tracks plus their labels, and lift with the error colouring. Color division edges draws each layer's parent→daughter edges as coloured tails (napari otherwise draws them in uncolourable white).

Examples

Run in ipython — each loads data into a viewer, adds the tracks and edge-error overlays, and docks the widget:

  • example_2d.py — bacteria (2D+t).
  • example_3d.py — C. elegans nuclei (3D+t, z scaled ×10).
  • example_programmatic_2d.py — fully scripted render (no GUI): build layers, lift with SpacetimeLift, overlay errors with add_edge_error_tracks, capture a napari_animation keyframe video.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

divisualisation-0.1.0.tar.gz (73.4 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

divisualisation-0.1.0-py3-none-any.whl (42.6 kB view details)

Uploaded Python 3

File details

Details for the file divisualisation-0.1.0.tar.gz.

File metadata

  • Download URL: divisualisation-0.1.0.tar.gz
  • Upload date:
  • Size: 73.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for divisualisation-0.1.0.tar.gz
Algorithm Hash digest
SHA256 df5f71919341487ec9ac91f9dc1a8893e0a88ef91c9ceedf2bf28c72d2d43f6b
MD5 372334fb81b2c8cbe921d7dd3b8a8a7a
BLAKE2b-256 2349b62e6af049bff902738db90975b04fe11710b2f9a20ba7fb6764f5b3ec33

See more details on using hashes here.

Provenance

The following attestation bundles were made for divisualisation-0.1.0.tar.gz:

Publisher: deploy.yml on bentaculum/divisualisation

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file divisualisation-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: divisualisation-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 42.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for divisualisation-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 18aea273a38c5c2bb706d85e39dc67e6a9630bcf00582dd7e89bb9b448608857
MD5 6543391e92e2738b227ef950e7b432be
BLAKE2b-256 effd216b6518ac459ab08306d0820e5b3ab2f77f1ff578f4abc4cae6a1a38bf5

See more details on using hashes here.

Provenance

The following attestation bundles were made for divisualisation-0.1.0-py3-none-any.whl:

Publisher: deploy.yml on bentaculum/divisualisation

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page