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

Measure summary statistics of child objects #42

Open
tischi opened this issue Nov 8, 2020 · 2 comments
Open

Measure summary statistics of child objects #42

tischi opened this issue Nov 8, 2020 · 2 comments

Comments

@tischi
Copy link

tischi commented Nov 8, 2020

@dlegland @iarganda @haesleinhuepf @ssgpers

Again, I am quite sure I asked it before but could not find it back.

It is essentially about whether we have CellProfiler's RelateObjects module in Java?
RelateObject measures per parent summary statistics for child objects (e.g. vesicles) measurements (e.g cells).

I think technically one would measure the (median?) intensity of the child label mask objects in the parent label masks image to determine which parent they belong to. Then one can loop through the child table and compute averages of all measured features, per parent object (think tapply in R).

Do we have a function like this already?

I think the API could be:

ResultsTable averageChildPerParentMeasurements = computeChildObjectsMeasurements(  ResultsTable childrenMeasurements, ImagePlus childrenLabelMask, ImagePlus parentLabelMask);

The nice thing about this is that one could (should) also add a UI function for this, to be used in daily life and in courses.

Related to that, is there already code to combine two resultsTables based on the labelIndex?

@haesleinhuepf, how do you report back object measurements? Also using a ResultsTable? If so, maybe we can join forces...

@ssgpers
Copy link

ssgpers commented Nov 8, 2020

In many cases I like to run aggregation in R after exporting delailed children table. There user can actually decide which aggregation method to run or test several (I think one should be responsible yo make this choice per particular project).

One just needs to simply include parent object ID into children result table, e.g. by placing each child Roi on Parent count mask and measuring value there.

@tischi
Copy link
Author

tischi commented Nov 8, 2020

@ssgpers
You may have a point here. Maybe we just don't do the summary statistics in Java at all and leave that to dedicated software, like R.

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