traccuracy 0.2.0__tar.gz → 0.3.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.
Files changed (202) hide show
  1. traccuracy-0.3.0/.gitattributes +2 -0
  2. {traccuracy-0.2.0 → traccuracy-0.3.0}/.github/PULL_REQUEST_TEMPLATE/new_matcher_metric.md +1 -1
  3. {traccuracy-0.2.0 → traccuracy-0.3.0}/.github/workflows/benchmark-report.yml +1 -1
  4. {traccuracy-0.2.0 → traccuracy-0.3.0}/.github/workflows/ci.yml +52 -4
  5. {traccuracy-0.2.0 → traccuracy-0.3.0}/.gitignore +5 -0
  6. {traccuracy-0.2.0 → traccuracy-0.3.0}/.pre-commit-config.yaml +11 -12
  7. {traccuracy-0.2.0 → traccuracy-0.3.0}/PKG-INFO +31 -21
  8. {traccuracy-0.2.0 → traccuracy-0.3.0}/README.md +5 -2
  9. {traccuracy-0.2.0 → traccuracy-0.3.0}/developer_notes.md +18 -18
  10. traccuracy-0.3.0/docs/source/_static/css/tablefix.css +14 -0
  11. traccuracy-0.2.0/docs/source/cli.rst → traccuracy-0.3.0/docs/source/cli.md +3 -2
  12. {traccuracy-0.2.0 → traccuracy-0.3.0}/docs/source/conf.py +22 -12
  13. traccuracy-0.3.0/docs/source/index.md +50 -0
  14. traccuracy-0.3.0/docs/source/matchers/matchers.md +24 -0
  15. traccuracy-0.3.0/docs/source/metrics/basic.md +17 -0
  16. traccuracy-0.2.0/docs/source/metrics/ctc.rst → traccuracy-0.3.0/docs/source/metrics/ctc.md +49 -30
  17. traccuracy-0.3.0/docs/source/metrics/divisions.md +7 -0
  18. traccuracy-0.3.0/docs/source/metrics/track_overlap.md +9 -0
  19. traccuracy-0.2.0/docs/source/test_cases/divisions.pct.py → traccuracy-0.3.0/docs/source/test_cases/divisions.md +53 -43
  20. traccuracy-0.2.0/docs/source/test_cases/graphs.pct.py → traccuracy-0.3.0/docs/source/test_cases/errors.md +61 -39
  21. traccuracy-0.3.0/docs/source/test_cases/index.md +12 -0
  22. traccuracy-0.3.0/docs/source/test_cases/matchers.md +104 -0
  23. traccuracy-0.2.0/docs/source/track_errors/basic.pct.py → traccuracy-0.3.0/docs/source/track_errors/basic.md +91 -66
  24. traccuracy-0.3.0/docs/source/track_errors/ctc.md +182 -0
  25. traccuracy-0.3.0/docs/source/track_errors/divisions.md +195 -0
  26. traccuracy-0.3.0/docs/source/track_errors/gap_closing.rst +8 -0
  27. {traccuracy-0.2.0 → traccuracy-0.3.0}/examples/ctc.ipynb +12 -13
  28. {traccuracy-0.2.0 → traccuracy-0.3.0}/pyproject.toml +64 -27
  29. traccuracy-0.3.0/scripts/test_case_report.py +241 -0
  30. {traccuracy-0.2.0 → traccuracy-0.3.0}/src/traccuracy/_run_metrics.py +1 -3
  31. {traccuracy-0.2.0 → traccuracy-0.3.0}/src/traccuracy/_tracking_graph.py +55 -48
  32. traccuracy-0.3.0/src/traccuracy/cli.py +69 -0
  33. {traccuracy-0.2.0 → traccuracy-0.3.0}/src/traccuracy/loaders/__init__.py +1 -1
  34. {traccuracy-0.2.0 → traccuracy-0.3.0}/src/traccuracy/loaders/_ctc.py +48 -44
  35. {traccuracy-0.2.0 → traccuracy-0.3.0}/src/traccuracy/matchers/__init__.py +12 -3
  36. {traccuracy-0.2.0 → traccuracy-0.3.0}/src/traccuracy/matchers/_base.py +15 -17
  37. {traccuracy-0.2.0 → traccuracy-0.3.0}/src/traccuracy/matchers/_compute_overlap.py +18 -45
  38. {traccuracy-0.2.0 → traccuracy-0.3.0}/src/traccuracy/matchers/_ctc.py +11 -3
  39. {traccuracy-0.2.0 → traccuracy-0.3.0}/src/traccuracy/matchers/_iou.py +35 -26
  40. traccuracy-0.3.0/src/traccuracy/matchers/_point.py +141 -0
  41. traccuracy-0.3.0/src/traccuracy/matchers/_point_seg.py +100 -0
  42. {traccuracy-0.2.0 → traccuracy-0.3.0}/src/traccuracy/metrics/_base.py +8 -7
  43. {traccuracy-0.2.0 → traccuracy-0.3.0}/src/traccuracy/metrics/_basic.py +2 -2
  44. {traccuracy-0.2.0 → traccuracy-0.3.0}/src/traccuracy/metrics/_ctc.py +121 -35
  45. {traccuracy-0.2.0 → traccuracy-0.3.0}/src/traccuracy/metrics/_divisions.py +6 -7
  46. {traccuracy-0.2.0 → traccuracy-0.3.0}/src/traccuracy/metrics/_track_overlap.py +26 -33
  47. {traccuracy-0.2.0 → traccuracy-0.3.0}/src/traccuracy/track_errors/__init__.py +1 -2
  48. {traccuracy-0.2.0 → traccuracy-0.3.0}/src/traccuracy/track_errors/_ctc.py +8 -12
  49. {traccuracy-0.2.0 → traccuracy-0.3.0}/src/traccuracy/track_errors/basic.py +6 -12
  50. {traccuracy-0.2.0 → traccuracy-0.3.0}/src/traccuracy/track_errors/divisions.py +18 -12
  51. {traccuracy-0.2.0 → traccuracy-0.3.0}/src/traccuracy.egg-info/PKG-INFO +31 -21
  52. {traccuracy-0.2.0 → traccuracy-0.3.0}/src/traccuracy.egg-info/SOURCES.txt +23 -13
  53. {traccuracy-0.2.0 → traccuracy-0.3.0}/src/traccuracy.egg-info/requires.txt +22 -17
  54. {traccuracy-0.2.0 → traccuracy-0.3.0}/tests/bench.py +68 -8
  55. {traccuracy-0.2.0 → traccuracy-0.3.0}/tests/examples/graphs.py +105 -33
  56. {traccuracy-0.2.0 → traccuracy-0.3.0}/tests/examples/segs.py +20 -21
  57. {traccuracy-0.2.0 → traccuracy-0.3.0}/tests/loaders/test_ctc.py +36 -3
  58. {traccuracy-0.2.0 → traccuracy-0.3.0}/tests/matchers/test_base.py +2 -6
  59. {traccuracy-0.2.0 → traccuracy-0.3.0}/tests/matchers/test_compute_overlap.py +5 -13
  60. {traccuracy-0.2.0 → traccuracy-0.3.0}/tests/matchers/test_ctc.py +4 -10
  61. {traccuracy-0.2.0 → traccuracy-0.3.0}/tests/matchers/test_iou.py +35 -36
  62. traccuracy-0.3.0/tests/matchers/test_point.py +355 -0
  63. traccuracy-0.3.0/tests/matchers/test_point_seg.py +194 -0
  64. {traccuracy-0.2.0 → traccuracy-0.3.0}/tests/metrics/test_base.py +1 -3
  65. traccuracy-0.3.0/tests/metrics/test_ctc_metrics.py +163 -0
  66. {traccuracy-0.2.0 → traccuracy-0.3.0}/tests/metrics/test_divisions.py +9 -27
  67. {traccuracy-0.2.0 → traccuracy-0.3.0}/tests/metrics/test_track_overlap_metrics.py +66 -3
  68. {traccuracy-0.2.0 → traccuracy-0.3.0}/tests/metrics/test_weighted_error_sums.py +1 -3
  69. traccuracy-0.3.0/tests/test_cli.py +50 -0
  70. {traccuracy-0.2.0 → traccuracy-0.3.0}/tests/test_tracking_graph.py +7 -17
  71. {traccuracy-0.2.0 → traccuracy-0.3.0}/tests/test_utils.py +12 -20
  72. {traccuracy-0.2.0 → traccuracy-0.3.0}/tests/track_errors/test_basic.py +74 -8
  73. {traccuracy-0.2.0 → traccuracy-0.3.0}/tests/track_errors/test_ctc_errors.py +114 -0
  74. {traccuracy-0.2.0 → traccuracy-0.3.0}/tests/track_errors/test_divisions.py +40 -1
  75. traccuracy-0.2.0/docs/source/index.rst +0 -43
  76. traccuracy-0.2.0/docs/source/metrics/basic.rst +0 -18
  77. traccuracy-0.2.0/docs/source/metrics/divisions.rst +0 -10
  78. traccuracy-0.2.0/docs/source/metrics/track_overlap.rst +0 -11
  79. traccuracy-0.2.0/docs/source/test_cases/index.rst +0 -13
  80. traccuracy-0.2.0/docs/source/test_cases/segmentation.pct.py +0 -79
  81. traccuracy-0.2.0/docs/source/track_errors/ctc.rst +0 -192
  82. traccuracy-0.2.0/docs/source/track_errors/divisions.rst +0 -180
  83. traccuracy-0.2.0/src/traccuracy/cli.py +0 -259
  84. traccuracy-0.2.0/tests/metrics/test_ctc_metrics.py +0 -54
  85. {traccuracy-0.2.0 → traccuracy-0.3.0}/.github/ISSUE_TEMPLATE/bugs.md +0 -0
  86. {traccuracy-0.2.0 → traccuracy-0.3.0}/.github/ISSUE_TEMPLATE/features.md +0 -0
  87. {traccuracy-0.2.0 → traccuracy-0.3.0}/.github/PULL_REQUEST_TEMPLATE.md +0 -0
  88. {traccuracy-0.2.0 → traccuracy-0.3.0}/.github/dependabot.yml +0 -0
  89. {traccuracy-0.2.0 → traccuracy-0.3.0}/.github/release.yml +0 -0
  90. {traccuracy-0.2.0 → traccuracy-0.3.0}/.github/workflows/benchmark-pr.py +0 -0
  91. {traccuracy-0.2.0 → traccuracy-0.3.0}/.readthedocs.yml +0 -0
  92. {traccuracy-0.2.0 → traccuracy-0.3.0}/LICENSE +0 -0
  93. {traccuracy-0.2.0 → traccuracy-0.3.0}/docs/Makefile +0 -0
  94. {traccuracy-0.2.0 → traccuracy-0.3.0}/docs/make.bat +0 -0
  95. {traccuracy-0.2.0 → traccuracy-0.3.0}/docs/source/examples/ctc.nblink +0 -0
  96. {traccuracy-0.2.0 → traccuracy-0.3.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask000.tif +0 -0
  97. {traccuracy-0.2.0 → traccuracy-0.3.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask001.tif +0 -0
  98. {traccuracy-0.2.0 → traccuracy-0.3.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask002.tif +0 -0
  99. {traccuracy-0.2.0 → traccuracy-0.3.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask003.tif +0 -0
  100. {traccuracy-0.2.0 → traccuracy-0.3.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask004.tif +0 -0
  101. {traccuracy-0.2.0 → traccuracy-0.3.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask005.tif +0 -0
  102. {traccuracy-0.2.0 → traccuracy-0.3.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask006.tif +0 -0
  103. {traccuracy-0.2.0 → traccuracy-0.3.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask007.tif +0 -0
  104. {traccuracy-0.2.0 → traccuracy-0.3.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask008.tif +0 -0
  105. {traccuracy-0.2.0 → traccuracy-0.3.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask009.tif +0 -0
  106. {traccuracy-0.2.0 → traccuracy-0.3.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask010.tif +0 -0
  107. {traccuracy-0.2.0 → traccuracy-0.3.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask011.tif +0 -0
  108. {traccuracy-0.2.0 → traccuracy-0.3.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask012.tif +0 -0
  109. {traccuracy-0.2.0 → traccuracy-0.3.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask013.tif +0 -0
  110. {traccuracy-0.2.0 → traccuracy-0.3.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask014.tif +0 -0
  111. {traccuracy-0.2.0 → traccuracy-0.3.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask015.tif +0 -0
  112. {traccuracy-0.2.0 → traccuracy-0.3.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask016.tif +0 -0
  113. {traccuracy-0.2.0 → traccuracy-0.3.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask017.tif +0 -0
  114. {traccuracy-0.2.0 → traccuracy-0.3.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask018.tif +0 -0
  115. {traccuracy-0.2.0 → traccuracy-0.3.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask019.tif +0 -0
  116. {traccuracy-0.2.0 → traccuracy-0.3.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask020.tif +0 -0
  117. {traccuracy-0.2.0 → traccuracy-0.3.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask021.tif +0 -0
  118. {traccuracy-0.2.0 → traccuracy-0.3.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask022.tif +0 -0
  119. {traccuracy-0.2.0 → traccuracy-0.3.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask023.tif +0 -0
  120. {traccuracy-0.2.0 → traccuracy-0.3.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask024.tif +0 -0
  121. {traccuracy-0.2.0 → traccuracy-0.3.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask025.tif +0 -0
  122. {traccuracy-0.2.0 → traccuracy-0.3.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask026.tif +0 -0
  123. {traccuracy-0.2.0 → traccuracy-0.3.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask027.tif +0 -0
  124. {traccuracy-0.2.0 → traccuracy-0.3.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask028.tif +0 -0
  125. {traccuracy-0.2.0 → traccuracy-0.3.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask029.tif +0 -0
  126. {traccuracy-0.2.0 → traccuracy-0.3.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask030.tif +0 -0
  127. {traccuracy-0.2.0 → traccuracy-0.3.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask031.tif +0 -0
  128. {traccuracy-0.2.0 → traccuracy-0.3.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask032.tif +0 -0
  129. {traccuracy-0.2.0 → traccuracy-0.3.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask033.tif +0 -0
  130. {traccuracy-0.2.0 → traccuracy-0.3.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask034.tif +0 -0
  131. {traccuracy-0.2.0 → traccuracy-0.3.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask035.tif +0 -0
  132. {traccuracy-0.2.0 → traccuracy-0.3.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask036.tif +0 -0
  133. {traccuracy-0.2.0 → traccuracy-0.3.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask037.tif +0 -0
  134. {traccuracy-0.2.0 → traccuracy-0.3.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask038.tif +0 -0
  135. {traccuracy-0.2.0 → traccuracy-0.3.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask039.tif +0 -0
  136. {traccuracy-0.2.0 → traccuracy-0.3.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask040.tif +0 -0
  137. {traccuracy-0.2.0 → traccuracy-0.3.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask041.tif +0 -0
  138. {traccuracy-0.2.0 → traccuracy-0.3.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask042.tif +0 -0
  139. {traccuracy-0.2.0 → traccuracy-0.3.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask043.tif +0 -0
  140. {traccuracy-0.2.0 → traccuracy-0.3.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask044.tif +0 -0
  141. {traccuracy-0.2.0 → traccuracy-0.3.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask045.tif +0 -0
  142. {traccuracy-0.2.0 → traccuracy-0.3.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask046.tif +0 -0
  143. {traccuracy-0.2.0 → traccuracy-0.3.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask047.tif +0 -0
  144. {traccuracy-0.2.0 → traccuracy-0.3.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask048.tif +0 -0
  145. {traccuracy-0.2.0 → traccuracy-0.3.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask049.tif +0 -0
  146. {traccuracy-0.2.0 → traccuracy-0.3.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask050.tif +0 -0
  147. {traccuracy-0.2.0 → traccuracy-0.3.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask051.tif +0 -0
  148. {traccuracy-0.2.0 → traccuracy-0.3.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask052.tif +0 -0
  149. {traccuracy-0.2.0 → traccuracy-0.3.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask053.tif +0 -0
  150. {traccuracy-0.2.0 → traccuracy-0.3.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask054.tif +0 -0
  151. {traccuracy-0.2.0 → traccuracy-0.3.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask055.tif +0 -0
  152. {traccuracy-0.2.0 → traccuracy-0.3.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask056.tif +0 -0
  153. {traccuracy-0.2.0 → traccuracy-0.3.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask057.tif +0 -0
  154. {traccuracy-0.2.0 → traccuracy-0.3.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask058.tif +0 -0
  155. {traccuracy-0.2.0 → traccuracy-0.3.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask059.tif +0 -0
  156. {traccuracy-0.2.0 → traccuracy-0.3.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask060.tif +0 -0
  157. {traccuracy-0.2.0 → traccuracy-0.3.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask061.tif +0 -0
  158. {traccuracy-0.2.0 → traccuracy-0.3.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask062.tif +0 -0
  159. {traccuracy-0.2.0 → traccuracy-0.3.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask063.tif +0 -0
  160. {traccuracy-0.2.0 → traccuracy-0.3.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask064.tif +0 -0
  161. {traccuracy-0.2.0 → traccuracy-0.3.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask065.tif +0 -0
  162. {traccuracy-0.2.0 → traccuracy-0.3.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask066.tif +0 -0
  163. {traccuracy-0.2.0 → traccuracy-0.3.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask067.tif +0 -0
  164. {traccuracy-0.2.0 → traccuracy-0.3.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask068.tif +0 -0
  165. {traccuracy-0.2.0 → traccuracy-0.3.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask069.tif +0 -0
  166. {traccuracy-0.2.0 → traccuracy-0.3.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask070.tif +0 -0
  167. {traccuracy-0.2.0 → traccuracy-0.3.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask071.tif +0 -0
  168. {traccuracy-0.2.0 → traccuracy-0.3.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask072.tif +0 -0
  169. {traccuracy-0.2.0 → traccuracy-0.3.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask073.tif +0 -0
  170. {traccuracy-0.2.0 → traccuracy-0.3.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask074.tif +0 -0
  171. {traccuracy-0.2.0 → traccuracy-0.3.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask075.tif +0 -0
  172. {traccuracy-0.2.0 → traccuracy-0.3.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask076.tif +0 -0
  173. {traccuracy-0.2.0 → traccuracy-0.3.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask077.tif +0 -0
  174. {traccuracy-0.2.0 → traccuracy-0.3.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask078.tif +0 -0
  175. {traccuracy-0.2.0 → traccuracy-0.3.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask079.tif +0 -0
  176. {traccuracy-0.2.0 → traccuracy-0.3.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask080.tif +0 -0
  177. {traccuracy-0.2.0 → traccuracy-0.3.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask081.tif +0 -0
  178. {traccuracy-0.2.0 → traccuracy-0.3.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask082.tif +0 -0
  179. {traccuracy-0.2.0 → traccuracy-0.3.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask083.tif +0 -0
  180. {traccuracy-0.2.0 → traccuracy-0.3.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask084.tif +0 -0
  181. {traccuracy-0.2.0 → traccuracy-0.3.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask085.tif +0 -0
  182. {traccuracy-0.2.0 → traccuracy-0.3.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask086.tif +0 -0
  183. {traccuracy-0.2.0 → traccuracy-0.3.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask087.tif +0 -0
  184. {traccuracy-0.2.0 → traccuracy-0.3.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask088.tif +0 -0
  185. {traccuracy-0.2.0 → traccuracy-0.3.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask089.tif +0 -0
  186. {traccuracy-0.2.0 → traccuracy-0.3.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask090.tif +0 -0
  187. {traccuracy-0.2.0 → traccuracy-0.3.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/mask091.tif +0 -0
  188. {traccuracy-0.2.0 → traccuracy-0.3.0}/examples/sample-data/Fluo-N2DL-HeLa/01_RES/res_track.txt +0 -0
  189. {traccuracy-0.2.0 → traccuracy-0.3.0}/scripts/download_test_data.py +0 -0
  190. {traccuracy-0.2.0 → traccuracy-0.3.0}/setup.cfg +0 -0
  191. {traccuracy-0.2.0 → traccuracy-0.3.0}/src/traccuracy/__init__.py +0 -0
  192. {traccuracy-0.2.0 → traccuracy-0.3.0}/src/traccuracy/metrics/__init__.py +0 -0
  193. {traccuracy-0.2.0 → traccuracy-0.3.0}/src/traccuracy.egg-info/dependency_links.txt +0 -0
  194. {traccuracy-0.2.0 → traccuracy-0.3.0}/src/traccuracy.egg-info/entry_points.txt +0 -0
  195. {traccuracy-0.2.0 → traccuracy-0.3.0}/src/traccuracy.egg-info/top_level.txt +0 -0
  196. {traccuracy-0.2.0 → traccuracy-0.3.0}/tests/__init__.py +0 -0
  197. {traccuracy-0.2.0 → traccuracy-0.3.0}/tests/loaders/__init__.py +0 -0
  198. {traccuracy-0.2.0 → traccuracy-0.3.0}/tests/matchers/__init__.py +0 -0
  199. {traccuracy-0.2.0 → traccuracy-0.3.0}/tests/metrics/__init__.py +0 -0
  200. {traccuracy-0.2.0 → traccuracy-0.3.0}/tests/metrics/test_basic.py +0 -0
  201. {traccuracy-0.2.0 → traccuracy-0.3.0}/tests/test_run_metrics.py +0 -0
  202. {traccuracy-0.2.0 → traccuracy-0.3.0}/tests/track_errors/__init__.py +0 -0
@@ -0,0 +1,2 @@
1
+ # SCM syntax highlighting
2
+ pixi.lock linguist-language=YAML linguist-generated=true
@@ -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 that prove that my feature works in various situations.
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.
@@ -42,7 +42,7 @@ jobs:
42
42
  - name: Set up Python
43
43
  uses: actions/setup-python@v5
44
44
  with:
45
- python-version: 3.11
45
+ python-version: 3.13
46
46
  cache-dependency-path: "pyproject.toml"
47
47
  cache: "pip"
48
48
 
@@ -26,7 +26,7 @@ jobs:
26
26
  strategy:
27
27
  fail-fast: false
28
28
  matrix:
29
- python-version: ["3.9", "3.10", "3.11"]
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:
@@ -79,10 +79,10 @@ jobs:
79
79
  path: downloads
80
80
  key: ${{ hashFiles('scripts/download_test_data.py') }}
81
81
 
82
- - name: Set up Python 3.11
82
+ - name: Set up Python 3.13
83
83
  uses: actions/setup-python@v5
84
84
  with:
85
- python-version: "3.11"
85
+ python-version: "3.13"
86
86
  cache-dependency-path: "pyproject.toml"
87
87
  cache: "pip"
88
88
 
@@ -129,7 +129,7 @@ jobs:
129
129
  - name: Set up Python
130
130
  uses: actions/setup-python@v5
131
131
  with:
132
- python-version: 3.11
132
+ python-version: 3.13
133
133
  cache-dependency-path: "pyproject.toml"
134
134
  cache: "pip"
135
135
 
@@ -173,6 +173,54 @@ jobs:
173
173
  with:
174
174
  body-path: report.md
175
175
 
176
+ test-case-coverage:
177
+ name: Test case coverage
178
+ runs-on: ubuntu-latest
179
+ if: github.event_name == 'pull_request'
180
+
181
+ steps:
182
+ - uses: actions/checkout@v4
183
+
184
+ - name: Set up Python 3.13
185
+ uses: actions/setup-python@v5
186
+ with:
187
+ python-version: "3.13"
188
+ cache-dependency-path: "pyproject.toml"
189
+ cache: "pip"
190
+
191
+ - name: Install dependencies
192
+ run: |
193
+ python -m pip install -U pip
194
+ python -m pip install -e .[covreport]
195
+
196
+ - name: Store target commit hash
197
+ id: hash
198
+ run: echo "commit=${{ github.event.pull_request.head.sha }}" >> "$GITHUB_OUTPUT"
199
+
200
+ - name: Run coverage report
201
+ run: |
202
+ python scripts/test_case_report.py ${{ github.event.pull_request.head.sha }}
203
+
204
+ - name: Add, stash, switch branch
205
+ run: |
206
+ git add ${{ github.event.pull_request.head.sha }}.png
207
+ git stash
208
+ git fetch
209
+ git checkout test-case-coverage-report
210
+ git stash pop
211
+
212
+ - name: Commit to branch
213
+ uses: EndBug/add-and-commit@v9
214
+ with:
215
+ add: "*.png"
216
+
217
+ - name: Comment with image link
218
+ uses: peter-evans/commit-comment@v3
219
+ with:
220
+ body: |
221
+ ![coverage plot](https://github.com/Janelia-Trackathon-2023/traccuracy/blob/test-case-coverage-report/${{ steps.hash.outputs.commit }}.png?raw=True)
222
+
223
+
176
224
  deploy:
177
225
  name: Deploy
178
226
  needs: test
@@ -108,3 +108,8 @@ ENV/
108
108
 
109
109
  # IDE settings
110
110
  .vscode/
111
+
112
+ # pixi environments
113
+ .pixi
114
+ pixi.lock
115
+ *.egg-info
@@ -5,31 +5,30 @@ ci:
5
5
 
6
6
  repos:
7
7
  - repo: https://github.com/crate-ci/typos
8
- rev: dictgen-v0.3.1
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.8.6
13
+ rev: v0.11.4
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.23
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.14.1
25
+ rev: v1.15.0
30
26
  hooks:
31
27
  - id: mypy
32
28
  files: "^src/"
33
- # # you have to add the things you want to type check against here
34
- # additional_dependencies:
35
- # - numpy
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
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.2
1
+ Metadata-Version: 2.4
2
2
  Name: traccuracy
3
- Version: 0.2.0
3
+ Version: 0.3.0
4
4
  Summary: Utilities for computing common accuracy metrics on cell tracking challenge solutions with ground truth
5
5
  Author-email: Draga Doncila Pop <draga.doncilapop1@monash.edu>, Caroline Malin-Mayor <cmalinmayor@gmail.com>, Morgan Schwartz <msschwartz21@gmail.com>
6
6
  License: BSD 3-Clause License
@@ -11,11 +11,12 @@ Classifier: Development Status :: 3 - Alpha
11
11
  Classifier: License :: OSI Approved :: BSD License
12
12
  Classifier: Natural Language :: English
13
13
  Classifier: Programming Language :: Python :: 3
14
- Classifier: Programming Language :: Python :: 3.9
15
14
  Classifier: Programming Language :: Python :: 3.10
16
15
  Classifier: Programming Language :: Python :: 3.11
16
+ Classifier: Programming Language :: Python :: 3.12
17
+ Classifier: Programming Language :: Python :: 3.13
17
18
  Classifier: Typing :: Typed
18
- Requires-Python: >=3.9
19
+ Requires-Python: >=3.10
19
20
  Description-Content-Type: text/markdown
20
21
  License-File: LICENSE
21
22
  Requires-Dist: numpy
@@ -26,7 +27,7 @@ Requires-Dist: imagecodecs
26
27
  Requires-Dist: scikit-image
27
28
  Requires-Dist: tqdm
28
29
  Requires-Dist: typer
29
- Requires-Dist: numba; python_version != "3.11"
30
+ Requires-Dist: numba
30
31
  Requires-Dist: pyarrow
31
32
  Provides-Extra: test
32
33
  Requires-Dist: pytest>=6.0; extra == "test"
@@ -35,28 +36,34 @@ Requires-Dist: pytest-benchmark; extra == "test"
35
36
  Requires-Dist: pytest-timeout; extra == "test"
36
37
  Requires-Dist: tabulate; extra == "test"
37
38
  Provides-Extra: dev
38
- Requires-Dist: black; extra == "dev"
39
39
  Requires-Dist: ipython; extra == "dev"
40
- Requires-Dist: mypy; extra == "dev"
41
40
  Requires-Dist: pdbpp; extra == "dev"
42
41
  Requires-Dist: pre-commit; extra == "dev"
43
- Requires-Dist: pytest-cov; extra == "dev"
44
- Requires-Dist: pytest; extra == "dev"
45
- Requires-Dist: rich; extra == "dev"
46
42
  Requires-Dist: ruff; extra == "dev"
43
+ Requires-Dist: traccuracy[test]; extra == "dev"
44
+ Requires-Dist: traccuracy[docs]; extra == "dev"
45
+ Requires-Dist: traccuracy[typing]; extra == "dev"
47
46
  Provides-Extra: docs
48
- Requires-Dist: ipython==8.17.1; extra == "docs"
49
- Requires-Dist: myst-parser==2.0.0; extra == "docs"
50
- Requires-Dist: nbsphinx-link==1.3.0; extra == "docs"
51
- Requires-Dist: nbsphinx==0.9.3; extra == "docs"
47
+ Requires-Dist: myst-nb<2,>=1.2.0; extra == "docs"
52
48
  Requires-Dist: sphinx-autoapi==3.0.0; extra == "docs"
53
- Requires-Dist: sphinx-click==5.0.1; extra == "docs"
54
- Requires-Dist: sphinx-rtd-theme==1.3.0; extra == "docs"
55
- Requires-Dist: Sphinx==7.2.6; extra == "docs"
56
- Requires-Dist: jupytext; extra == "docs"
57
- Requires-Dist: ipykernel; extra == "docs"
58
- Requires-Dist: jupyter-sphinx; extra == "docs"
49
+ Requires-Dist: sphinx-click<7,>=6.0.0; extra == "docs"
50
+ Requires-Dist: sphinx-rtd-theme<4,>=3.0.1; extra == "docs"
51
+ Requires-Dist: sphinx<8,>=7.4.7; extra == "docs"
59
52
  Requires-Dist: matplotlib; extra == "docs"
53
+ Requires-Dist: jupytext<2,>=1.16.7; extra == "docs"
54
+ Requires-Dist: nbsphinx-link==1.3.0; extra == "docs"
55
+ Requires-Dist: nbsphinx==0.9.3; extra == "docs"
56
+ Requires-Dist: docutils==0.20.*; extra == "docs"
57
+ Provides-Extra: covreport
58
+ Requires-Dist: traccuracy[test]; extra == "covreport"
59
+ Requires-Dist: seaborn; extra == "covreport"
60
+ Provides-Extra: typing
61
+ Requires-Dist: mypy; extra == "typing"
62
+ Requires-Dist: types-networkx; extra == "typing"
63
+ Requires-Dist: scipy-stubs; extra == "typing"
64
+ Requires-Dist: pandas-stubs; extra == "typing"
65
+ Requires-Dist: types-tqdm; extra == "typing"
66
+ Dynamic: license-file
60
67
 
61
68
  # traccuracy: Evaluate Cell Tracking Solutions
62
69
 
@@ -88,7 +95,7 @@ The `traccuracy` library has three main components: loaders, matchers, and metri
88
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.
89
96
  A TrackingGraph is a spatiotemporal graph.
90
97
  Nodes represent a single cell in a given time point, and are annotated with a time and a location.
91
- Edges point from a node representing a cell in time point `t` to the same cell or its daughter in `t+1`.
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 gap-closing).
92
99
  To load TrackingGraphs from a custom format, you will likely need to implement a loader: see
93
100
  documentation [here](https://traccuracy.readthedocs.io/en/latest/autoapi/traccuracy/loaders/index.html#module-traccuracy.loaders) for more information.
94
101
 
@@ -116,3 +123,6 @@ pipelines, [documented here](https://traccuracy.readthedocs.io/en/latest/cli.htm
116
123
 
117
124
  **Track**
118
125
  : A single cell and all of its progeny. In graph terms, a connected component including divisions.
126
+
127
+ **Gap-Closing**
128
+ : Also known as *frame-skipping*, these are edges that connect non-consecutive frames to signify a cell being occluded or missing for some frames, before the track continues.
@@ -28,7 +28,7 @@ The `traccuracy` library has three main components: loaders, matchers, and metri
28
28
  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.
29
29
  A TrackingGraph is a spatiotemporal graph.
30
30
  Nodes represent a single cell in a given time point, and are annotated with a time and a location.
31
- Edges point from a node representing a cell in time point `t` to the same cell or its daughter in `t+1`.
31
+ 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 gap-closing).
32
32
  To load TrackingGraphs from a custom format, you will likely need to implement a loader: see
33
33
  documentation [here](https://traccuracy.readthedocs.io/en/latest/autoapi/traccuracy/loaders/index.html#module-traccuracy.loaders) for more information.
34
34
 
@@ -55,4 +55,7 @@ pipelines, [documented here](https://traccuracy.readthedocs.io/en/latest/cli.htm
55
55
  : A single non-dividing cell tracked over time. In graph terms, this is the connected component of a track between divisions (daughter to next parent). Tracklets can also start or end with a non-dividing cell at the beginning and end of the captured time or if the track leaves the field of view.
56
56
 
57
57
  **Track**
58
- : A single cell and all of its progeny. In graph terms, a connected component including divisions.
58
+ : A single cell and all of its progeny. In graph terms, a connected component including divisions.
59
+
60
+ **Gap-Closing**
61
+ : Also known as *frame-skipping*, these are edges that connect non-consecutive frames to signify a cell being occluded or missing for some frames, before the track continues.
@@ -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
8
  git clone https://github.com/Janelia-Trackathon-2023/traccuracy.git
7
- cd traccuracy
8
- pip install -e ".[dev]"
9
+ pixi install
9
10
  ```
10
11
 
11
12
  ### Testing
12
- Install testing requirements
13
+ To run basic tests
14
+ ```
15
+ pixi run test
13
16
  ```
14
- pip install -e ".[test]"
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
- Run tests
20
+ pixi run benchmark
17
21
  ```
18
- python -m pytest tests
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
- pip install -e ".[dev]"
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
- # Install docs requirements
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
+ }
@@ -1,6 +1,7 @@
1
- CLI
2
- ===
1
+ # CLI
3
2
 
3
+ ```{eval-rst}
4
4
  .. click:: traccuracy.cli:typer_click_object
5
5
  :prog: traccuracy
6
6
  :nested: full
7
+ ```
@@ -20,7 +20,7 @@ sys.path.insert(0, os.path.abspath("../../src"))
20
20
  # -- Project information -----------------------------------------------------
21
21
 
22
22
  project = "Traccuracy"
23
- copyright = "2023" # noqa
23
+ copyright = "2025" # noqa
24
24
  author = "Morgan Schwartz, Draga Doncila Pop, and Caroline Malin-Mayor"
25
25
 
26
26
 
@@ -48,12 +48,11 @@ extensions = [
48
48
  "sphinx.ext.napoleon",
49
49
  "sphinx.ext.viewcode",
50
50
  "IPython.sphinxext.ipython_console_highlighting", # code highlighting in notebooks
51
- "myst_parser", # include md files in rst files
52
51
  "autoapi.extension", # autobuild api docs
53
52
  "nbsphinx", # add notebooks to docs
54
53
  "nbsphinx_link", # add notebooks to docs
55
54
  "sphinx_click", # auto document cli
56
- "jupyter_sphinx", # executable code blocks in rst
55
+ "myst_nb", # Execute and render myst md
57
56
  ]
58
57
 
59
58
  napoleon_google_docstring = True
@@ -63,13 +62,17 @@ templates_path = ["../_templates"]
63
62
 
64
63
  default_role = "py:obj"
65
64
 
66
- source_suffix = [".rst", ".md"]
65
+ source_suffix = [".md", ".rst"]
67
66
 
68
67
  # List of patterns, relative to source directory, that match files and
69
68
  # directories to ignore when looking for source files.
70
69
  # This pattern also affects html_static_path and html_extra_path.
71
70
  exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"]
72
71
 
72
+ # Suppress error about unnpickable config value 'nbsphinx_custom_formats'
73
+ # https://github.com/sphinx-doc/sphinx/issues/12300
74
+ suppress_warnings = ["config.cache"]
75
+
73
76
  # -- AutoAPI configuration ---------------------------------------------------
74
77
  autoapi_dirs = ["../../src/traccuracy"]
75
78
  autoapi_type = "python"
@@ -82,19 +85,23 @@ autoapi_options = [
82
85
  ]
83
86
  autoapi_ignore = ["*/cli.py"]
84
87
 
85
- # -- Nbsphinx extension ------------------------------------------------------
86
-
87
- nbsphinx_execute = "auto"
88
- exclude_patterns = ["_build", "**.ipynb_checkpoints"]
88
+ # -- Myst NB -----------------------------------------------------------------
89
+ nb_execution_raise_on_error = True
89
90
 
90
- nbsphinx_custom_formats = {
91
- ".pct.py": ["jupytext.reads", {"fmt": "py:percent"}],
92
- }
91
+ myst_enable_extensions = [
92
+ "dollarmath",
93
+ "colon_fence",
94
+ ]
93
95
 
94
96
  # Import Matplotlib to avoid this message in notebooks:
95
97
  # "Matplotlib is building the font cache; this may take a moment."
96
98
  import matplotlib.pyplot # noqa
97
99
 
100
+ # -- Nbsphinx extension ------------------------------------------------------
101
+
102
+ nbsphinx_execute = "auto"
103
+ exclude_patterns = ["_build", "**.ipynb_checkpoints"]
104
+
98
105
  # -- Options for HTML output -------------------------------------------------
99
106
 
100
107
  # The theme to use for HTML and HTML Help pages. See the documentation for
@@ -105,8 +112,11 @@ html_theme = "sphinx_rtd_theme"
105
112
  # Add any paths that contain custom static files (such as style sheets) here,
106
113
  # relative to this directory. They are copied after the builtin static files,
107
114
  # so a file named "default.css" will overwrite the builtin "default.css".
108
- # html_static_path = ["_static"]
115
+ html_static_path = ["_static"]
109
116
 
117
+ html_css_files = [
118
+ "css/tablefix.css",
119
+ ]
110
120
  # -- Extension configuration -------------------------------------------------
111
121
  autodoc_mock_imports = [
112
122
  "scipy",
@@ -0,0 +1,50 @@
1
+ ```{include} ../../README.md
2
+ ```
3
+
4
+ ```{toctree}
5
+ :maxdepth: 2
6
+ :hidden: true
7
+ :caption: Matchers
8
+
9
+ matchers/matchers
10
+ ```
11
+
12
+ ```{toctree}
13
+ :caption: Track Errors
14
+ :hidden: true
15
+ :maxdepth: 2
16
+
17
+ track_errors/basic
18
+ track_errors/divisions
19
+ track_errors/ctc
20
+ track_errors/gap_closing
21
+ ```
22
+
23
+ ```{toctree}
24
+ :caption: Metrics
25
+ :hidden: true
26
+ :maxdepth: 2
27
+
28
+ metrics/basic
29
+ metrics/ctc
30
+ metrics/track_overlap
31
+ metrics/divisions
32
+ ```
33
+
34
+ ```{toctree}
35
+ :caption: 'Examples'
36
+ :hidden: true
37
+ :maxdepth: 2
38
+
39
+ examples/ctc
40
+ ```
41
+
42
+ ```{toctree}
43
+ :caption: Developer
44
+ :hidden: true
45
+ :maxdepth: 2
46
+
47
+ autoapi/index
48
+ cli
49
+ test_cases/index
50
+ ```
@@ -0,0 +1,24 @@
1
+ # Matchers
2
+
3
+ The first step in comparing a ground truth and predicted graph is computing a matching
4
+ between the two graphs. Currently, traccuracy represents a matching between graphs
5
+ as a matching between the nodes of the graphs - edges are considered matched if the
6
+ endpoints of the edge are matched. Traccuracy supports three types of matchings, depending
7
+ on how many nodes in one graph can be matched to one node in the other graph:
8
+
9
+ * `one-to-one`: every node can be matched to at most one node in the other graph
10
+ * `many-to-one`: many ground truth nodes may be matched to one predicted node
11
+ * `one-to-many`: one ground truth node may be matched to many predicted nodes
12
+ * `many-to-many`: anything goes! (no implemented metrics support many-to-many at this time)
13
+
14
+ Many metrics only operate on one-to-one matchings, or support at most one of the "many"
15
+ mappings. Matchers can operate on the segmentation or directly on the point locations.
16
+ Below is a table summarizing the implemented matchers, what types of matchings
17
+ they can produce, and a brief description of behavior and any hyperparameters.
18
+
19
+ | Matcher | Matching Type(s) | Description |
20
+ ----------|------------------|-------------
21
+ | Point | `one-to-one` | Given a maximum distance threshold, the matcher will perform hungarian matching on the points in each frame of the ground truth and predicted graphs, minimizing the overall distance while never matching any points with distance greater than the threshold. |
22
+ | Point to Seg| `one-to-one`, `many-to-one`, `one-to-many` | Given one dataset with segmentation data, this matcher will match nodes from the points-only graph to nodes from the segmentation graph if and only if the point location is within the the segmentation label. |
23
+ | IOU | `one-to-one`, `many-to-one`, `one-to-many` | Given a minimum overlap threshold, will match the segmentations in each frame of the ground truth and predicted tracks with intersection-over-union greater than or equal to the given threshold. If the one-to-one flag is true, will produce a one-to-one matching by running linear assignment/hungarian matching on the thresholded iou array. |
24
+ | CTC | `one-to-one`, `many-to-one` | A predicted node is matched to a reference node if the computed segmentation covers a majority of the reference segmentation. See https://journals.plos.org/plosone/article?id=10.1371/journal.pone.0144959 for complete details. |
@@ -0,0 +1,17 @@
1
+ # Basic Performance Metrics
2
+
3
+ Basic performance metrics are computed based on the error classifications described in {doc}`../track_errors/basic`.
4
+
5
+ For both nodes and edges, the following counts are returned:
6
+
7
+ - Total ground truth
8
+ - Total predicted
9
+ - True positives
10
+ - False positives
11
+ - False negatives
12
+
13
+ Using these counts, the following summary stastics are computed for both nodes and edges:
14
+
15
+ - Recall
16
+ - Precision
17
+ - F1 Score