tischi / fiji-plugin-morphometry

0 stars 1 forks source link

Spindle: overestimation of Spindle Length #86

Closed TobiasKletter closed 4 years ago

TobiasKletter commented 5 years ago

Example with difficult-to-find poles:

https://www.dropbox.com/s/2sa36p9vvf7v6sq/20190812_HeLaKyoto_gTub-GFP_hoechst_SiRTub_005-1.tif?dl=0

10.86934796 | 9.517382256 | 13.280625 "Manually" | "Ground truth via gTub-GFP" | Plugin (v 0.5.5)

tischi commented 4 years ago

In this case it would be easy, because the spindle poles are the brightest points in the tubulin image. However, very often this is not the case...

For example here, other points are brighter:

image
tischi commented 4 years ago

Do you have a plot to see how we systematically do with spindle length? I wonder whether we should just always go back 0.5 -1 micrometer towards to the centre from the highest derivative points. I think scientifically this would make sense, too.

TobiasKletter commented 4 years ago

The overestimation is only really pronounced in cells that tend to have round spindles (HeLa, HEK):

A plot that Nils made for HEK293 cells (really round spindles...): Screenshot 2019-10-04 at 15 07 51

A quick plot from a quality control that I did on mESC spindles: image

I remember we spoke about doing the spindle segmentation first and then, within the mask, look for longest extend in the rough direction of the shortest-DNA-axis?

tischi commented 4 years ago

What I tried now is to look in a circular 3D region of a radius of 1 um around the DNA axis based (derivative based) for the maximum intensity and set this to be the spindle pole. This works perfect if there is a bright spot. If there is no bright spot at the end it works not yet...need another idea here, i.e. for the example image that I posted above.

The problem with the mask is that it usually extends beyond the spindle pole, because the spindle pole can be very bright.

tischi commented 4 years ago

Sometimes the brightest spots are like such:

image
tischi commented 4 years ago

Here, it works better. This is the spindle where you have the ground truth and the method would in fact produce those values, i.e. 9.6 um.

image
tischi commented 4 years ago

Ok, I think I found some compromise which for two cases looks quite ok, and it reproduces at least your manual GT of 10.8 for your example with the very bright poles:

image

And here the same method for a spindle without bright poles:

image
TobiasKletter commented 4 years ago

Interesting! Looks like this could in both cases correspond to the actual location of the centrosomes. I will test this after the upcoming update.

TobiasKletter commented 4 years ago

Some feedback (more to come...):

Input data here are again these really tricky round HeLa spindles carrying a gTub-GFP tag, so "Groundtruth" refers to the true centrosome locations. "Manually" means "as measured in the tubulin channel by eye"

image

This is definitely an improvement!

TobiasKletter commented 4 years ago

@tischi More feedback:

Checked on 30+ of my samples (mESCs) and it looks really good so far.

However, in a few cases when the DNA plate is visibly non-perpendicular to the spindle axis, pole localisation is thrown off:

image Raw input & output: https://www.dropbox.com/s/qqpu3tvi5t95qko/P0001-T0280--0002.zip?dl=0

image https://www.dropbox.com/s/s6ek7ys1kabwf5p/P0001-T0304.zip?dl=0

image https://www.dropbox.com/s/pd7gpp4tpiamo48/P0002-T0066--0004.zip?dl=0

tischi commented 4 years ago

Thanks for the feedback! When I find some time I will look into the examples you posted!

TobiasKletter commented 4 years ago

Hi! We got some feedback concerning spindle length: 12 samples (quite homogeneous, pretty interesting non-focused poles, and a bit under-sampled in z) were tested and half of them look pretty much perfect. Here's one example: https://www.dropbox.com/s/taxlo1tfi8y3s18/Correct-t92-crop.tif?dl=0 https://www.dropbox.com/s/x2em1zqxq2ubiaj/Correct-t92.tif-out.zip?dl=0 Here's a max projection (The little appendage on the left is in all of the samples, so I think it's something biological and it doesn't seem to perturb the analysis ๐Ÿ‘): Screenshot 2020-05-11 at 15 54 51

The other half looks like this: https://www.dropbox.com/s/gp7csj1gt1w05cm/Incorrect-t82-crop.tif?dl=0 https://www.dropbox.com/s/aqoc4qb8e9cnqjz/Incorrect-t82.tif-out.zip?dl=0 Screenshot 2020-05-11 at 15 53 25

