napari

btrack comes with a number of optional napari plugins. To install the dependencies needed to use these plugins, install the napari extra via.:

pip install btrack[napari]

If working on Apple Silicon then also run:

conda install -c conda-forge pyqt

The Tracks layer

We developed the Tracks layer that is now part of the multidimensional image viewer napari – you can use this to visualize the output of btrack:

import napari

viewer = napari.Viewer()
viewer.add_labels(segmentation)
viewer.add_tracks(data, properties=properties, graph=graph)

Read more about the tracks API at Napari’s documentation.

Visualising trees

arboretum is a separate plugin that we have developed to visualise lineage trees in napari.