Skip to content
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

Added Batching Functionality to Pixel Mask Generation and FOV Saving #643

Merged
merged 26 commits into from
Aug 10, 2022

Conversation

srivarra
Copy link
Contributor

@srivarra srivarra commented Jul 22, 2022

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

What is the purpose of this PR?

Closes #552

How did you implement your changes

Added two batching functions for the pixel and cell clustering notebooks. In addition added testbook tests.

Remaining issues

None ATM.

@srivarra srivarra added the enhancement New feature or request label Jul 22, 2022
@srivarra srivarra self-assigned this Jul 22, 2022
@srivarra srivarra changed the title Added Batching Functionality to data_utils.generate_pixel_cluster_mask Added Batching Functionality to Pixel Mask Generation Jul 22, 2022
@review-notebook-app
Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@srivarra srivarra changed the title Added Batching Functionality to Pixel Mask Generation Added Batching Functionality to Pixel Mask Generation and FOV Saving Jul 26, 2022
@srivarra srivarra requested a review from ngreenwald July 26, 2022 19:15
Copy link
Member

@ngreenwald ngreenwald left a comment

Choose a reason for hiding this comment

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

Same comment applies for the cell clustering notebook

Copy link
Member

@ngreenwald ngreenwald left a comment

Choose a reason for hiding this comment

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

Looks really nice, just some docstring updates

ark/utils/data_utils.py Outdated Show resolved Hide resolved
ark/utils/data_utils.py Outdated Show resolved Hide resolved
Copy link
Member

@ngreenwald ngreenwald left a comment

Choose a reason for hiding this comment

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

Just need to update the testbook stuff

# cell_mask_save = """
# data_utils.save_fov_images(
# pixel_fovs,
# os.path.join(base_dir, pixel_output_dir),
Copy link
Member

Choose a reason for hiding this comment

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

What's the plan with this stuff?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

To remove it, since we don't check if the user wants to save with the batching system.

# cell_mask_save = """
# data_utils.save_fov_images(
# cell_fovs,
# os.path.join(base_dir, cell_output_dir),
Copy link
Member

Choose a reason for hiding this comment

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

And here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

To remove it, since we don't check if the user wants to save with the batching system.

@ngreenwald ngreenwald merged commit 070beda into master Aug 10, 2022
@ngreenwald ngreenwald deleted the pixel_mask_batches branch August 10, 2022 23:24
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.

Change pixel mask generation to work with batches
2 participants