nf-core / molkart

A pipeline for processing Molecular Cartography data from Resolve Bioscience (combinatorial FISH)
https://nf-co.re/molkart
MIT License
10 stars 7 forks source link

Add option to filter masks and exclude mean intensities #8

Closed kbestak closed 10 months ago

kbestak commented 1 year ago

Description of feature

Add option to filter masks and exclude mean intensities

kbestak commented 1 year ago

New version of the Cellpose module will have this functionality (with the min_size parameter) - param will be added once working.

spot2cell is replacing project spots and mcquant and does not produce the mean intensity metrics that should have otherwise been removed.

FloWuenne commented 1 year ago

https://github.com/nf-core/modules/pull/3975 is implementing the new cellpose container version. So once this passes, the filtering option can be added to cellpose via ext.args!

kbestak commented 11 months ago

We don't have a way of filtering ilastik and Mesmer masks yet, only Cellpose has an internal function to filter masks.

FloWuenne commented 11 months ago

@kbestak Should we therefore come back to our idea of filtering cells with a module after the segmentation step? This would also help to exclude weird shapes / small or big cells for visualization of the mask.

kbestak commented 11 months ago

@FloWuenne The question just remains, do we filter the segmentation masks themselves, or cells in the quantification table. The latter would definitely produce less data as the segmentation masks can be relatively big, and give more freedom to users, but that would make it harder for visualization as the segmentation mask would not match the quantified output. I'm leaning towards segmentation mask filtering, what do you think?

FloWuenne commented 10 months ago

I would agree, that segmentation mask filtering would be more helpful due to multiple reasons:

kbestak commented 10 months ago

Addressed in: https://github.com/nf-core/molkart/pull/33