-
Notifications
You must be signed in to change notification settings - Fork 26
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
Binning nuclear labels #222
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good; mostly just a clarification question.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks mighty fine.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cool cool cool
* first pass * fix formatting
* first pass * fix formatting
If you haven't already, please read through our contributing guidelines before opening your PR
What is the purpose of this PR?
Currently, when we match nuclei to cells, we don't require that the nucleus be smaller than the cell. If the nuclear segmentation has errors, this can result in non-biological readouts.
This PR adds the option to separate out nuclei that are larger than a cell, and relabel the portion that falls within a cell, to remove this issue
How did you implement your changes
Added a function that takes a nuclear mask and a cell mask, and relabels any nuclei that have pixels outside of the boundaries of the corresponding cell they map to.
Remaining issues
Still need to integrate this into the overall segmentation pipeline