{
  "schemaVersion": 4,
  "meta": {
    "name": "Example Colocalization",
    "shortDescription": "Ported from CellProfiler ExampleColocalization pipeline",
    "description": "Two-channel spot colocalization (Cy3-like / Cy5-like nucleosome staining). Ported from the CellProfiler ExampleColocalization.cppipe example. Channel 0 = OrigStain1 (files *_N_R), Channel 1 = OrigStain2 (files *_N_G), merged into one 2-channel TIFF per site via Fiji. Object counts run ~10-15% off CP and coloc% ~5pt high, mainly because evanalyzer's watershed declumping (prominence-based) splits touching spots differently than CP's fixed-radius local-maxima method, and evanalyzer's illumination correction averages over blocks before fitting (more robust to bright spots) instead of fitting the raw pixels directly like CP does.",
    "authors": [
      {
        "fullName": "Jeff Reifenberger",
        "organization": "Massachusetts General Hospital"
      },
      {
        "fullName": "Brad Berstein's",
        "organization": "Massachusetts General Hospital"
      }
    ],
    "creationTime": "2026-08-23T00:00:00Z",
    "category": "Colocalization",
    "tags": [
      "colocalization",
      "spots",
      "2-channel",
      "cellprofiler"
    ],
    "appVersion": "0.1.0"
  },
  "classification": {
    "classes": [
      {
        "id": 0,
        "color": "#97978f",
        "name": "Background",
        "notes": ""
      },
      {
        "id": 1,
        "color": "#ff3333",
        "name": "ch1@spot",
        "notes": "Objects1 in CP pipeline (Stain1 / *_N_R channel)"
      },
      {
        "id": 2,
        "color": "#33cc33",
        "name": "ch2@spot",
        "notes": "Objects2 in CP pipeline (Stain2 / *_N_G channel)"
      },
      {
        "id": 3,
        "color": "#9933ff",
        "name": "ch1-ch2@coloc",
        "notes": "Overlap area between ch1@spot and ch2@spot"
      }
    ]
  },
  "plate": {
    "groupingMode": "AUTO",
    "groupingRegex": "",
    "plateSize": "PLATE1X1",
    "wellLayout": {
      "FIXED": {
        "rows": 4,
        "cols": 4
      }
    },
    "wellImageOrder": [
      1,
      2,
      3,
      4,
      5,
      6,
      7,
      8,
      9,
      10,
      11,
      12,
      13,
      14,
      15,
      16
    ]
  },
  "pipelines": [
    {
      "id": 1,
      "name": "ch1 spots",
      "description": null,
      "imageSource": {
        "channel": 0
      },
      "enabled": true,
      "steps": [
        {
          "id": 1,
          "enabled": true,
          "command": {
            "type": "ILLUMINATION_CORRECTION",
            "method": "REGULAR",
            "blockSize": 60,
            "smoothing": {
              "type": "FIT_POLYNOMIAL"
            },
            "applyMethod": "DIVIDE",
            "rescale": false
          }
        },
        {
          "id": 2,
          "enabled": true,
          "command": {
            "type": "BLUR",
            "kernelSize": 3
          }
        },
        {
          "id": 3,
          "enabled": true,
          "command": {
            "type": "THRESHOLD",
            "thresholds": [
              {
                "method": {
                  "type": "OTSU",
                  "classes": {
                    "type": "THREE",
                    "middleClass": "BACKGROUND"
                  }
                },
                "minThreshold": 100.0,
                "maxThreshold": 65535.0,
                "unit": "BIT",
                "segmentationClass": 1,
                "valueSource": "ACTUAL_IMAGE"
              }
            ]
          }
        },
        {
          "id": 4,
          "enabled": true,
          "command": {
            "type": "CONNECTED_COMPONENTS",
            "minSize": 0
          }
        },
        {
          "id": 5,
          "enabled": true,
          "command": {
            "type": "WATERSHED",
            "maximumFinderTolerance": 0.5,
            "smoothingSigma": 0.0,
            "minObjectSize": 0,
            "seedSource": "DISTANCE_MAP"
          }
        },
        {
          "id": 6,
          "enabled": true,
          "command": {
            "type": "EXTRACT_OBJECTS",
            "maxObjectsBeforeFail": 100000,
            "classMapping": []
          }
        },
        {
          "id": 7,
          "enabled": true,
          "command": {
            "type": "CLASSIFY_OBJECTS",
            "originSegmentation": [],
            "inputClasses": [
              {
                "GLOBAL": 1
              }
            ],
            "matchHandling": "REMOVE_ALL_CLASSES_IF_NOT_MATCH",
            "outputClass": "UNSET",
            "overlappingWith": "UNSET",
            "minIntersectionArea": 0.0,
            "sizeUnit": "PIXELS",
            "minArea": 9.0,
            "maxArea": 177.0,
            "minCircularity": 0.0,
            "maxCircularity": 1.0,
            "minSolidity": 0.0,
            "maxSolidity": 1.0,
            "minAspectRatio": 0.0,
            "maxAspectRatio": 2147483600.0,
            "minEccentricity": 0.0,
            "maxEccentricity": 1.0,
            "minFeret": 0.0,
            "maxFeret": 2147483600.0,
            "allowEdgeTouching": false,
            "intensityFilters": []
          }
        }
      ]
    },
    {
      "id": 2,
      "name": "ch2 spots",
      "description": null,
      "imageSource": {
        "channel": 1
      },
      "enabled": true,
      "steps": [
        {
          "id": 1,
          "enabled": true,
          "command": {
            "type": "ILLUMINATION_CORRECTION",
            "method": "REGULAR",
            "blockSize": 60,
            "smoothing": {
              "type": "FIT_POLYNOMIAL"
            },
            "applyMethod": "DIVIDE",
            "rescale": false
          }
        },
        {
          "id": 2,
          "enabled": true,
          "command": {
            "type": "BLUR",
            "kernelSize": 3
          }
        },
        {
          "id": 3,
          "enabled": true,
          "command": {
            "type": "THRESHOLD",
            "thresholds": [
              {
                "method": {
                  "type": "OTSU",
                  "classes": {
                    "type": "THREE",
                    "middleClass": "BACKGROUND"
                  }
                },
                "minThreshold": 100.0,
                "maxThreshold": 65535.0,
                "unit": "BIT",
                "segmentationClass": 2,
                "valueSource": "ACTUAL_IMAGE"
              }
            ]
          }
        },
        {
          "id": 4,
          "enabled": true,
          "command": {
            "type": "CONNECTED_COMPONENTS",
            "minSize": 0
          }
        },
        {
          "id": 5,
          "enabled": true,
          "command": {
            "type": "WATERSHED",
            "maximumFinderTolerance": 0.5,
            "smoothingSigma": 0.0,
            "minObjectSize": 0,
            "seedSource": "DISTANCE_MAP"
          }
        },
        {
          "id": 6,
          "enabled": true,
          "command": {
            "type": "EXTRACT_OBJECTS",
            "maxObjectsBeforeFail": 100000,
            "classMapping": []
          }
        },
        {
          "id": 7,
          "enabled": true,
          "command": {
            "type": "CLASSIFY_OBJECTS",
            "originSegmentation": [],
            "inputClasses": [
              {
                "GLOBAL": 2
              }
            ],
            "matchHandling": "REMOVE_ALL_CLASSES_IF_NOT_MATCH",
            "outputClass": "UNSET",
            "overlappingWith": "UNSET",
            "minIntersectionArea": 0.0,
            "sizeUnit": "PIXELS",
            "minArea": 10.0,
            "maxArea": 177.0,
            "minCircularity": 0.0,
            "maxCircularity": 1.0,
            "minSolidity": 0.0,
            "maxSolidity": 1.0,
            "minAspectRatio": 0.0,
            "maxAspectRatio": 2147483600.0,
            "minEccentricity": 0.0,
            "maxEccentricity": 1.0,
            "minFeret": 0.0,
            "maxFeret": 2147483600.0,
            "allowEdgeTouching": false,
            "intensityFilters": []
          }
        }
      ]
    },
    {
      "id": 3,
      "name": "Coloc",
      "description": null,
      "imageSource": "SCRATCHPAD",
      "enabled": true,
      "steps": [
        {
          "id": 1,
          "enabled": true,
          "command": {
            "type": "COLOCALIZATION",
            "classesToColoc": [
              {
                "GLOBAL": 1
              },
              {
                "GLOBAL": 2
              }
            ],
            "filterClasses": [],
            "classForOverlappingAreas": {
              "GLOBAL": 3
            },
            "multiplicity": "ONE_TO_ONE",
            "sizeUnit": "PIXELS",
            "minColocArea": 0.0,
            "excludeClasses": []
          }
        }
      ]
    }
  ],
  "modules": []
}