The user labelled these cases as "makes mistake". The main concern here being, that the poles are too far off the boundary of the volume mask. To me it doesn't look too bad, to be honest, but I'm sure for some this will be the make-it-or-break-it point for the analysis. Some of our own spindles get under-estimated in that way (see the examples from the posts above) so I'm also invested in this. ;) I remember we discussed it at some point but might is make sense to take the boundaries of the mask into consideration? Since we also do it for spindle width, this might be more cohesive? Or maybe it would be helpful to output the "current" method AND a measurement derived via the spindle mask?

tischi commented 4 years ago

@TobiasKletter Can you give me the input data for the wrong one? I can check what happens there. Because from a simple line profile I would agree that the poles are not at the correct position, even to our current criteria.

[EDIT] I have it, I will have a look! What kind of microscopy is this?

TobiasKletter commented 4 years ago

I think these were done on a laser scanning confocal.

tischi commented 4 years ago

I am confused... In BigDataViewer the spindle pole positions look much better than in the output image: image I'll dig more into it...

tischi commented 4 years ago

Still do not get it completely... image

tischi commented 4 years ago

Turns out I was looking for two hours at the wrong image in BigDataViewer ๐Ÿ˜ฆ Well, at least I triple checked all code during this exercise... In fact, they do look the same:

image

I think some issues here are

  1. the spindle has much less of a pole than in the original case the plugin was developed for.
  2. the image is more noisy, for finding the spindle poles we are using maximal intensities perpendicular to the spindle axis, which gives some noisy estimates in this case. Maybe simply smoothing the image before doing this could already help.

I will check this, either later today or tomorrow.

tischi commented 4 years ago

@TobiasKletter Could you just post here a few example of how the spindles typically look like for you? So I can think about an approach that would work for all cases? Thanks?

TobiasKletter commented 4 years ago

Live: https://www.dropbox.com/s/v1v7rnimp64o316/20190227_HighZoom--W0000--P0001-T0007--0000_42.tif?dl=0 Fixed (with bonus centrosome staining and lots of astral microtubules): https://www.dropbox.com/s/49mwwvqac2acg0m/R1EWT_Undiffd0_aTub_568_CDK5RAP2_647_001-1.tif?dl=0

TobiasKletter commented 4 years ago

The fixed example with stained centrosomes is actually pretty informing: Screenshot 2020-05-14 at 15 24 06 The spindle volume segmentation, however, is really nice ๐Ÿ‘

tischi commented 4 years ago

Maybe looks like we really just somehow take the spindle mask to find the poles?! Would that always work in your experience?

TobiasKletter commented 4 years ago

I think the idea definitely worth the exploration! In most cases, the poles (as determined by some centrosome marker) would be just "touching the mask" from inside the spindle volume.

tischi commented 4 years ago

"Problem" with the mask is that we then will also find the little appendices:

image

We may be able to get rid of them by some aggressive morphological opening operations on the mask, but I am not sure that would be the point. I think here is becomes a bit unclear what one wants, biologically, isn't it?

TobiasKletter commented 4 years ago

Yes I anticipated this problem with these rather special spindles. The right pole looks pretty perfect. Since I'm not sure what these little guys are in the first place, I will ask the specialist...maybe it's even good like this. :)

TobiasKletter commented 4 years ago

@tischi Seems like we were green-lighted for this ๐Ÿ‘

tischi commented 4 years ago

ok! So we include them? I just send you some code that excludes them... ๐Ÿ˜‰

TobiasKletter commented 4 years ago

Tested the new code on some samples: Live mESCs: works nicely: Screenshot 2020-05-16 at 11 04 30

on Fixed with centrosome staining: I think this is pretty good (however, the trend here is a slight over-estimation) Screenshot 2020-05-16 at 10 47 16 Screenshot 2020-05-16 at 10 48 21

On zygote spindles: It now overshoots a bit: Screenshot 2020-05-16 at 12 47 52 Screenshot 2020-05-16 at 12 48 33

tischi commented 4 years ago

Could you send me the input data for the lower one? I can try to improve.

TobiasKletter commented 4 years ago

@tischi https://www.dropbox.com/s/gzxrzg1cl1xncwa/191003-cow44th-8003-M4MTBD488-H2B568-Gauss-Scene-01-t92-1.tif?dl=0 <https://www.dropbox.com/s/gzxrzg1cl1xncwa/191003-cow44th-8003-M4MTBD488-H2B568-Gauss-Scene-01-t92-1.tif?dl=0

On 16 May 2020, at 13:36, tischi notifications@github.com wrote:

Could you send me the input data for the lower one? I can try to improve.

โ€” You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/tischi/fiji-plugin-morphometry/issues/86#issuecomment-629632013, or unsubscribe https://github.com/notifications/unsubscribe-auth/AK5RGQY5R3NURY7TBHDGL7TRRZ3DLANCNFSM4IMGXS3Q.

tischi commented 4 years ago

@TobiasKletter Could you please try out this version? https://oc.embl.de/index.php/s/OSuM1F5qhEMkSXP

TobiasKletter commented 4 years ago

@tischi Works perfectly with live spindles of mESCs and the zygotes ๐Ÿ‘

On the fixed samples with centrosome staining, a bit mixed:

Good one (the red is the staining): Screenshot 2020-05-25 at 13 24 37

Misses the mark a bit: Screenshot 2020-05-25 at 13 26 35

Something happened here (I suspect the fixed DNA is again the culprit): Screenshot 2020-05-25 at 13 27 28

I only tested 6 of these fixed samples with centrosome staining so far, but I am currently preparing a larger analysis with these (30+), to check if there is a pattern or not, and also if there are other issues popping up. I will finish this later today and give an update!

tischi commented 4 years ago

For the last one, I feel it already could not identify the DNA axis properly..

TobiasKletter commented 4 years ago

Here are the results for n=51 samples:

"Manual" = 3D distance of poles as judged "by eye" via the tubulin channel "Ground truth" = 3D distance as defined by centrosome staining "Plugin" = plugin output

20200525_Jar054_SL_Benchmark

The ones that, for one reason or another, misplaced poles entirely (n=6) are included here (probably the few short ones...). So here it seems like it's overestimating length again. However, when looking at the output images, they aren't that far off actually:

Screenshot 2020-05-25 at 16 36 16 Screenshot 2020-05-25 at 16 38 17 Screenshot 2020-05-25 at 16 44 24

Seems it measures the "outside" edge of the dots, right? The line in the last one for example is 12 ยตm (that's what in the output table for that file). Ground truth in this case is 9.9 ยตm. I think if it was the "inner" edge or the center, it would be closer:

image

(Line here is 10 ยตm)

tischi commented 4 years ago

It measures the centre of the dots! If that does not agree with the number in the table, please tell me, then there is still a bug...

TobiasKletter commented 4 years ago

Yes, the number in the table always coincides with the outer edges (as seen in the screenshots above)...

tischi commented 4 years ago

Yes, the number in the table always coincides with the outer edges (as seen in the screenshots above)...

Allright, let me have a look...

tischi commented 4 years ago

@TobiasKletter Thanks a lot for spotting this. There was a bug indeed. Does this work better? https://oc.embl.de/index.php/s/yuWFDa9NGdV0pui

TobiasKletter commented 4 years ago

@tischi I think it's corrected, but I think it's still not exactly in the center, It seems like one voxel off on each side? The lines correspond to the measurement in the table: Screenshot 2020-06-02 at 12 50 52 Screenshot 2020-06-02 at 12 52 32

The general trend is still that it over-estimates spindle length by about 1 micron:

20200602_Jar054_SL_Benchmark

It's a bit unfortunate because for the live spindles etc. pole placement looks really convincing now. I think, to make the plot convincing, I could define as "ground truth" the outer edge of the centrosome staining...I have to think about this a bit

tischi commented 4 years ago

ok, please try this one: https://oc.embl.de/index.php/s/h5UZYTcK2ZU6wlc it works like this:

  1. finds preliminary spindle poles based on the mask
  2. refines spindle poles searching for the brightest spot in a certain search radius around the preliminary poles, this radius has now been enlarged to 1 micrometer.
TobiasKletter commented 4 years ago

@tischi Looks really good so far! Average length is now pretty close to ground truth ๐Ÿ‘

I will discuss the two versions from today with my colleagues and let you know asap.

TobiasKletter commented 4 years ago

After comparing and discussing more images, I favour the "second to last" version (https://oc.embl.de/index.php/s/yuWFDa9NGdV0pui).

This version really works great with live spindles. It is biologically consistent with the cow spindles too, where we wanted to place the poles at the outermost edge. Consistent with that definition, I re-measured the fixed spindles with "ground truth" staining, now instead of picking the center of the centrosome rather trying to pick the outer edge (and removing the anyway problematic ones, where the analysis is running into problems due to wonky chromatin...):

20200605_Jar054_SL_Benchmark_voxelsize020

It's a bit closer and I'm more or less pleased now, but it seems like fixed samples aren't ideal for this particular benchmarking strategy (fixation really impacts spindle shape ๐Ÿ˜ข)...I have to think of another solution.