If you haven't already, please read through our contributing guidelines before opening your PR
What is the purpose of this PR?
Allows the user to save both, cell phenotype masks and pixel phenotype masks.
How did you implement your changes
Created a dataclass to store the metacluster / coloring information. Refactored a good chunk of what's there to reduce duplicate lines. For testing, created fixtures and applied them elsewhere in plot_utils_test.py where appropriate.
Remaining issues
This pr was a good instance to test an alternative / refactored masking procedure specifically for pixie before tackling #857 again in the near future.
Here is an example image, had to convert the format from TIFF to png to upload.
If you haven't already, please read through our contributing guidelines before opening your PR
What is the purpose of this PR?
Allows the user to save both, cell phenotype masks and pixel phenotype masks.
How did you implement your changes
Created a
dataclass
to store the metacluster / coloring information. Refactored a good chunk of what's there to reduce duplicate lines. For testing, created fixtures and applied them elsewhere inplot_utils_test.py
where appropriate.Remaining issues
This pr was a good instance to test an alternative / refactored masking procedure specifically for pixie before tackling #857 again in the near future.
Here is an example image, had to convert the format from TIFF to png to upload.