Skip to main content

napari-amdtrk

License MIT PyPI Python Version tests codecov napari hub

Amend segmentation and track within napari manually.

overview

👀 watch a demo video


Input data structure

Napari-amdtrk reads an input directory which includes:

  • An intensity image (tif) in txyc (or txy) format

  • An object mask (tif) in txy format

  • An object table (csv) with following essential columns:

    • frame: time frame
    • trackId: ID of the track, starting from 1
    • Center_of_the_object_0: x coordinate
    • Center_of_the_object_1: y coordinate
    • continuous_label: the corresponding label (intensity value) of the object in the object mask (You may use skimage.measure.label to get it from a binary mask).
  • A config file named config.yaml (other names are not allowed)

    Within the config file, there should be:

    • intensity_suffix: suffix of the intensity image (e.g., for foo_GFP.tif, use GFP in the config). For multiple intensity images, separate them with commas (e.g., GFP, mCherry)
    • mask_suffix: suffix of the mask image
    • track_suffix: suffix of the tracked object table
    • frame_base: index of the first frame (either 0 or 1)
    • stateCol: optional column name for the cell state (e.g., cell cycle phase) in the object table. Leave blank if the object table does not contain it

Napari-amdtrk will modify mask and track files in place. Other files are not affected.


Quick start

  1. Open napari GUI.
  2. File > Open folder > choose Amend segmentation and track
  3. Plugins > napari-amdtrk: Amend track widget > Run
  4. In layer list, select the segm layer to start editing.

Please check out the demo video here and the sample data (see below).


Sample data

To load sample data, File > Open Sample > napari-amdtrk > basic tracks or complete cell cycle tracks.

  • basic tracks: simple cell tracks as essential input data.
  • complete cell cycle tracks: cell tracks with additional cell cycle features.

The above operations will download data to ~/.amd_trk/_sample_data/ (~230MB). After downloading is finished, sample data will be loaded.

Notes


Keyboard shortcuts

  • ↑ and ↓: toggle different operations

  • enter: run the operation

  • Available to a selected object:

    • control + 9: shrink the object mask
    • control + 0: expand the object mask

This napari plugin was generated with Cookiecutter using @napari's cookiecutter-napari-plugin template.

Installation

Please install napari GUI first:

python -m pip install "napari[all]"

You can install napari-amdtrk via pip:

pip install napari-amdtrk

License

Distributed under the terms of the MIT license, "napari-amdtrk" is free and open source software

Issues

If you encounter any problems, please [file an issue] along with a detailed description.

Metadata

Release files for napari-amdtrk 1.1.0

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

Source distribution (sdist)

Source distribution for napari-amdtrk 1.1.0
File Size Uploaded
napari-amdtrk-1.1.0.tar.gz 23.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for napari-amdtrk 1.1.0
File Interpreter ABI Platform
napari_amdtrk-1.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 46.1 kB

Release files / napari-amdtrk-1.1.0.tar.gz

Download URL napari-amdtrk-1.1.0.tar.gz
Size 23.2 kB
Tags Source
SHA-256 checksum
How to use checksums
678f7b17d103c4d3a7a862301b581b3b1c760da33ad73a2ed7c75ee5191cde07
BLAKE2b-256 checksum
How to use checksums
587b945ebe99586158ee12744735b1378365f79708e93198517505350d3521a6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.6

Release files / napari_amdtrk-1.1.0-py3-none-any.whl

Download URL napari_amdtrk-1.1.0-py3-none-any.whl
Size 22.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
259004c2f2053dadd6ee24969011ac04da144b1d6740d86520aac37700d6d3dc
BLAKE2b-256 checksum
How to use checksums
4d0fe86fefed518314d206b41b5127ac79756047929d1778428e73cd14404770
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.6

Release history Release notifications | RSS feed

This release

1.1.0 This release

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page