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

3D spheroid analysis #121

Closed
IevaPal opened this issue Dec 4, 2017 · 5 comments
Closed

3D spheroid analysis #121

IevaPal opened this issue Dec 4, 2017 · 5 comments

Comments

@IevaPal
Copy link

IevaPal commented Dec 4, 2017

Hi,

I'm trying to find a way to analyse the spheroids I have cultured and I feel like there must be a way to make QuPath tell these larger shapes with multiple cells inside apart from the scaffold they're in. Ideally, I would like it to detect amount of spheroids within a region and their size. Is this possible in any way? I've attached an example image of the spheroids for reference.

Thanks,

Ieva

he_ch_17d_2

@DavidMHaumann
Copy link

Hi Ieva,
That shall defenitely be possible. You can generate regions of interest for each spheroid. That works via superpixel approach: Analyse > Region identification > Tiles & Superpixels > SLIC or DoG

You generate superpixels:
grafik

Change the image type in the image tab into "Brightfield H&E".
Then feed it with statistics.
Analyse > Calculate features > add intensity features.

Use these checkboxes:
grafik

and run it for detections.

Next step is to train a classifier to detect the spheroids: First create a class "Spheroid" in the annotation tab by rightclick onto the list of classes:
grafik

Then use the polygon and draw a circle around spheroids can set class of the polygon to "Spheproid"
and paint polygon in the whitespace and set class to other or whitespace:
grafik

Now go to menue "Classify" > "create detection classifier".
Press advanced options and then "use all". Then build and apply.
grafik

The first result looks like that:
grafik

after enough training you can convert the spheroid reagions into real regions of interest and afterwards for example count cells:

That is done by:
grafik

choose only spheroids to be converted to roi:
grafik

The image looks like that now:
grafik

the brown areas are the speroid ROIs.
You can now rund celldetection for example.
Or just count spheroids and measure their size by "Measure" "Show Annotation Measurements".

Best
David

@Svidro
Copy link

Svidro commented Dec 4, 2017

That looks like the sort of thing that Simple Tissue Detection might work for with the correct settings. Something around 220 threshold maybe, with a medium requested pixel size and minimum area (keep setting these lower until you are picking up all of what you want). Also you will probably want to uncheck Single annotation. The requested pixel size is probably the most important measurement to play around with if you use this method.

David beat me to it! His method is also probably better in the long run, though this gives another, slightly simpler method. I would also be careful about using too many features in your classifier, or at least make sure your training set is significantly larger than the number of features you use!

@DavidMHaumann
Copy link

ah right, Svidro! simple tissue detection is the much faster and more convenient way to do it! I was thinking to complicated ^-^

@Svidro
Copy link

Svidro commented Dec 4, 2017

Oh, definitely not too complicated, as we don't really know what the rest of the slides look like. Your method is far more robust, and if there are other dark blotches or other unwanted clumps of cell pellets/detritus on the images, a classifier would be able to pick that up, while simple tissue detection will simply look for "anything" that is "dark."

It does go to show how QuPath has multiple ways to accomplish the same task though, depending on your needs!

@IevaPal
Copy link
Author

IevaPal commented Dec 5, 2017

Hi,

Thank you both very much for your comments, I've gone for the more robust longer method. That seems to work better for these samples as I can adjust the selection better. It works really well, thank you for the quick responses!

Ieva

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

No branches or pull requests

4 participants