sagar87 / spatialproteomics

Spatialproteomics is a light weight wrapper around xarray with the intention to facilitate the data exploration and analysis of highly multiplexed immunohistochemistry data. Docs available here: https://sagar87.github.io/spatialproteomics/ .
https://sagar87.github.io/spatialproteomics/
MIT License
12 stars 0 forks source link

Bug in la selection #51

Closed MeyerBender closed 3 months ago

MeyerBender commented 3 months ago

Selecting with la like this does not remove the segmentation masks that should be unselected:

_ = img_full.pp.add_segmentation(img_full_mesmer._segmentation.values).pp[240:1700, 190:1640].pp['ki-67'].pp.filter([0.98]).pp.add_labels_from_dataframe(df_tmp).la['Cell type 1'].pl.colorize('cyan').pl.render_segmentation().pl.imshow()

image

This works with render_labels though:

_ = img_full.pp.add_segmentation(img_full_mesmer._segmentation.values).pp[240:1700, 190:1640].pp['ki-67'].pp.filter([0.98]).pp.add_labels_from_dataframe(df_tmp).la['Cell type 1'].pl.colorize('cyan').pl.render_labels().pl.imshow()

image