Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Polygon resolution after cellpose leads to overlapping and misshapen cells #136

Open
pakiessling opened this issue Oct 4, 2024 · 1 comment

Comments

@pakiessling
Copy link
Contributor

pakiessling commented Oct 4, 2024

Hi Quentin,
we talked a little bit about this in Munich.
I think this might be more noticeble in our samples as we are working with big cells:
grafik

You can see the lines where I assume the shapes from different runs were stitched.
Even more apparent with my trained cellpose model:
output_sopa

I find the overlaps especially concerning as the transcripts / intensities will be counted twice.

I am also experimenting with porting the polygon resolution from VPT:
grafik

In this case it leads to the removal of many cells, but there are no more overlaps.

I have uploaded the sdata and my code here:
https://github.com/pakiessling/sopa_poly_experiment

Let me know what you think. I would be happy to try and help in improving this

@quentinblampey
Copy link
Collaborator

Hi @pakiessling,

Thanks for sending these detailed images. It seems the segmentation here is pretty difficult (is it DAPI staining?), so I think the results are less consistent than expected between the different patches, leading to these artifacts.

What would be a good solution for you?
I wanted to work on a new resolve method to avoid these overlaps (split the overlapping region between the two cells). Would that be something interesting here?

I'm planning to add a new resolve_method argument, which would be a string to decide on the resolve method to use (with, by default, the one that is currently used).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants