angelolab / ark-analysis

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

Remove pixels that were not assigned to cells #1108

Closed janinemelsen closed 5 months ago

janinemelsen commented 5 months ago

Hi! Since I use a slide scanner for imaging the whole tissue slide, there are always pixels that do not belong to any cells (~15%). They are not zero, since there is always some background staining on these empty spots. Is there a reason why these pixels are still included in the pixel clustering? They kind of mask the true biological signal, since the value of these non-cell pixels can be pretty high for some markers. Is there an easy way in which I can remove those pixels from further downstream processing?

Thanks!

cliu72 commented 5 months ago

Hi @janinemelsen! Pixie includes pixels not belonging to any cells, by design, because one of the major advantages of Pixie is that it is able to capture extracellular objects (e.g. extracellular matrix, vessels, extracellular aggregates, etc), in addition to cells. Pixie is intended for images that have been pre-processed to remove as many imaging artifacts as possible (since imaging artifacts are often technology-specific). I would recommend trying cleaning up your images as much as possible before feeding into Pixie (perhaps a tissue mask to mask out empty spots would be helpful here).

janinemelsen commented 5 months ago

Makes sense, thanks for the quick reply again! Really appreciate:)