Skip to content

Commit f5a61cf

Browse files
d33bspre-commit-ci-lite[bot]jenna-tomkinson
authored
Add 3D mask visualization capabilities (#200)
* add 3d segmentation masks for test dataset * add 3d mask visualization capabilities * [pre-commit.ci lite] apply automatic fixes * changes from coderabbit review * changes based on copilot review * linting * add checkbox to toggle the mask when present * add mask text label Co-Authored-By: Jenna Tomkinson <107513215+jenna-tomkinson@users.noreply.github.com> * notebook update * notebook update * [pre-commit.ci lite] apply automatic fixes * fix scrolling within 2d windows * update notebook * linting * readd static snapshots for 2d * linting * remove empty cell from notebook * changes based on jenna's review Co-Authored-By: Jenna Tomkinson <107513215+jenna-tomkinson@users.noreply.github.com> --------- Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com> Co-authored-by: Jenna Tomkinson <107513215+jenna-tomkinson@users.noreply.github.com>
1 parent c364801 commit f5a61cf

15 files changed

Lines changed: 2703 additions & 146 deletions

.pre-commit-config.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ repos:
1919
hooks:
2020
- id: pyproject-fmt
2121
- repo: https://github.com/codespell-project/codespell
22-
rev: v2.4.1
22+
rev: v2.4.2
2323
hooks:
2424
- id: codespell
2525
exclude: |
@@ -50,7 +50,7 @@ repos:
5050
hooks:
5151
- id: actionlint
5252
- repo: https://github.com/astral-sh/ruff-pre-commit
53-
rev: "v0.15.4"
53+
rev: "v0.15.5"
5454
hooks:
5555
- id: ruff-format
5656
- id: ruff-check
@@ -76,6 +76,7 @@ repos:
7676
hooks:
7777
- id: coverage-xml
7878
- id: coverage-badge
79+
stages: [manual]
7980
additional_dependencies:
8081
- setuptools<81
8182
args: ["-o", "media/coverage-badge.svg"]

docs/src/examples/cytodataframe_at_a_glance.ipynb

Lines changed: 1141 additions & 56 deletions
Large diffs are not rendered by default.

docs/src/examples/cytodataframe_at_a_glance.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -354,3 +354,15 @@
354354
)
355355

356356
cdf[["ImageNumber", "ObjectNumber", "FileName_Nuclei"]][:3]
357+
# +
358+
# %%time
359+
360+
# read 3d images with segmentation masks and show the
361+
# segmentation masks are also 3D.
362+
cdf = CytoDataFrame(
363+
data=pathlib.Path(cp_3d_path) / "output/MyExpt_RealsizeNuclei.csv",
364+
data_context_dir=str(pathlib.Path(cp_3d_path) / "input"),
365+
data_mask_context_dir=str(pathlib.Path(cp_3d_path) / "output/masks"),
366+
)
367+
368+
cdf[["ImageNumber", "ObjectNumber", "FileName_Nuclei"]][:3]

media/coverage-badge.svg

Lines changed: 1 addition & 1 deletion
Loading

0 commit comments

Comments
 (0)