traccuracy 0.2.0__tar.gz → 0.4.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- traccuracy-0.4.0/.gitattributes +2 -0
- {traccuracy-0.2.0 → traccuracy-0.4.0}/.github/PULL_REQUEST_TEMPLATE/new_matcher_metric.md +1 -1
- {traccuracy-0.2.0 → traccuracy-0.4.0}/.github/workflows/benchmark-report.yml +1 -1
- {traccuracy-0.2.0 → traccuracy-0.4.0}/.github/workflows/ci.yml +73 -4
- {traccuracy-0.2.0 → traccuracy-0.4.0}/.gitignore +8 -0
- {traccuracy-0.2.0 → traccuracy-0.4.0}/.pre-commit-config.yaml +11 -12
- traccuracy-0.4.0/PKG-INFO +168 -0
- traccuracy-0.4.0/README.md +97 -0
- {traccuracy-0.2.0 → traccuracy-0.4.0}/developer_notes.md +19 -19
- traccuracy-0.4.0/docs/source/_static/css/tablefix.css +14 -0
- traccuracy-0.2.0/docs/source/cli.rst → traccuracy-0.4.0/docs/source/cli.md +3 -2
- {traccuracy-0.2.0 → traccuracy-0.4.0}/docs/source/conf.py +37 -12
- traccuracy-0.4.0/docs/source/glossary.md +50 -0
- traccuracy-0.4.0/docs/source/index.md +57 -0
- traccuracy-0.4.0/docs/source/matchers/matchers.md +28 -0
- traccuracy-0.4.0/docs/source/metrics/basic.md +49 -0
- traccuracy-0.4.0/docs/source/metrics/chota.md +52 -0
- traccuracy-0.4.0/docs/source/metrics/ctc.md +177 -0
- traccuracy-0.4.0/docs/source/metrics/divisions.md +59 -0
- traccuracy-0.4.0/docs/source/metrics/track_overlap.md +63 -0
- traccuracy-0.2.0/docs/source/test_cases/divisions.pct.py → traccuracy-0.4.0/docs/source/test_cases/divisions.md +57 -43
- traccuracy-0.2.0/docs/source/test_cases/graphs.pct.py → traccuracy-0.4.0/docs/source/test_cases/errors.md +79 -41
- traccuracy-0.4.0/docs/source/test_cases/index.md +13 -0
- traccuracy-0.4.0/docs/source/test_cases/larger_examples.md +99 -0
- traccuracy-0.4.0/docs/source/test_cases/matchers.md +106 -0
- traccuracy-0.4.0/docs/source/track_errors/basic.md +259 -0
- traccuracy-0.4.0/docs/source/track_errors/ctc.md +191 -0
- traccuracy-0.4.0/docs/source/track_errors/divisions.md +225 -0
- {traccuracy-0.2.0 → traccuracy-0.4.0}/examples/ctc.ipynb +77 -46
- {traccuracy-0.2.0 → traccuracy-0.4.0}/pyproject.toml +81 -46
- {traccuracy-0.2.0 → traccuracy-0.4.0}/scripts/download_test_data.py +3 -3
- traccuracy-0.4.0/scripts/test_case_report.py +241 -0
- {traccuracy-0.2.0 → traccuracy-0.4.0}/src/traccuracy/__init__.py +0 -2
- {traccuracy-0.2.0 → traccuracy-0.4.0}/src/traccuracy/_run_metrics.py +5 -6
- {traccuracy-0.2.0 → traccuracy-0.4.0}/src/traccuracy/_tracking_graph.py +164 -111
- traccuracy-0.4.0/src/traccuracy/cli.py +69 -0
- {traccuracy-0.2.0 → traccuracy-0.4.0}/src/traccuracy/loaders/__init__.py +5 -3
- {traccuracy-0.2.0 → traccuracy-0.4.0}/src/traccuracy/loaders/_ctc.py +121 -107
- traccuracy-0.4.0/src/traccuracy/loaders/_geff.py +101 -0
- traccuracy-0.4.0/src/traccuracy/loaders/_point.py +113 -0
- traccuracy-0.4.0/src/traccuracy/matchers/__init__.py +43 -0
- traccuracy-0.4.0/src/traccuracy/matchers/_base.py +76 -0
- {traccuracy-0.2.0 → traccuracy-0.4.0}/src/traccuracy/matchers/_compute_overlap.py +100 -54
- {traccuracy-0.2.0 → traccuracy-0.4.0}/src/traccuracy/matchers/_ctc.py +22 -17
- {traccuracy-0.2.0 → traccuracy-0.4.0}/src/traccuracy/matchers/_iou.py +68 -30
- traccuracy-0.2.0/src/traccuracy/matchers/_base.py → traccuracy-0.4.0/src/traccuracy/matchers/_matched.py +14 -88
- traccuracy-0.4.0/src/traccuracy/matchers/_point.py +141 -0
- traccuracy-0.4.0/src/traccuracy/matchers/_point_seg.py +100 -0
- {traccuracy-0.2.0 → traccuracy-0.4.0}/src/traccuracy/metrics/__init__.py +6 -1
- {traccuracy-0.2.0 → traccuracy-0.4.0}/src/traccuracy/metrics/_base.py +42 -65
- traccuracy-0.4.0/src/traccuracy/metrics/_basic.py +149 -0
- traccuracy-0.4.0/src/traccuracy/metrics/_chota.py +221 -0
- traccuracy-0.4.0/src/traccuracy/metrics/_ctc.py +422 -0
- traccuracy-0.4.0/src/traccuracy/metrics/_divisions.py +238 -0
- traccuracy-0.4.0/src/traccuracy/metrics/_results.py +53 -0
- traccuracy-0.4.0/src/traccuracy/metrics/_track_overlap.py +275 -0
- traccuracy-0.4.0/src/traccuracy/track_errors/__init__.py +7 -0
- traccuracy-0.4.0/src/traccuracy/track_errors/_basic.py +205 -0
- {traccuracy-0.2.0 → traccuracy-0.4.0}/src/traccuracy/track_errors/_ctc.py +30 -17
- traccuracy-0.4.0/src/traccuracy/track_errors/_divisions.py +400 -0
- traccuracy-0.4.0/src/traccuracy/utils.py +291 -0
- traccuracy-0.4.0/src/traccuracy.egg-info/PKG-INFO +168 -0
- {traccuracy-0.2.0 → traccuracy-0.4.0}/src/traccuracy.egg-info/SOURCES.txt +38 -15
- traccuracy-0.4.0/src/traccuracy.egg-info/requires.txt +53 -0
- {traccuracy-0.2.0 → traccuracy-0.4.0}/tests/bench.py +120 -12
- {traccuracy-0.2.0 → traccuracy-0.4.0}/tests/examples/graphs.py +190 -72
- traccuracy-0.4.0/tests/examples/larger_examples.py +113 -0
- {traccuracy-0.2.0 → traccuracy-0.4.0}/tests/examples/segs.py +87 -61
- {traccuracy-0.2.0 → traccuracy-0.4.0}/tests/loaders/test_ctc.py +76 -27
- traccuracy-0.4.0/tests/loaders/test_geff.py +136 -0
- traccuracy-0.4.0/tests/loaders/test_point.py +130 -0
- traccuracy-0.4.0/tests/matchers/test_base.py +38 -0
- traccuracy-0.4.0/tests/matchers/test_compute_overlap.py +66 -0
- {traccuracy-0.2.0 → traccuracy-0.4.0}/tests/matchers/test_ctc.py +55 -17
- traccuracy-0.4.0/tests/matchers/test_iou.py +444 -0
- traccuracy-0.2.0/tests/matchers/test_base.py → traccuracy-0.4.0/tests/matchers/test_matched.py +4 -28
- traccuracy-0.4.0/tests/matchers/test_point.py +378 -0
- traccuracy-0.4.0/tests/matchers/test_point_seg.py +205 -0
- {traccuracy-0.2.0 → traccuracy-0.4.0}/tests/metrics/test_base.py +21 -5
- traccuracy-0.4.0/tests/metrics/test_basic.py +100 -0
- traccuracy-0.4.0/tests/metrics/test_chota.py +58 -0
- traccuracy-0.4.0/tests/metrics/test_ctc_metrics.py +298 -0
- {traccuracy-0.2.0 → traccuracy-0.4.0}/tests/metrics/test_divisions.py +39 -28
- traccuracy-0.4.0/tests/metrics/test_track_overlap_metrics.py +440 -0
- {traccuracy-0.2.0 → traccuracy-0.4.0}/tests/metrics/test_weighted_error_sums.py +1 -3
- traccuracy-0.4.0/tests/test_cli.py +50 -0
- {traccuracy-0.2.0 → traccuracy-0.4.0}/tests/test_run_metrics.py +2 -2
- traccuracy-0.4.0/tests/test_tracking_graph.py +467 -0
- traccuracy-0.4.0/tests/test_utils.py +324 -0
- {traccuracy-0.2.0 → traccuracy-0.4.0}/tests/track_errors/test_basic.py +134 -12
- {traccuracy-0.2.0 → traccuracy-0.4.0}/tests/track_errors/test_ctc_errors.py +147 -14
- traccuracy-0.4.0/tests/track_errors/test_divisions.py +537 -0
- traccuracy-0.2.0/PKG-INFO +0 -118
- traccuracy-0.2.0/README.md +0 -58
- traccuracy-0.2.0/docs/source/index.rst +0 -43
- traccuracy-0.2.0/docs/source/metrics/basic.rst +0 -18
- traccuracy-0.2.0/docs/source/metrics/ctc.rst +0 -76
- traccuracy-0.2.0/docs/source/metrics/divisions.rst +0 -10
- traccuracy-0.2.0/docs/source/metrics/track_overlap.rst +0 -11
- traccuracy-0.2.0/docs/source/test_cases/index.rst +0 -13
- traccuracy-0.2.0/docs/source/test_cases/segmentation.pct.py +0 -79
- traccuracy-0.2.0/docs/source/track_errors/basic.pct.py +0 -208
- traccuracy-0.2.0/docs/source/track_errors/ctc.rst +0 -192
- traccuracy-0.2.0/docs/source/track_errors/divisions.rst +0 -180
- traccuracy-0.2.0/src/traccuracy/cli.py +0 -259
- traccuracy-0.2.0/src/traccuracy/matchers/__init__.py +0 -34
- traccuracy-0.2.0/src/traccuracy/metrics/_basic.py +0 -74
- traccuracy-0.2.0/src/traccuracy/metrics/_ctc.py +0 -169
- traccuracy-0.2.0/src/traccuracy/metrics/_divisions.py +0 -146
- traccuracy-0.2.0/src/traccuracy/metrics/_track_overlap.py +0 -108
- traccuracy-0.2.0/src/traccuracy/track_errors/__init__.py +0 -2
- traccuracy-0.2.0/src/traccuracy/track_errors/basic.py +0 -109
- traccuracy-0.2.0/src/traccuracy/track_errors/divisions.py +0 -257
- traccuracy-0.2.0/src/traccuracy.egg-info/PKG-INFO +0 -118
- traccuracy-0.2.0/src/traccuracy.egg-info/requires.txt +0 -44
- traccuracy-0.2.0/tests/matchers/test_compute_overlap.py +0 -41
- traccuracy-0.2.0/tests/matchers/test_iou.py +0 -280
- traccuracy-0.2.0/tests/metrics/test_basic.py +0 -40
- traccuracy-0.2.0/tests/metrics/test_ctc_metrics.py +0 -54
- traccuracy-0.2.0/tests/metrics/test_track_overlap_metrics.py +0 -182
- traccuracy-0.2.0/tests/test_tracking_graph.py +0 -354
- traccuracy-0.2.0/tests/test_utils.py +0 -187
- traccuracy-0.2.0/tests/track_errors/test_divisions.py +0 -254
- {traccuracy-0.2.0 → traccuracy-0.4.0}/.github/ISSUE_TEMPLATE/bugs.md +0 -0
- {traccuracy-0.2.0 → traccuracy-0.4.0}/.github/ISSUE_TEMPLATE/features.md +0 -0
- {traccuracy-0.2.0 → traccuracy-0.4.0}/.github/PULL_REQUEST_TEMPLATE.md +0 -0
- {traccuracy-0.2.0 → traccuracy-0.4.0}/.github/dependabot.yml +0 -0
- {traccuracy-0.2.0 → traccuracy-0.4.0}/.github/release.yml +0 -0
- {traccuracy-0.2.0 → traccuracy-0.4.0}/.github/workflows/benchmark-pr.py +0 -0
- {traccuracy-0.2.0 → traccuracy-0.4.0}/.readthedocs.yml +0 -0
- {traccuracy-0.2.0 → traccuracy-0.4.0}/LICENSE +0 -0
- {traccuracy-0.2.0 → traccuracy-0.4.0}/docs/Makefile +0 -0
- {traccuracy-0.2.0 → traccuracy-0.4.0}/docs/make.bat +0 -0
- {traccuracy-0.2.0 → traccuracy-0.4.0}/docs/source/examples/ctc.nblink +0 -0
- {traccuracy-0.2.0 → traccuracy-0.4.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask000.tif +0 -0
- {traccuracy-0.2.0 → traccuracy-0.4.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask001.tif +0 -0
- {traccuracy-0.2.0 → traccuracy-0.4.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask002.tif +0 -0
- {traccuracy-0.2.0 → traccuracy-0.4.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask003.tif +0 -0
- {traccuracy-0.2.0 → traccuracy-0.4.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask004.tif +0 -0
- {traccuracy-0.2.0 → traccuracy-0.4.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask005.tif +0 -0
- {traccuracy-0.2.0 → traccuracy-0.4.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask006.tif +0 -0
- {traccuracy-0.2.0 → traccuracy-0.4.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask007.tif +0 -0
- {traccuracy-0.2.0 → traccuracy-0.4.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask008.tif +0 -0
- {traccuracy-0.2.0 → traccuracy-0.4.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask009.tif +0 -0
- {traccuracy-0.2.0 → traccuracy-0.4.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask010.tif +0 -0
- {traccuracy-0.2.0 → traccuracy-0.4.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask011.tif +0 -0
- {traccuracy-0.2.0 → traccuracy-0.4.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask012.tif +0 -0
- {traccuracy-0.2.0 → traccuracy-0.4.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask013.tif +0 -0
- {traccuracy-0.2.0 → traccuracy-0.4.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask014.tif +0 -0
- {traccuracy-0.2.0 → traccuracy-0.4.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask015.tif +0 -0
- {traccuracy-0.2.0 → traccuracy-0.4.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask016.tif +0 -0
- {traccuracy-0.2.0 → traccuracy-0.4.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask017.tif +0 -0
- {traccuracy-0.2.0 → traccuracy-0.4.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask018.tif +0 -0
- {traccuracy-0.2.0 → traccuracy-0.4.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask019.tif +0 -0
- {traccuracy-0.2.0 → traccuracy-0.4.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask020.tif +0 -0
- {traccuracy-0.2.0 → traccuracy-0.4.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask021.tif +0 -0
- {traccuracy-0.2.0 → traccuracy-0.4.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask022.tif +0 -0
- {traccuracy-0.2.0 → traccuracy-0.4.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask023.tif +0 -0
- {traccuracy-0.2.0 → traccuracy-0.4.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask024.tif +0 -0
- {traccuracy-0.2.0 → traccuracy-0.4.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask025.tif +0 -0
- {traccuracy-0.2.0 → traccuracy-0.4.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask026.tif +0 -0
- {traccuracy-0.2.0 → traccuracy-0.4.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask027.tif +0 -0
- {traccuracy-0.2.0 → traccuracy-0.4.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask028.tif +0 -0
- {traccuracy-0.2.0 → traccuracy-0.4.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask029.tif +0 -0
- {traccuracy-0.2.0 → traccuracy-0.4.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask030.tif +0 -0
- {traccuracy-0.2.0 → traccuracy-0.4.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask031.tif +0 -0
- {traccuracy-0.2.0 → traccuracy-0.4.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask032.tif +0 -0
- {traccuracy-0.2.0 → traccuracy-0.4.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask033.tif +0 -0
- {traccuracy-0.2.0 → traccuracy-0.4.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask034.tif +0 -0
- {traccuracy-0.2.0 → traccuracy-0.4.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask035.tif +0 -0
- {traccuracy-0.2.0 → traccuracy-0.4.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask036.tif +0 -0
- {traccuracy-0.2.0 → traccuracy-0.4.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask037.tif +0 -0
- {traccuracy-0.2.0 → traccuracy-0.4.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask038.tif +0 -0
- {traccuracy-0.2.0 → traccuracy-0.4.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask039.tif +0 -0
- {traccuracy-0.2.0 → traccuracy-0.4.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask040.tif +0 -0
- {traccuracy-0.2.0 → traccuracy-0.4.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask041.tif +0 -0
- {traccuracy-0.2.0 → traccuracy-0.4.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask042.tif +0 -0
- {traccuracy-0.2.0 → traccuracy-0.4.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask043.tif +0 -0
- {traccuracy-0.2.0 → traccuracy-0.4.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask044.tif +0 -0
- {traccuracy-0.2.0 → traccuracy-0.4.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask045.tif +0 -0
- {traccuracy-0.2.0 → traccuracy-0.4.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask046.tif +0 -0
- {traccuracy-0.2.0 → traccuracy-0.4.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask047.tif +0 -0
- {traccuracy-0.2.0 → traccuracy-0.4.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask048.tif +0 -0
- {traccuracy-0.2.0 → traccuracy-0.4.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask049.tif +0 -0
- {traccuracy-0.2.0 → traccuracy-0.4.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask050.tif +0 -0
- {traccuracy-0.2.0 → traccuracy-0.4.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask051.tif +0 -0
- {traccuracy-0.2.0 → traccuracy-0.4.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask052.tif +0 -0
- {traccuracy-0.2.0 → traccuracy-0.4.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask053.tif +0 -0
- {traccuracy-0.2.0 → traccuracy-0.4.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask054.tif +0 -0
- {traccuracy-0.2.0 → traccuracy-0.4.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask055.tif +0 -0
- {traccuracy-0.2.0 → traccuracy-0.4.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask056.tif +0 -0
- {traccuracy-0.2.0 → traccuracy-0.4.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask057.tif +0 -0
- {traccuracy-0.2.0 → traccuracy-0.4.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask058.tif +0 -0
- {traccuracy-0.2.0 → traccuracy-0.4.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask059.tif +0 -0
- {traccuracy-0.2.0 → traccuracy-0.4.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask060.tif +0 -0
- {traccuracy-0.2.0 → traccuracy-0.4.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask061.tif +0 -0
- {traccuracy-0.2.0 → traccuracy-0.4.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask062.tif +0 -0
- {traccuracy-0.2.0 → traccuracy-0.4.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask063.tif +0 -0
- {traccuracy-0.2.0 → traccuracy-0.4.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask064.tif +0 -0
- {traccuracy-0.2.0 → traccuracy-0.4.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask065.tif +0 -0
- {traccuracy-0.2.0 → traccuracy-0.4.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask066.tif +0 -0
- {traccuracy-0.2.0 → traccuracy-0.4.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask067.tif +0 -0
- {traccuracy-0.2.0 → traccuracy-0.4.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask068.tif +0 -0
- {traccuracy-0.2.0 → traccuracy-0.4.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask069.tif +0 -0
- {traccuracy-0.2.0 → traccuracy-0.4.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask070.tif +0 -0
- {traccuracy-0.2.0 → traccuracy-0.4.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask071.tif +0 -0
- {traccuracy-0.2.0 → traccuracy-0.4.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask072.tif +0 -0
- {traccuracy-0.2.0 → traccuracy-0.4.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask073.tif +0 -0
- {traccuracy-0.2.0 → traccuracy-0.4.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask074.tif +0 -0
- {traccuracy-0.2.0 → traccuracy-0.4.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask075.tif +0 -0
- {traccuracy-0.2.0 → traccuracy-0.4.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask076.tif +0 -0
- {traccuracy-0.2.0 → traccuracy-0.4.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask077.tif +0 -0
- {traccuracy-0.2.0 → traccuracy-0.4.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask078.tif +0 -0
- {traccuracy-0.2.0 → traccuracy-0.4.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask079.tif +0 -0
- {traccuracy-0.2.0 → traccuracy-0.4.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask080.tif +0 -0
- {traccuracy-0.2.0 → traccuracy-0.4.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask081.tif +0 -0
- {traccuracy-0.2.0 → traccuracy-0.4.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask082.tif +0 -0
- {traccuracy-0.2.0 → traccuracy-0.4.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask083.tif +0 -0
- {traccuracy-0.2.0 → traccuracy-0.4.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask084.tif +0 -0
- {traccuracy-0.2.0 → traccuracy-0.4.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask085.tif +0 -0
- {traccuracy-0.2.0 → traccuracy-0.4.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask086.tif +0 -0
- {traccuracy-0.2.0 → traccuracy-0.4.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask087.tif +0 -0
- {traccuracy-0.2.0 → traccuracy-0.4.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask088.tif +0 -0
- {traccuracy-0.2.0 → traccuracy-0.4.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask089.tif +0 -0
- {traccuracy-0.2.0 → traccuracy-0.4.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask090.tif +0 -0
- {traccuracy-0.2.0 → traccuracy-0.4.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask091.tif +0 -0
- {traccuracy-0.2.0 → traccuracy-0.4.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/res_track.txt +0 -0
- {traccuracy-0.2.0 → traccuracy-0.4.0}/setup.cfg +0 -0
- {traccuracy-0.2.0 → traccuracy-0.4.0}/src/traccuracy.egg-info/dependency_links.txt +0 -0
- {traccuracy-0.2.0 → traccuracy-0.4.0}/src/traccuracy.egg-info/entry_points.txt +0 -0
- {traccuracy-0.2.0 → traccuracy-0.4.0}/src/traccuracy.egg-info/top_level.txt +0 -0
- {traccuracy-0.2.0 → traccuracy-0.4.0}/tests/__init__.py +0 -0
- {traccuracy-0.2.0 → traccuracy-0.4.0}/tests/loaders/__init__.py +0 -0
- {traccuracy-0.2.0 → traccuracy-0.4.0}/tests/matchers/__init__.py +0 -0
- {traccuracy-0.2.0 → traccuracy-0.4.0}/tests/metrics/__init__.py +0 -0
- {traccuracy-0.2.0 → traccuracy-0.4.0}/tests/track_errors/__init__.py +0 -0
|
@@ -8,7 +8,7 @@ Briefly describe your new Matcher or Metric class, including links to publicatio
|
|
|
8
8
|
Put an x in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code.
|
|
9
9
|
|
|
10
10
|
- [ ] I have read the developer/contributing docs.
|
|
11
|
-
- [ ] I have added tests
|
|
11
|
+
- [ ] I have added tests for the standard test examples documented [here](https://traccuracy.readthedocs.io/en/latest/test_cases/index.html), along with end-to-end tests.
|
|
12
12
|
- [ ] I have checked that I maintained or improved code coverage.
|
|
13
13
|
- [ ] I have added benchmarking functions for my change `tests/bench.py`.
|
|
14
14
|
- [ ] I have added a page to the documentation with a complete description of my matcher/metric including any references.
|
|
@@ -26,12 +26,33 @@ jobs:
|
|
|
26
26
|
strategy:
|
|
27
27
|
fail-fast: false
|
|
28
28
|
matrix:
|
|
29
|
-
python-version: ["3.
|
|
29
|
+
python-version: ["3.10", "3.11", "3.12", "3.13"]
|
|
30
30
|
platform: [ubuntu-latest, macos-latest, windows-latest]
|
|
31
31
|
|
|
32
32
|
steps:
|
|
33
33
|
- uses: actions/checkout@v4
|
|
34
34
|
|
|
35
|
+
# downloading data, required for CHOTA metric test
|
|
36
|
+
- name: Retrieve cached data
|
|
37
|
+
uses: actions/cache/restore@v4
|
|
38
|
+
id: cache_data
|
|
39
|
+
with:
|
|
40
|
+
path: downloads
|
|
41
|
+
key: ${{ hashFiles('scripts/download_test_data.py') }}
|
|
42
|
+
|
|
43
|
+
- name: Download Samples
|
|
44
|
+
if: steps.cache_data.outputs.cache-hit != 'true'
|
|
45
|
+
run: |
|
|
46
|
+
pip install requests
|
|
47
|
+
python scripts/download_test_data.py
|
|
48
|
+
|
|
49
|
+
- name: Cache sample data
|
|
50
|
+
uses: actions/cache/save@v4
|
|
51
|
+
if: steps.cache_data.outputs.cache-hit != 'true'
|
|
52
|
+
with:
|
|
53
|
+
path: downloads
|
|
54
|
+
key: ${{ hashFiles('scripts/download_test_data.py') }}
|
|
55
|
+
|
|
35
56
|
- name: Set up Python ${{ matrix.python-version }}
|
|
36
57
|
uses: actions/setup-python@v5
|
|
37
58
|
with:
|
|
@@ -79,10 +100,10 @@ jobs:
|
|
|
79
100
|
path: downloads
|
|
80
101
|
key: ${{ hashFiles('scripts/download_test_data.py') }}
|
|
81
102
|
|
|
82
|
-
- name: Set up Python 3.
|
|
103
|
+
- name: Set up Python 3.13
|
|
83
104
|
uses: actions/setup-python@v5
|
|
84
105
|
with:
|
|
85
|
-
python-version: "3.
|
|
106
|
+
python-version: "3.13"
|
|
86
107
|
cache-dependency-path: "pyproject.toml"
|
|
87
108
|
cache: "pip"
|
|
88
109
|
|
|
@@ -129,7 +150,7 @@ jobs:
|
|
|
129
150
|
- name: Set up Python
|
|
130
151
|
uses: actions/setup-python@v5
|
|
131
152
|
with:
|
|
132
|
-
python-version: 3.
|
|
153
|
+
python-version: 3.13
|
|
133
154
|
cache-dependency-path: "pyproject.toml"
|
|
134
155
|
cache: "pip"
|
|
135
156
|
|
|
@@ -173,6 +194,54 @@ jobs:
|
|
|
173
194
|
with:
|
|
174
195
|
body-path: report.md
|
|
175
196
|
|
|
197
|
+
test-case-coverage:
|
|
198
|
+
name: Test case coverage
|
|
199
|
+
runs-on: ubuntu-latest
|
|
200
|
+
if: github.event_name == 'pull_request'
|
|
201
|
+
|
|
202
|
+
steps:
|
|
203
|
+
- uses: actions/checkout@v4
|
|
204
|
+
|
|
205
|
+
- name: Set up Python 3.13
|
|
206
|
+
uses: actions/setup-python@v5
|
|
207
|
+
with:
|
|
208
|
+
python-version: "3.13"
|
|
209
|
+
cache-dependency-path: "pyproject.toml"
|
|
210
|
+
cache: "pip"
|
|
211
|
+
|
|
212
|
+
- name: Install dependencies
|
|
213
|
+
run: |
|
|
214
|
+
python -m pip install -U pip
|
|
215
|
+
python -m pip install -e .[covreport]
|
|
216
|
+
|
|
217
|
+
- name: Store target commit hash
|
|
218
|
+
id: hash
|
|
219
|
+
run: echo "commit=${{ github.event.pull_request.head.sha }}" >> "$GITHUB_OUTPUT"
|
|
220
|
+
|
|
221
|
+
- name: Run coverage report
|
|
222
|
+
run: |
|
|
223
|
+
python scripts/test_case_report.py ${{ github.event.pull_request.head.sha }}
|
|
224
|
+
|
|
225
|
+
- name: Add, stash, switch branch
|
|
226
|
+
run: |
|
|
227
|
+
git add ${{ github.event.pull_request.head.sha }}.png
|
|
228
|
+
git stash
|
|
229
|
+
git fetch
|
|
230
|
+
git checkout test-case-coverage-report
|
|
231
|
+
git stash pop
|
|
232
|
+
|
|
233
|
+
- name: Commit to branch
|
|
234
|
+
uses: EndBug/add-and-commit@v9
|
|
235
|
+
with:
|
|
236
|
+
add: "*.png"
|
|
237
|
+
|
|
238
|
+
- name: Comment with image link
|
|
239
|
+
uses: peter-evans/commit-comment@v3
|
|
240
|
+
with:
|
|
241
|
+
body: |
|
|
242
|
+

|
|
243
|
+
|
|
244
|
+
|
|
176
245
|
deploy:
|
|
177
246
|
name: Deploy
|
|
178
247
|
needs: test
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
docs/dest
|
|
2
|
+
docs/.jupyter_cache
|
|
2
3
|
.DS_Store
|
|
3
4
|
|
|
4
5
|
# Byte-compiled / optimized / DLL files
|
|
@@ -78,6 +79,7 @@ target/
|
|
|
78
79
|
|
|
79
80
|
# pyenv
|
|
80
81
|
.python-version
|
|
82
|
+
uv.lock
|
|
81
83
|
|
|
82
84
|
# celery beat schedule file
|
|
83
85
|
celerybeat-schedule
|
|
@@ -92,6 +94,7 @@ celerybeat-schedule
|
|
|
92
94
|
.venv
|
|
93
95
|
venv/
|
|
94
96
|
ENV/
|
|
97
|
+
uv.lock
|
|
95
98
|
|
|
96
99
|
# Spyder project settings
|
|
97
100
|
.spyderproject
|
|
@@ -108,3 +111,8 @@ ENV/
|
|
|
108
111
|
|
|
109
112
|
# IDE settings
|
|
110
113
|
.vscode/
|
|
114
|
+
|
|
115
|
+
# pixi environments
|
|
116
|
+
.pixi
|
|
117
|
+
pixi.lock
|
|
118
|
+
*.egg-info
|
|
@@ -5,31 +5,30 @@ ci:
|
|
|
5
5
|
|
|
6
6
|
repos:
|
|
7
7
|
- repo: https://github.com/crate-ci/typos
|
|
8
|
-
rev:
|
|
8
|
+
rev: v1
|
|
9
9
|
hooks:
|
|
10
10
|
- id: typos
|
|
11
11
|
|
|
12
12
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
|
13
|
-
rev: v0.
|
|
13
|
+
rev: v0.12.7
|
|
14
14
|
hooks:
|
|
15
15
|
- id: ruff
|
|
16
16
|
args: [--fix]
|
|
17
|
-
|
|
18
|
-
- repo: https://github.com/psf/black
|
|
19
|
-
rev: 24.10.0
|
|
20
|
-
hooks:
|
|
21
|
-
- id: black
|
|
17
|
+
- id: ruff-format
|
|
22
18
|
|
|
23
19
|
- repo: https://github.com/abravalheri/validate-pyproject
|
|
24
|
-
rev: v0.
|
|
20
|
+
rev: v0.24.1
|
|
25
21
|
hooks:
|
|
26
22
|
- id: validate-pyproject
|
|
27
23
|
|
|
28
24
|
- repo: https://github.com/pre-commit/mirrors-mypy
|
|
29
|
-
rev: v1.
|
|
25
|
+
rev: v1.17.1
|
|
30
26
|
hooks:
|
|
31
27
|
- id: mypy
|
|
32
28
|
files: "^src/"
|
|
33
|
-
#
|
|
34
|
-
|
|
35
|
-
|
|
29
|
+
# you have to add the things you want to type check against here
|
|
30
|
+
additional_dependencies:
|
|
31
|
+
- types-networkx
|
|
32
|
+
- scipy-stubs
|
|
33
|
+
- pandas-stubs
|
|
34
|
+
- types-tqdm
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: traccuracy
|
|
3
|
+
Version: 0.4.0
|
|
4
|
+
Summary: Utilities for computing common accuracy metrics on cell tracking challenge solutions with ground truth
|
|
5
|
+
Author-email: Draga Doncila Pop <draga.doncilapop1@monash.edu>, Caroline Malin-Mayor <cmalinmayor@gmail.com>, Morgan Schwartz <msschwartz21@gmail.com>
|
|
6
|
+
License: BSD 3-Clause License
|
|
7
|
+
Project-URL: homepage, https://github.com/live-image-tracking-tools/traccuracy
|
|
8
|
+
Project-URL: repository, https://github.com/live-image-tracking-tools/traccuracy
|
|
9
|
+
Project-URL: documentation, https://traccuracy.readthedocs.io/
|
|
10
|
+
Classifier: Development Status :: 3 - Alpha
|
|
11
|
+
Classifier: License :: OSI Approved :: BSD License
|
|
12
|
+
Classifier: Natural Language :: English
|
|
13
|
+
Classifier: Programming Language :: Python :: 3
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
18
|
+
Classifier: Typing :: Typed
|
|
19
|
+
Requires-Python: >=3.10
|
|
20
|
+
Description-Content-Type: text/markdown
|
|
21
|
+
License-File: LICENSE
|
|
22
|
+
Requires-Dist: click<8.2.0
|
|
23
|
+
Requires-Dist: numpy
|
|
24
|
+
Requires-Dist: networkx
|
|
25
|
+
Requires-Dist: pandas
|
|
26
|
+
Requires-Dist: tifffile
|
|
27
|
+
Requires-Dist: imagecodecs
|
|
28
|
+
Requires-Dist: scikit-image
|
|
29
|
+
Requires-Dist: tqdm
|
|
30
|
+
Requires-Dist: typer
|
|
31
|
+
Requires-Dist: numba
|
|
32
|
+
Requires-Dist: pyarrow
|
|
33
|
+
Requires-Dist: scipy
|
|
34
|
+
Requires-Dist: skan>=0.13
|
|
35
|
+
Requires-Dist: geff>=0.5.0
|
|
36
|
+
Provides-Extra: test
|
|
37
|
+
Requires-Dist: pytest>=6.0; extra == "test"
|
|
38
|
+
Requires-Dist: pytest-cov; extra == "test"
|
|
39
|
+
Requires-Dist: pytest-benchmark; extra == "test"
|
|
40
|
+
Requires-Dist: pytest-timeout; extra == "test"
|
|
41
|
+
Requires-Dist: tabulate; extra == "test"
|
|
42
|
+
Provides-Extra: dev
|
|
43
|
+
Requires-Dist: ipython; extra == "dev"
|
|
44
|
+
Requires-Dist: pdbpp; extra == "dev"
|
|
45
|
+
Requires-Dist: pre-commit; extra == "dev"
|
|
46
|
+
Requires-Dist: ruff; extra == "dev"
|
|
47
|
+
Requires-Dist: traccuracy[test]; extra == "dev"
|
|
48
|
+
Requires-Dist: traccuracy[docs]; extra == "dev"
|
|
49
|
+
Requires-Dist: traccuracy[typing]; extra == "dev"
|
|
50
|
+
Provides-Extra: docs
|
|
51
|
+
Requires-Dist: myst-nb<2,>=1.2.0; extra == "docs"
|
|
52
|
+
Requires-Dist: sphinx-autoapi==3.0.0; extra == "docs"
|
|
53
|
+
Requires-Dist: sphinx-click<7,>=6.0.0; extra == "docs"
|
|
54
|
+
Requires-Dist: sphinx-rtd-theme<4,>=3.0.1; extra == "docs"
|
|
55
|
+
Requires-Dist: sphinx<8,>=7.4.7; extra == "docs"
|
|
56
|
+
Requires-Dist: matplotlib; extra == "docs"
|
|
57
|
+
Requires-Dist: jupytext<2,>=1.16.7; extra == "docs"
|
|
58
|
+
Requires-Dist: nbsphinx-link==1.3.0; extra == "docs"
|
|
59
|
+
Requires-Dist: nbsphinx==0.9.3; extra == "docs"
|
|
60
|
+
Requires-Dist: docutils==0.20.*; extra == "docs"
|
|
61
|
+
Provides-Extra: covreport
|
|
62
|
+
Requires-Dist: traccuracy[test]; extra == "covreport"
|
|
63
|
+
Requires-Dist: seaborn; extra == "covreport"
|
|
64
|
+
Provides-Extra: typing
|
|
65
|
+
Requires-Dist: mypy; extra == "typing"
|
|
66
|
+
Requires-Dist: types-networkx; extra == "typing"
|
|
67
|
+
Requires-Dist: scipy-stubs; extra == "typing"
|
|
68
|
+
Requires-Dist: pandas-stubs; extra == "typing"
|
|
69
|
+
Requires-Dist: types-tqdm; extra == "typing"
|
|
70
|
+
Dynamic: license-file
|
|
71
|
+
|
|
72
|
+
# traccuracy: Evaluate Cell Tracking Solutions
|
|
73
|
+
|
|
74
|
+
[](https://github.com/live-image-tracking-tools/traccuracy/raw/main/LICENSE)
|
|
75
|
+
[](https://pypi.org/project/traccuracy)
|
|
76
|
+
[](https://python.org)
|
|
77
|
+
[](https://github.com/live-image-tracking-tools/traccuracy/actions/workflows/ci.yml)
|
|
78
|
+
[](https://live-image-tracking-tools.github.io/traccuracy/dev/bench/)
|
|
79
|
+
[](https://traccuracy.readthedocs.io/en/latest/?badge=latest)
|
|
80
|
+
[](https://codecov.io/gh/live-image-tracking-tools/traccuracy)
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
`traccuracy` provides a suite of benchmarking functions that can be used to evaluate cell tracking solutions against ground truth annotations. The goal of this library is to provide a convenient way to run rigorous evaluation and to document and consolidate the wide variety of metrics used in the field.
|
|
84
|
+
|
|
85
|
+
`traccuracy` can compute a comprehensive set of metrics for evaluating cell linking and division performance, and can compute biologically meaningful metrics such as the number of correctly reconstructed lineages over N frames and cell cycle length accuracy. As matching ground truth and predicted lineages is a crucial step for performing evaluation, `traccuracy` includes a number of algorithms for matching ground truth and predicted lineages, both with and without segmentation masks.
|
|
86
|
+
|
|
87
|
+
Learn more in the [documentation](https://traccuracy.readthedocs.io/en/latest/) or check out the [source code](https://github.com/live-image-tracking-tools/traccuracy).
|
|
88
|
+
|
|
89
|
+
## Installation
|
|
90
|
+
`pip install traccuracy`
|
|
91
|
+
|
|
92
|
+
## How It Works
|
|
93
|
+
The `traccuracy` library has three main components: loaders, matchers, and metrics.
|
|
94
|
+
|
|
95
|
+
Loaders load tracking graphs from other formats, such as the CTC format, into a [TrackingGraph](https://traccuracy.readthedocs.io/en/latest/autoapi/traccuracy/index.html#traccuracy.TrackingGraph) object.
|
|
96
|
+
A `TrackingGraph` is a spatiotemporal graph backed by a `networkx.DiGraph`
|
|
97
|
+
Nodes represent a single cell in a given time point, and are annotated with a time and a location.
|
|
98
|
+
Edges point forward in time from a node representing a cell in time point `t` to the same cell or its daughter in frame `t+1` (or beyond, to represent skip edges). Additional terminology is documented in the [glossary](https://traccuracy.readthedocs.io/en/latest/glossary.html)
|
|
99
|
+
To load `TrackingGraph`s from a custom format, you will likely need to implement a loader: see
|
|
100
|
+
documentation [here](https://traccuracy.readthedocs.io/en/latest/autoapi/traccuracy/loaders/index.html#module-traccuracy.loaders) for more information. Alternatively you can initialize a `TrackingGraph` with a `networkx.DiGraph` and `ArrayLike` objects of segmentation masks if needed.
|
|
101
|
+
|
|
102
|
+
Matchers take a ground truth and a predicted `TrackingGraph` with optional segmentation masks and match the nodes and edges to allow evaluation to occur. A list of matchers is available [here](https://traccuracy.readthedocs.io/en/latest/matchers/matchers.html).
|
|
103
|
+
|
|
104
|
+
In order to compute metrics, `traccuracy` begins by annotating the matched graphs with error flags such as False Positive and False Negative. The annotated graph can be exported and used for visualization in other tools. Finally, metrics inspect the error annotations to report both error counts and summary statistics.
|
|
105
|
+
|
|
106
|
+
The `traccuracy` library has a flexible Python API, shown in [this](https://traccuracy.readthedocs.io/en/latest/examples/ctc.html) example notebook. Additionally there is a command line interface for running standard CTC metrics, [documented here](https://traccuracy.readthedocs.io/en/latest/cli.html).
|
|
107
|
+
|
|
108
|
+
```python
|
|
109
|
+
from traccuracy.loaders import load_ctc_data
|
|
110
|
+
from traccuracy.matchers import PointMatcher
|
|
111
|
+
from traccuracy.metrics import DivisionMetrics, BasicMetrics
|
|
112
|
+
|
|
113
|
+
# Load data in TrackingGraph objects
|
|
114
|
+
gt_data = load_ctc_data(
|
|
115
|
+
"path/to/GT/TRA",
|
|
116
|
+
"path/to/GT/TRA/man_track.txt",
|
|
117
|
+
name="GT"
|
|
118
|
+
)
|
|
119
|
+
pred_data = load_ctc_data(
|
|
120
|
+
"path/to/prediction",
|
|
121
|
+
"path/to/prediction/track.txt",
|
|
122
|
+
name="prediction"
|
|
123
|
+
)
|
|
124
|
+
|
|
125
|
+
results, matched = run_metrics(
|
|
126
|
+
gt_data=gt_data,
|
|
127
|
+
pred_data=pred_data,
|
|
128
|
+
matcher=PointMatcher(),
|
|
129
|
+
metrics=[DivisionMetrics(), BasicMetrics()]
|
|
130
|
+
)
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
## Implemented Metrics
|
|
135
|
+
|
|
136
|
+
- [Cell Tracking Challenge Evaluation Methodology](http://celltrackingchallenge.net/evaluation-methodology/)
|
|
137
|
+
- [CTC-DET](https://traccuracy.readthedocs.io/en/latest/metrics/ctc.html#det)
|
|
138
|
+
- [CTC-LNK](https://traccuracy.readthedocs.io/en/latest/metrics/ctc.html#lnk)
|
|
139
|
+
- [CTC-TRA](https://traccuracy.readthedocs.io/en/latest/metrics/ctc.html#tra)
|
|
140
|
+
- [Branching Correctness](https://traccuracy.readthedocs.io/en/latest/metrics/ctc.html#branching-correctness-bc) (BC)
|
|
141
|
+
- [Acyclic Oriented Graph Metric](https://traccuracy.readthedocs.io/en/latest/metrics/ctc.html#aogm) (AOGM) from [Matula et al. 2015](https://doi.org/10.1371/journal.pone.0144959). A generalized form the CTC metrics where you can supply different weights for each component of the overall metric.
|
|
142
|
+
- [Division Performance Metrics](https://traccuracy.readthedocs.io/en/latest/metrics/division.html#) Optionally allows detection within N frames of ground truth division.
|
|
143
|
+
- Division Precision
|
|
144
|
+
- Division Recall
|
|
145
|
+
- Division F1 score
|
|
146
|
+
- [Mitotic Branching Correctness](https://traccuracy.readthedocs.io/en/latest/metrics/division.html#mitotic-branching-score) from [Ulicna et al. 2021](https://doi.org/10.3389/fcomp.2021.734559).
|
|
147
|
+
- [Basic Connectivity Metrics](https://traccuracy.readthedocs.io/en/latest/metrics/basic.html) highlighting performance on both nodes and edges.
|
|
148
|
+
- Node/Edge Precision
|
|
149
|
+
- Node/Edge Recall
|
|
150
|
+
- Node/Edge F1 Score
|
|
151
|
+
- [Track Overlap Metrics](https://traccuracy.readthedocs.io/en/latest/metrics/track_overlap.html) defined by [Bise et al. 2011](https://doi.org/10.1109/ISBI.2011.5872571), [Chen 2021](https://doi.org/10.48550/arXiv.2102.10377), and [Fukai et al. 2022](https://doi.org/10.1093/bioinformatics/btac799).
|
|
152
|
+
- [Track Purity](https://traccuracy.readthedocs.io/en/latest/metrics/track_overlap.html#track-purity)
|
|
153
|
+
- [Track Effectiveness](https://traccuracy.readthedocs.io/en/latest/metrics/track_overlap.html#target-effectiveness)
|
|
154
|
+
- [Track Fractions](https://traccuracy.readthedocs.io/en/latest/metrics/track_overlap.html#track-fractions)
|
|
155
|
+
- [Complete Tracks](https://traccuracy.readthedocs.io/en/latest/metrics/track_overlap.html#complete-tracks)
|
|
156
|
+
- [CHOTA](https://traccuracy.readthedocs.io/en/latest/metrics/chota.html#chota) from [Kaiser et al. 2024](https://doi.org/10.1007/978-3-031-91721-9_8).
|
|
157
|
+
|
|
158
|
+
## Featured Works
|
|
159
|
+
|
|
160
|
+
If you use `traccuracy` in your own work, please let us know so that we can feature it here!
|
|
161
|
+
|
|
162
|
+
- [Archit, A. et al. (2025). Segment anything for microscopy. Nature Methods.](https://doi.org/10.1038/s41592-024-02580-4)
|
|
163
|
+
- [Evans et al. (2025). Icebergs, jigsaw puzzles and genealogy: Automated multi-generational iceberg tracking and lineage reconstruction. Preprint in EGUsphere.](https://doi.org/10.5194/egusphere-2025-2886)
|
|
164
|
+
- [Seiffarth, J., & Nöh, K. (2025). PyUAT: Open-source Python framework for efficient and scalable cell tracking. arXiv preprint.](https://arxiv.org/pdf/2503.21914)
|
|
165
|
+
- [Bragantini, J. et al. (2024). Ultrack: pushing the limits of cell tracking across biological scales. bioRxiv.](https://doi.org/10.1101/2024.09.02.610652)
|
|
166
|
+
- [Gallusser, B., & Weigert, M. (2024). Trackastra: Transformer-based cell tracking for live-cell microscopy. In European Conference on Computer Vision.](https://doi.org/10.1007/978-3-031-73116-7_27)
|
|
167
|
+
- [Toma, T. T., Wang, Y., Gahlmann, A., & Acton, S. T. (2024). Deep Temporal Sequence Classification and Mathematical Modeling for Cell Tracking in Dense 3D Microscopy Videos of Bacterial Biofilms. arXiv preprint.](https://doi.org/10.48550/arXiv.2406.19574)
|
|
168
|
+
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
# traccuracy: Evaluate Cell Tracking Solutions
|
|
2
|
+
|
|
3
|
+
[](https://github.com/live-image-tracking-tools/traccuracy/raw/main/LICENSE)
|
|
4
|
+
[](https://pypi.org/project/traccuracy)
|
|
5
|
+
[](https://python.org)
|
|
6
|
+
[](https://github.com/live-image-tracking-tools/traccuracy/actions/workflows/ci.yml)
|
|
7
|
+
[](https://live-image-tracking-tools.github.io/traccuracy/dev/bench/)
|
|
8
|
+
[](https://traccuracy.readthedocs.io/en/latest/?badge=latest)
|
|
9
|
+
[](https://codecov.io/gh/live-image-tracking-tools/traccuracy)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
`traccuracy` provides a suite of benchmarking functions that can be used to evaluate cell tracking solutions against ground truth annotations. The goal of this library is to provide a convenient way to run rigorous evaluation and to document and consolidate the wide variety of metrics used in the field.
|
|
13
|
+
|
|
14
|
+
`traccuracy` can compute a comprehensive set of metrics for evaluating cell linking and division performance, and can compute biologically meaningful metrics such as the number of correctly reconstructed lineages over N frames and cell cycle length accuracy. As matching ground truth and predicted lineages is a crucial step for performing evaluation, `traccuracy` includes a number of algorithms for matching ground truth and predicted lineages, both with and without segmentation masks.
|
|
15
|
+
|
|
16
|
+
Learn more in the [documentation](https://traccuracy.readthedocs.io/en/latest/) or check out the [source code](https://github.com/live-image-tracking-tools/traccuracy).
|
|
17
|
+
|
|
18
|
+
## Installation
|
|
19
|
+
`pip install traccuracy`
|
|
20
|
+
|
|
21
|
+
## How It Works
|
|
22
|
+
The `traccuracy` library has three main components: loaders, matchers, and metrics.
|
|
23
|
+
|
|
24
|
+
Loaders load tracking graphs from other formats, such as the CTC format, into a [TrackingGraph](https://traccuracy.readthedocs.io/en/latest/autoapi/traccuracy/index.html#traccuracy.TrackingGraph) object.
|
|
25
|
+
A `TrackingGraph` is a spatiotemporal graph backed by a `networkx.DiGraph`
|
|
26
|
+
Nodes represent a single cell in a given time point, and are annotated with a time and a location.
|
|
27
|
+
Edges point forward in time from a node representing a cell in time point `t` to the same cell or its daughter in frame `t+1` (or beyond, to represent skip edges). Additional terminology is documented in the [glossary](https://traccuracy.readthedocs.io/en/latest/glossary.html)
|
|
28
|
+
To load `TrackingGraph`s from a custom format, you will likely need to implement a loader: see
|
|
29
|
+
documentation [here](https://traccuracy.readthedocs.io/en/latest/autoapi/traccuracy/loaders/index.html#module-traccuracy.loaders) for more information. Alternatively you can initialize a `TrackingGraph` with a `networkx.DiGraph` and `ArrayLike` objects of segmentation masks if needed.
|
|
30
|
+
|
|
31
|
+
Matchers take a ground truth and a predicted `TrackingGraph` with optional segmentation masks and match the nodes and edges to allow evaluation to occur. A list of matchers is available [here](https://traccuracy.readthedocs.io/en/latest/matchers/matchers.html).
|
|
32
|
+
|
|
33
|
+
In order to compute metrics, `traccuracy` begins by annotating the matched graphs with error flags such as False Positive and False Negative. The annotated graph can be exported and used for visualization in other tools. Finally, metrics inspect the error annotations to report both error counts and summary statistics.
|
|
34
|
+
|
|
35
|
+
The `traccuracy` library has a flexible Python API, shown in [this](https://traccuracy.readthedocs.io/en/latest/examples/ctc.html) example notebook. Additionally there is a command line interface for running standard CTC metrics, [documented here](https://traccuracy.readthedocs.io/en/latest/cli.html).
|
|
36
|
+
|
|
37
|
+
```python
|
|
38
|
+
from traccuracy.loaders import load_ctc_data
|
|
39
|
+
from traccuracy.matchers import PointMatcher
|
|
40
|
+
from traccuracy.metrics import DivisionMetrics, BasicMetrics
|
|
41
|
+
|
|
42
|
+
# Load data in TrackingGraph objects
|
|
43
|
+
gt_data = load_ctc_data(
|
|
44
|
+
"path/to/GT/TRA",
|
|
45
|
+
"path/to/GT/TRA/man_track.txt",
|
|
46
|
+
name="GT"
|
|
47
|
+
)
|
|
48
|
+
pred_data = load_ctc_data(
|
|
49
|
+
"path/to/prediction",
|
|
50
|
+
"path/to/prediction/track.txt",
|
|
51
|
+
name="prediction"
|
|
52
|
+
)
|
|
53
|
+
|
|
54
|
+
results, matched = run_metrics(
|
|
55
|
+
gt_data=gt_data,
|
|
56
|
+
pred_data=pred_data,
|
|
57
|
+
matcher=PointMatcher(),
|
|
58
|
+
metrics=[DivisionMetrics(), BasicMetrics()]
|
|
59
|
+
)
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
## Implemented Metrics
|
|
64
|
+
|
|
65
|
+
- [Cell Tracking Challenge Evaluation Methodology](http://celltrackingchallenge.net/evaluation-methodology/)
|
|
66
|
+
- [CTC-DET](https://traccuracy.readthedocs.io/en/latest/metrics/ctc.html#det)
|
|
67
|
+
- [CTC-LNK](https://traccuracy.readthedocs.io/en/latest/metrics/ctc.html#lnk)
|
|
68
|
+
- [CTC-TRA](https://traccuracy.readthedocs.io/en/latest/metrics/ctc.html#tra)
|
|
69
|
+
- [Branching Correctness](https://traccuracy.readthedocs.io/en/latest/metrics/ctc.html#branching-correctness-bc) (BC)
|
|
70
|
+
- [Acyclic Oriented Graph Metric](https://traccuracy.readthedocs.io/en/latest/metrics/ctc.html#aogm) (AOGM) from [Matula et al. 2015](https://doi.org/10.1371/journal.pone.0144959). A generalized form the CTC metrics where you can supply different weights for each component of the overall metric.
|
|
71
|
+
- [Division Performance Metrics](https://traccuracy.readthedocs.io/en/latest/metrics/division.html#) Optionally allows detection within N frames of ground truth division.
|
|
72
|
+
- Division Precision
|
|
73
|
+
- Division Recall
|
|
74
|
+
- Division F1 score
|
|
75
|
+
- [Mitotic Branching Correctness](https://traccuracy.readthedocs.io/en/latest/metrics/division.html#mitotic-branching-score) from [Ulicna et al. 2021](https://doi.org/10.3389/fcomp.2021.734559).
|
|
76
|
+
- [Basic Connectivity Metrics](https://traccuracy.readthedocs.io/en/latest/metrics/basic.html) highlighting performance on both nodes and edges.
|
|
77
|
+
- Node/Edge Precision
|
|
78
|
+
- Node/Edge Recall
|
|
79
|
+
- Node/Edge F1 Score
|
|
80
|
+
- [Track Overlap Metrics](https://traccuracy.readthedocs.io/en/latest/metrics/track_overlap.html) defined by [Bise et al. 2011](https://doi.org/10.1109/ISBI.2011.5872571), [Chen 2021](https://doi.org/10.48550/arXiv.2102.10377), and [Fukai et al. 2022](https://doi.org/10.1093/bioinformatics/btac799).
|
|
81
|
+
- [Track Purity](https://traccuracy.readthedocs.io/en/latest/metrics/track_overlap.html#track-purity)
|
|
82
|
+
- [Track Effectiveness](https://traccuracy.readthedocs.io/en/latest/metrics/track_overlap.html#target-effectiveness)
|
|
83
|
+
- [Track Fractions](https://traccuracy.readthedocs.io/en/latest/metrics/track_overlap.html#track-fractions)
|
|
84
|
+
- [Complete Tracks](https://traccuracy.readthedocs.io/en/latest/metrics/track_overlap.html#complete-tracks)
|
|
85
|
+
- [CHOTA](https://traccuracy.readthedocs.io/en/latest/metrics/chota.html#chota) from [Kaiser et al. 2024](https://doi.org/10.1007/978-3-031-91721-9_8).
|
|
86
|
+
|
|
87
|
+
## Featured Works
|
|
88
|
+
|
|
89
|
+
If you use `traccuracy` in your own work, please let us know so that we can feature it here!
|
|
90
|
+
|
|
91
|
+
- [Archit, A. et al. (2025). Segment anything for microscopy. Nature Methods.](https://doi.org/10.1038/s41592-024-02580-4)
|
|
92
|
+
- [Evans et al. (2025). Icebergs, jigsaw puzzles and genealogy: Automated multi-generational iceberg tracking and lineage reconstruction. Preprint in EGUsphere.](https://doi.org/10.5194/egusphere-2025-2886)
|
|
93
|
+
- [Seiffarth, J., & Nöh, K. (2025). PyUAT: Open-source Python framework for efficient and scalable cell tracking. arXiv preprint.](https://arxiv.org/pdf/2503.21914)
|
|
94
|
+
- [Bragantini, J. et al. (2024). Ultrack: pushing the limits of cell tracking across biological scales. bioRxiv.](https://doi.org/10.1101/2024.09.02.610652)
|
|
95
|
+
- [Gallusser, B., & Weigert, M. (2024). Trackastra: Transformer-based cell tracking for live-cell microscopy. In European Conference on Computer Vision.](https://doi.org/10.1007/978-3-031-73116-7_27)
|
|
96
|
+
- [Toma, T. T., Wang, Y., Gahlmann, A., & Acton, S. T. (2024). Deep Temporal Sequence Classification and Mathematical Modeling for Cell Tracking in Dense 3D Microscopy Videos of Bacterial Biofilms. arXiv preprint.](https://doi.org/10.48550/arXiv.2406.19574)
|
|
97
|
+
|
|
@@ -1,27 +1,35 @@
|
|
|
1
1
|
# Traccuracy Developer Notes
|
|
2
2
|
|
|
3
|
+
We recommend using `pixi` for environment management while developing `traccuracy`. See the [pixi docs](https://pixi.sh/dev/) for installation instructions. The following instructions will be focused on pixi-based development, but all of the same tasks can be completed with pip and another environment manager.
|
|
4
|
+
|
|
3
5
|
## Development
|
|
4
6
|
For local development, clone the repo and install in editable mode.
|
|
5
7
|
```
|
|
6
|
-
git clone https://github.com/
|
|
7
|
-
|
|
8
|
-
pip install -e ".[dev]"
|
|
8
|
+
git clone https://github.com/live-image-tracking-tools/traccuracy.git
|
|
9
|
+
pixi install
|
|
9
10
|
```
|
|
10
11
|
|
|
11
12
|
### Testing
|
|
12
|
-
|
|
13
|
+
To run basic tests
|
|
14
|
+
```
|
|
15
|
+
pixi run test
|
|
13
16
|
```
|
|
14
|
-
|
|
17
|
+
|
|
18
|
+
We run benchmarking on every commit into main to keep track of any potential performance regression. To run benchmarking locally:
|
|
15
19
|
```
|
|
16
|
-
|
|
20
|
+
pixi run benchmark
|
|
17
21
|
```
|
|
18
|
-
|
|
22
|
+
This command should download the data (alternatively run `pixi run getdata`) and then run benchmarking.
|
|
23
|
+
|
|
24
|
+
`traccuracy` tests are built around a set of standard test cases available in `tests.examples`. To check coverage of matcher and error modules against standard tests cases, run
|
|
19
25
|
```
|
|
26
|
+
pixi run test-case-report
|
|
27
|
+
```
|
|
28
|
+
|
|
20
29
|
### Style
|
|
21
30
|
We utilize `pre-commit` with black (formatting) and ruff (linting). If you would like to run `pre-commit` locally:
|
|
22
31
|
```
|
|
23
|
-
|
|
24
|
-
pre-commit install
|
|
32
|
+
pixi run -e dev pre-commit install
|
|
25
33
|
```
|
|
26
34
|
Alternatively [pre-commit.ci](https://pre-commit.ci/), will run and commit changes on any open PRs.
|
|
27
35
|
|
|
@@ -35,17 +43,9 @@ git push --follow-tags
|
|
|
35
43
|
### Documentation
|
|
36
44
|
Documentation is built with Sphinx using `sphinx-autoapi` to automatically generate API documentation at build time. Docs are hosted on ReadTheDocs and build automatically after each push to main. Documentation can be built locally by running the following:
|
|
37
45
|
```
|
|
38
|
-
|
|
39
|
-
pip install -e ".[docs]"
|
|
40
|
-
# Change into docs directory
|
|
41
|
-
cd docs
|
|
42
|
-
# Run the build
|
|
43
|
-
sphinx-build source _build
|
|
46
|
+
pixi run docs
|
|
44
47
|
```
|
|
45
48
|
|
|
46
49
|
Note that running documentation locally requires Pandoc to be installed as well - https://pandoc.org/installing.html.
|
|
47
50
|
|
|
48
|
-
You can view the documentation by opening `docs/_build/index.html` in your browser.
|
|
49
|
-
|
|
50
|
-
#### Running code cells in docs
|
|
51
|
-
Executable code blocks can be added to rst files using `.. jupyter-execute::`. In order to get these code cells to run, assume that sphinx-build is being called from the docs/source directory and append to `sys.path` if necessary.
|
|
51
|
+
You can view the documentation by opening `docs/_build/index.html` in your browser.
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/* .wy-table-responsive table td, .wy-table-responsive table th {
|
|
2
|
+
white-space: normal;
|
|
3
|
+
} */
|
|
4
|
+
|
|
5
|
+
/* override table width restrictions */
|
|
6
|
+
.wy-table-responsive table td, .wy-table-responsive table th {
|
|
7
|
+
white-space: normal;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.wy-table-responsive {
|
|
11
|
+
margin-bottom: 24px;
|
|
12
|
+
max-width: 100%;
|
|
13
|
+
overflow: visible;
|
|
14
|
+
}
|