I think there may still be a problem with RelateObjects, or maybe I’m doing something wrong.
I’ve noticed that in the spreadsheet that is written out, that sometimes the Golgi is associated with the wrong cell. However, the output from DisplayDataOnImage (showing the Golgi’s Parent cell) does not agree with the output to the spreadsheet (indicating the Golgi’s parent cell). The associated measurements within the spreadsheet definitely indicate that the Golgi is associated with the wrong cell.
I’ve attached an example.
In the Image, for each cell the Cytoplasm is outlined in white, the Golgi (red) is outlined in yellow. Also, for each cell (“FilteredCell”) the object number is shown in yellow, the parent of the Golgi is shown in white, and the parent of the nucleus is shown in red. In the image, everything appears to be correct.
However, in the data that is exported to the spreadsheet, many of the FilteredCells are associated with the wrong Golgi (but the correct nucleus). For example for FilteredCell #13 the Golgi contained within has a parent FilteredCell of 12. Likewise for FilteredCell #14, the Golgi contained within has a parent FilteredCell of 13. The measured Golgi areas also are switched.
Attached is the input data file, the pipeline used to generate the data, and the output CVS file that shows that problem.
I guess I see that my use of CalculateMath to force the child Golgi measurements into the parent cell spreadsheet is probably the source of the problem. Is there another way to have all of the measurements for each cell end up in the same spreadsheet (since there is one Golgi and one nucleus per cell, it would be great to have the measurements show up together for each cell)?
If there is a better way to deal with it, I’d appreciate any suggestions.
CP 2.0 r11710, Mac OSX 10.6.8
DefaultOUT_FilteredCells.csv (1.76 KB)
SJF Golgi calcs relate problem.cp (31.5 KB)
images relate.zip (2.11 MB)