akoyabio / phenoptrReports

Create analysis reports from inForm data.
https://akoyabio.github.io/phenoptrReports
zlib License
15 stars 7 forks source link

H-Score report fix #63

Open christianrickert opened 1 year ago

christianrickert commented 1 year ago

Aim of this PR is to address an issue with phenoptrReport when reporting H-Score values for cells missing mean pixel intensity measurements (#N/A). Measurement can be missing when the corresponding cellular compartment (cytoplasm, membrane) is missing as a result of cell segmentation. Cells mostly affected will be those located in densely packed clusters, where the cell expansion of the cytoplasm failed due to the presence of neighboring cells in close proximity.

It has to be noted that the results of the fixed version of phenoptrReports may deviate from inForm.

As part of QC, compare the total number of cells reported in the Cell Counts tab with the corresponding total number of cells in the individual H-Score tabs. A significant reduction of available cells for the H-Score calculation indicates cell segmentation issues. As a workaround, a different, physiologically relevant, compartment may be selected for scoring.

phenoptrReports passes all tests without warnings.