Skip to main content

Drag and drop annotations/results in the Cell Tracking Challenge (CTC) format into napari.

Project description

napari-ctc-io

PyPI tests codecov napari hub

  • Drag and drop annotations/results in the Cell Tracking Challenge (CTC) format into napari.

    Works for TRA, RES, etc. folders, which contain a time sequence of segmentations in tiff format, and a corresponding tracklet file *.txt.

  • Write tracked cells (labels layer & corresponding tracks layer) to CTC format (see usage below).

https://github.com/bentaculum/napari-ctc-io/assets/8866751/197c9ea2-4115-4829-851a-4b77eb843bf2

Installation

You can install napari-ctc-io via pip:

pip install napari-ctc-io

To install latest development version :

pip install git+https://github.com/bentaculum/napari-ctc-io.git

Usage of writer in widget

def _save(self, event=None):
    pm = npe2.PluginManager.instance()

    outdir = "TRA"
    writer_contrib = pm.get_writer(
        outdir,
        ["labels", "tracks"],
        "napari-ctc-io",
    )[0]

    save_layers(
        path=outdir,
        layers=[
            self._viewer.layers["masks_tracked"],
            self._viewer.layers["tracks"],
        ],
        plugin="napari-ctc-io",
        _writer=writer_contrib,
    )

Contributing

Contributions are very welcome. Tests can be run with tox.

License

Distributed under the terms of the BSD-3 license, napari-ctc-io 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_ctc_io-0.2.0.tar.gz (1.4 MB view details)

Uploaded Source

Built Distribution

napari_ctc_io-0.2.0-py3-none-any.whl (1.4 MB view details)

Uploaded Python 3

File details

Details for the file napari_ctc_io-0.2.0.tar.gz.

File metadata

  • Download URL: napari_ctc_io-0.2.0.tar.gz
  • Upload date:
  • Size: 1.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.3

File hashes

Hashes for napari_ctc_io-0.2.0.tar.gz
Algorithm Hash digest
SHA256 377602e8c1ccad5985d5067685865e04e249b7ad3a8f5affa856eee8ea88a213
MD5 041b587dc485760c7a955446166f24d2
BLAKE2b-256 af62749b9489d4a7fdce3cf31968f5f36f490103ce89e36a5a56ab27b99d7cb3

See more details on using hashes here.

File details

Details for the file napari_ctc_io-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: napari_ctc_io-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 1.4 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.3

File hashes

Hashes for napari_ctc_io-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d70907dab04a01060d86096d2ac5626b6d1069524eb8b165d800767587c0545f
MD5 762baf7255471ad1099bb37fb876c341
BLAKE2b-256 28d18c7655187203f33f01e12ca3a142568a600263671736c403203355b79fc4

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