pelkmanslab / CellProfilerPelkmans

A fork of CellProfiler1.0 developed by members of Pelkmans Lab https://www.pelkmanslab.org
GNU General Public License v2.0
1 stars 1 forks source link

bug in FilterByObjectMeasurement.m #30

Open GitMotz opened 8 years ago

GitMotz commented 8 years ago

object counts should NOT be saved with prefix 'ObjectCount '. line 257: handles.Measurements.Image.ObjectCountFeatures(end+1) = {['ObjectCount ' TargetName]};

I suggest to remove the prefix, so the line will be

handles.Measurements.Image.ObjectCountFeatures(end+1) = {[TargetName]};

Problem: I tried to load Objects other than Nuclei/Cell with GetRawProbModelData2 (structMiscSettings.ObjectCountName = 'PML_filt'), but object counts were wrong (set to default). GetRawProbModelData2 could not find 'PML_filt' since FilterByObjectMeasurement.m saved the objects counts as 'ObjectCount PML_filt'.

ewiger commented 8 years ago

Any chance you can make a pull-request with a patch (solution)? I.e. implementing exactly what you proposed as a bugfix?