-
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
Add back channel normalization before preprocessing #613
Conversation
Looks like some test is failing after this change. @alex-l-kong can you take a look? Don't really know how to read these travis logs |
@cliu72 thanks for looking into this, not sure why the channel normalization got deleted after merging master into the parallelization branch (better check my merge tool). I'll take a look at the tests. |
@cliu72 the test needed the new argument for channel normalization values. Also, I updated |
How did this slip past the tests? I thought we had a test that specifically checked that images were normalized correctly |
@ngreenwald the test for We could start using a pre-defined dataset to test, similar to how |
This test I wrote checks to make sure the data has been divided by the right channel-specific normalization factor: How is it passing if this part of the code got dropped? |
@ngreenwald ok I see the problem now: We'll need to find a way to get this mocked up correctly. My guess is it's because you're trying to mock a function that gets called internally by |
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.
Okay sounds good. When you get the mocking figured out, can you confirm that the test fails with the current version in master and is fixed by candace's addition here
@ngreenwald verified that the new mocked function is being entered and passed. |
What is the purpose of this PR?
Add back channel normalization before pixel matrix generation, which seems to have been lost when parallelization was added. As in this commit: https://github.com/angelolab/ark-analysis/tree/370415cea71ec675c4be9f2c57a8644702390350 before the parallelization functionality was added, pixel values should be channel normalized before being fed into
create_fov_pixel_data
.How did you implement your changes
Added back the code to channel normalize in
preprocess_fov
before callingcreate_fov_pixel_data
.Remaining issues
Don't think there are remaining issues.