Skip to main content

Manually amend segmentation and track within napari

Project description

napari-amdtrk

License MIT PyPI Python Version tests codecov napari hub

Amend segmentation and track within napari manually.

overview

:eyes: 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)
    • 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.

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


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.

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

napari-amdtrk-1.0.0.tar.gz (22.4 kB view details)

Uploaded Source

Built Distribution

napari_amdtrk-1.0.0-py3-none-any.whl (22.2 kB view details)

Uploaded Python 3

File details

Details for the file napari-amdtrk-1.0.0.tar.gz.

File metadata

  • Download URL: napari-amdtrk-1.0.0.tar.gz
  • Upload date:
  • Size: 22.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.6

File hashes

Hashes for napari-amdtrk-1.0.0.tar.gz
Algorithm Hash digest
SHA256 a11742880f1fcc8233e1e37cae4ba83f52c656f80ec186c680cccb600014b425
MD5 3d5aaacdf269d341cc068495fd356712
BLAKE2b-256 05422dcb7de6384c201b8421ac46cf39d5b10f36a7361496c358df7d59d9b766

See more details on using hashes here.

File details

Details for the file napari_amdtrk-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: napari_amdtrk-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 22.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.6

File hashes

Hashes for napari_amdtrk-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 332236dc75e0a97251baa12462d12f69c0d70264c307f31e9743891febc8b284
MD5 dd2ec8ddb642b753857af74e71f1547e
BLAKE2b-256 3cc972331ecfd0443fb78952331e1e5afea9cb2294293dd686963e926fb7a0c9

See more details on using hashes here.

Supported by

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