Skip to main content

trackin

License GNU GPL v3.0 PyPI Python Version tests codecov napari hub

A human-in-the-loop cell tracking tool.


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

Installation

You can install trackin via pip:

pip install trackin

To install latest development version :

pip install git+https://github.com/mihaela-mihaylova/trackin.git

Getting Started

  1. Launch napari (napari from the command line) and open the plugin via Plugins > trackin > Trackin.
  2. Click Load Images and select a folder of per-frame image files. Files must be named with numeric filenames (e.g. 0.png, 1.png, ...), one per frame, in a supported format: jpg, jpeg, png, tif, tiff, bmp, or gif.
  3. Click Load Detections and select a CSV of detections for those frames. Required columns: tframe, y, x. Optional columns: displ_y, displ_x (default to 0 if omitted), and track_no (include it if the detections already belong to tracks from a prior run).
  4. Step through frames with the arrow keys or the frame slider, and left-click a detection to add it to the current track (this also advances to the next frame). Shift-click on the image to add a detection that's missing; right-click, or D, to delete one.
  5. Use Shift+Q to accept the current track, W to save a segment without ending it, Shift+Z to delete a segment, and X to remove all outgoing connections from the current node. The in-app ? button lists the full set of mouse and keyboard shortcuts.
  6. Optionally, click Add Track File to load a track_session_*.csv from a previous session so newly accepted tracks continue its track numbering instead of restarting from 1. It must have exactly these columns, in this order: tframe, y, x, displ_y, displ_x, track_no.

Accepted tracks are appended to a track_session_*.csv file saved next to the detections CSV; any detections not yet assigned to a track are kept in an upd_*.csv file in the same folder.

Acknowledgements

Thank you to Ankur Ankan for the helpful discussions on the design of the tool.

Contributing

Contributions are very welcome. Tests can be run with tox, please ensure the coverage at least stays the same before you submit a pull request.

License

Distributed under the terms of the GNU GPL v3.0 license, "trackin" is free and open source software

Issues

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

Release files for trackin 0.1.3

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

Source distribution (sdist)

Source distribution for trackin 0.1.3
File Size Uploaded
trackin-0.1.3.tar.gz 71.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for trackin 0.1.3
File Interpreter ABI Platform
trackin-0.1.3-py3-none-any.whl Python 3 none any Details

Total release size: 130.0 kB

Release files / trackin-0.1.3.tar.gz

Download URL trackin-0.1.3.tar.gz
Size 71.5 kB
Tags Source
SHA-256 checksum
How to use checksums
58ff1737fc0cf8bcc00341946242691bd92811d31432a94f1fcc646d95b9ff93
BLAKE2b-256 checksum
How to use checksums
1de56d79c3ebab25729a5c50fe6a2bea9056ee1ba2eb5fc68399168364648669
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.10.20

Release files / trackin-0.1.3-py3-none-any.whl

Download URL trackin-0.1.3-py3-none-any.whl
Size 58.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7ad243cfa9108407751fa6061066da99faf03ec1db13790e1c1980f6393f2544
BLAKE2b-256 checksum
How to use checksums
73e2376013b896b834d095ba162e7f96c1989c6e91481b641edbfb6429157465
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.10.20

Release history Release notifications | RSS feed

0.1.4

2 release files

This release

0.1.3 This release

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.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