Skip to content

Adjust mask suffix input to generate_cell_table #1164

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 2 commits into from
Oct 8, 2024

Conversation

camisowers
Copy link
Contributor

If you haven't already, please read through our contributing guidelines before opening your PR

What is the purpose of this PR?

Allow for users to generate a cell table for segmentation masks that have slightly different formatting for file names. For example, simply 'fov1.tiff' or 'fov1-cell_mask.tiff' instead of always requiring _suffix (i.e. 'fov1_whole_cell.tiff').

How did you implement your changes

Add in an extra argument add_underscore which is defaulted to True. Also allow None as a mask_type input. These adjustments will not be used internally in ark-analysis, but are intended to allow for more flexibility of segmentation masks generated with methods other than Mesmer and fed into SpaceCat.

Remaining issues

Need to make a new release so the changes can be used in SpaceCat.

@camisowers camisowers added the enhancement New feature or request label Oct 7, 2024
@camisowers camisowers self-assigned this Oct 7, 2024
@camisowers camisowers requested a review from srivarra October 7, 2024 19:14
Copy link
Contributor

@srivarra srivarra left a 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!

@camisowers camisowers requested a review from alex-l-kong October 7, 2024 21:46
@srivarra
Copy link
Contributor

srivarra commented Oct 8, 2024

@camisowers the example dataset is fixed up.

Copy link
Contributor

@alex-l-kong alex-l-kong left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, this will also be useful if we/DeepCell decides to ever change the suffix of the segmentation files for whole cell and nuclear.

@camisowers camisowers added this pull request to the merge queue Oct 8, 2024
Merged via the queue into main with commit 018b171 Oct 8, 2024
10 checks passed
@camisowers camisowers deleted the mask_type_generate_cell_table branch October 8, 2024 19:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants