fjug / MoMA

MoMA - the MotherMachine Analyzer
4 stars 7 forks source link

discard cells touching the exit #18

Open julou opened 8 years ago

julou commented 8 years ago

because cells about to leave a growth lane will always be problematic (partly cut, blurred, etc) and hence discarded from the data analysis, it would be very useful to discard them in MoMA already. This probably means giving a special status to segments that touch the exit (at least pruning them, even better would be to exclude them from the optimization).

At the moment, I give myself a visual threshold and don't fix issues closer to the exit (sometimes pruning the corresponding lineage to be sure that the error cannot be propagated). However, this has 2 limitations:

I hope this request makes sense. Curious to read whether you've considered (and hence discarded something similar during the development)…

Best, Thomas

erikvannimwegen commented 8 years ago

Explanation: I discussed this with Thomas and I am not 100% sure that this is an easy issue. It is easy enough to let the user set a vertical position that cells are not allowed to go above (i.e. pixel coordinate going UNDER some critical value), but I am worried that you might get cells that move up and down across this critical value and that one might get problems with the tracking (i.e. cells would appear from nowhere when they come back from above the threshold). So maybe this is something to discuss.

fjug commented 8 years ago

Simple thing one could do: provide a function in MoMA that (after an optimization run) automatically prunes the lineages as soon as a cell touches the top of the GC. A discussion about benefits for the optimization itself might be interesting, but I do not expect this to be very helpful (as you said as well).

erikvannimwegen commented 8 years ago

This sounds like a good solution to me but let me check with Thomas.

julou commented 8 years ago

It sounds very good! not sure though how it will behave after optimising again… what do you think? or you think of running it automatically after each optimisation?