angelolab / ark-analysis

Integrated pipeline for multiplexed image analysis
https://ark-analysis.readthedocs.io/en/latest/
MIT License
72 stars 26 forks source link

Only load whole cell masks if `nuclear_counts=False` in `generate_cell_table` #1107

Closed alex-l-kong closed 7 months ago

alex-l-kong commented 8 months ago

What is the purpose of this PR?

Closes #1097. Updates generate_cell_table to be compatible with updated ezSeg pipeline when nuclear masks need to be discarded.

How did you implement your changes

By default, the updated generate_cell_table loads in all the masks, including nuclear, and adds them to the cell table. For pixel clustering, only the whole cell data is needed, so if nuclear_counts=False, this mask type should not appear in the table.

Remaining issues

Integration testing with Pixie/Nimbus needed.