-
Notifications
You must be signed in to change notification settings - Fork 1
feat(examples): add segmentation & feature extraction examples #33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
36 commits
Select commit
Hold shift + click to select a range
62c2752
feat(examples): add 3D monolayer segmentation notebook
alxndrkalinin b2db067
fix(segmentation notebook): align pipeline with CellProfiler implemen…
alxndrkalinin e1d7250
fix(segmentation notebook): use EDT-based cell watershed matching Cel…
alxndrkalinin 5d08d33
docs(segmentation notebook): add old vs new AP comparison plots and s…
alxndrkalinin a15a285
fix(segmentation notebook): add watershed seed dilation to reduce ove…
alxndrkalinin be5b104
fix(segmentation notebook): use mode="constant" for median filter mat…
alxndrkalinin 344c7f0
fix(segmentation notebook): fix label colormap to show distinct color…
alxndrkalinin 673d27f
fix(segmentation notebook): use CP-correct hole fill size for cell me…
alxndrkalinin a00ecba
fix(segmentation notebook): fix Z-slice index for downscaled nuclei v…
alxndrkalinin 578d61b
docs(segmentation notebook): clean up plots and remove old pipeline r…
alxndrkalinin e0e60aa
refactor(segmentation notebook): clean up imports
alxndrkalinin b4302ea
fix(segmentation notebook): fill small holes per nucleus after cleanup
alxndrkalinin 3994eae
docs(segmentation notebook): merge AP curves into comparison figure
alxndrkalinin b80520c
refactor(segmentation notebook): replace scipy imports with cubic wra…
alxndrkalinin 7d7d1e6
refactor(segmentation notebook): remove unnecessary asnumpy/to_device…
alxndrkalinin 4f8abd5
docs(segmentation notebook): update description to emphasize CPU/GPU …
alxndrkalinin 200bf0d
fix(segmentation notebook): correct CellProfiler tutorial URL
alxndrkalinin daf1fc7
fix(segmentation notebook): fix GPU compatibility for watershed and f…
alxndrkalinin 7e8a2de
docs(segmentation notebook): add CPU vs GPU runtime to summary
alxndrkalinin 2ba165d
fix(docs): correct dataset attribution, remove incorrect BBBC034 refe…
alxndrkalinin 063de35
refactor(segmentation notebook): consolidate imports and add closing …
alxndrkalinin e6a81ea
fix(segmentation notebook): correct CPU vs GPU runtime numbers
alxndrkalinin 61b2db3
fix(docs): clarify why cell pipeline runs on CPU
alxndrkalinin 0bb30e4
fix(segmentation notebook): run planewise closing on GPU instead of CPU
alxndrkalinin 00fb42e
refactor(segment_utils): add dilate_seeds parameter to segment_watershed
alxndrkalinin cd1a905
refactor(segment_utils): add filter_mode to downscale_and_filter, use…
alxndrkalinin cef8097
feat(segment_utils): add downscale_xy_only param to downscale_and_filter
alxndrkalinin 870e79b
refactor(segment_utils): add mask param to segment_watershed for cell…
alxndrkalinin c8d0ede
refactor(segmentation notebook): use cleanup_segmentation max_hole_si…
alxndrkalinin cd94b08
fix(segmentation notebook): revert cell cleanup to manual relabeling
alxndrkalinin b0c2d03
feat: add feature extraction notebook, examples extra, notebook CI wo…
alxndrkalinin 575f9e7
refactor: remove pandas dependency
alxndrkalinin ad5d2bb
fix: address code review and Copilot feedback on PR #33
alxndrkalinin 1db8308
fix(segment_utils): remove uint8 truncation in cleanup_segmentation
alxndrkalinin 8acb275
refactor(segmentation notebook): remove redundant uint16 cast after c…
alxndrkalinin 2de4204
docs: add feature extraction notebook to README examples table
alxndrkalinin File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,43 @@ | ||
| name: Convert notebooks to scripts | ||
|
|
||
| on: | ||
| push: | ||
| branches: [main] | ||
| paths: | ||
| - "examples/notebooks/*.ipynb" | ||
|
|
||
| jobs: | ||
| convert: | ||
| name: nbconvert to scripts | ||
| runs-on: ubuntu-latest | ||
| permissions: | ||
| contents: write | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
|
|
||
| - name: install uv | ||
| uses: astral-sh/setup-uv@v5 | ||
|
|
||
| - name: set up python | ||
| run: uv python install 3.11 | ||
|
|
||
| - name: install dependencies | ||
| run: uv sync --extra examples | ||
|
|
||
| - name: convert notebooks to scripts | ||
| run: | | ||
| for nb in examples/notebooks/*.ipynb; do | ||
| uv run jupyter nbconvert --to script "$nb" --output-dir examples/scripts | ||
| done | ||
|
|
||
| - name: commit generated scripts | ||
| run: | | ||
| git config user.name "github-actions[bot]" | ||
| git config user.email "github-actions[bot]@users.noreply.github.com" | ||
| git add examples/scripts/ | ||
| if git diff --cached --quiet; then | ||
| echo "No changes to commit" | ||
| else | ||
| git commit -m "chore: auto-generate scripts from notebooks" | ||
| git push | ||
| fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.