FilterObjects bug

I’m trying to filter a set of DNA territories in Nuclei using a rules.txt copy-and-pasted from CP Analyst. I’m getting this error:

Traceback (most recent call last): File "cellprofiler\gui\pipelinecontroller.pyc", line 932, in do_step File "cellprofiler\modules\filterobjects.pyc", line 377, in run IndexError: index 7 out of bounds 0<=index<6

I attached the pipeline for reference. Here’s the rules.txt (since the forum won’t let me upload it):

IF (Gumballs_Intensity_MeanIntensityEdge_CropNuclei > 0.141422182832, [0.37309437391060735, -0.37309437391060735], -0.91943401152127002, 0.91943401152127002]) IF (Gumballs_AreaShape_Solidity > 0.88333333333300001, [0.63622046234641982, -0.63622046234641982], -0.56651541023294716, 0.56651541023294716]) IF (Gumballs_AreaShape_FormFactor > 0.47319505258599998, [0.17723516651364313, -0.17723516651364313], -1.0, 1.0]) IF (Gumballs_AreaShape_Center_Y > 487.0, -0.50576299878169018, 0.50576299878169018], [0.29050169963147809, -0.29050169963147809]) IF (Gumballs_Intensity_MeanIntensityEdge_CropNuclei > 0.141422182832, [0.15626227085930078, -0.15626227085930078], -0.79688788722961412, 0.79688788722961412]) IF (Gumballs_AreaShape_Solidity > 0.91412958626100005, [0.9078690899487506, -0.9078690899487506], -0.21866401097090366, 0.21866401097090366]) IF (Gumballs_AreaShape_Center_Y > 255.0, [0.22083882928150636, -0.22083882928150636], -0.70330837254489775, 0.70330837254489775]) IF (Gumballs_Intensity_MedianIntensity_CropNuclei > 0.29417869448700001, -0.77826500778568775, 0.77826500778568775], [0.14221632681340612, -0.14221632681340612]) IF (Gumballs_Texture_SumEntropy_CropNuclei_3 > 2.4296422711300001, [0.57031002397461894, -0.57031002397461894], -0.28682728346184394, 0.28682728346184394]) IF (Gumballs_Texture_InverseDifferenceMoment_CropNuclei_3 > 0.39457307080800003, [0.23362421180949614, -0.23362421180949614], -0.79478811668192184, 0.79478811668192184])

I’m using CP r10997 on 64-bit Windows 7 Ultimate SP1

Thanks!
nuclei_and_gumball_or_pseudogumball.cp (11.3 KB)

Nevermind, I figured it out myself. This is the error you get when you select the wrong object to filter (I had selected nuclei by mistake :blush: )

Thanks for pointing this out. We’ll add a more helpful validation warning if there’s an object-rules mismatch.
-Mark