{
  "timestamp": 1663178446.076831,
  "input_args": {
    "segmentation_algorithm": "/allen/programs/celltypes/workgroups/rnaseqanalysis/mFISH/michaelkunst/MERSCOPES/mouse/atlas/mouse_3b/segmentation_models/cellpose_cyto2_nuclei.json",
    "input_path": "/data/1198980023/region_0/images/mosaic_(?P<stain>[\\w|-]+[0-9]?)_z(?P<z>[0-9]+).tif",
    "input_micron_to_mosaic_path": "/data/1198980023/region_0/images/micron_to_mosaic_pixel_transform.csv",
    "output_path": "/data/1198980023/region_0/cellpose_cyto2_nuclei",
    "tile_size": 4096,
    "tile_overlap": 409
  },
  "input_data": {
    "micron_to_mosaic_tform": [
      [
        9.259410858154297,
        0.0,
        -549.0689697265625
      ],
      [
        0.0,
        9.25937271118164,
        876.1707153320312
      ],
      [
        0.0,
        0.0,
        1.0
      ]
    ],
    "z_layers": [
      3
    ],
    "channels": [
      "PolyT",
      "DAPI"
    ],
    "images": [
      {
        "channel": "DAPI",
        "z_layer": 3,
        "full_path": "/data/1198980023/region_0/images/mosaic_DAPI_z3.tif"
      },
      {
        "channel": "PolyT",
        "z_layer": 3,
        "full_path": "/data/1198980023/region_0/images/mosaic_PolyT_z3.tif"
      }
    ]
  },
  "window_grid": {
    "mosaic_size": [
      76553,
      71819
    ],
    "tile_size": [
      4096,
      4096
    ],
    "tile_overlap": 409,
    "num_tiles": 272,
    "windows": [
      [
        0,
        0,
        4914,
        4914
      ],
      [
        4505,
        0,
        4914,
        4914
      ],
      [
        9010,
        0,
        4914,
        4914
      ],
      [
        13515,
        0,
        4914,
        4914
      ],
      [
        18020,
        0,
        4914,
        4914
      ],
      [
        22525,
        0,
        4914,
        4914
      ],
      [
        27030,
        0,
        4914,
        4914
      ],
      [
        31535,
        0,
        4914,
        4914
      ],
      [
        36040,
        0,
        4914,
        4914
      ],
      [
        40545,
        0,
        4914,
        4914
      ],
      [
        45050,
        0,
        4914,
        4914
      ],
      [
        49555,
        0,
        4914,
        4914
      ],
      [
        54060,
        0,
        4914,
        4914
      ],
      [
        58565,
        0,
        4914,
        4914
      ],
      [
        63070,
        0,
        4914,
        4914
      ],
      [
        67575,
        0,
        4914,
        4914
      ],
      [
        71639,
        0,
        4914,
        4914
      ],
      [
        0,
        4505,
        4914,
        4914
      ],
      [
        4505,
        4505,
        4914,
        4914
      ],
      [
        9010,
        4505,
        4914,
        4914
      ],
      [
        13515,
        4505,
        4914,
        4914
      ],
      [
        18020,
        4505,
        4914,
        4914
      ],
      [
        22525,
        4505,
        4914,
        4914
      ],
      [
        27030,
        4505,
        4914,
        4914
      ],
      [
        31535,
        4505,
        4914,
        4914
      ],
      [
        36040,
        4505,
        4914,
        4914
      ],
      [
        40545,
        4505,
        4914,
        4914
      ],
      [
        45050,
        4505,
        4914,
        4914
      ],
      [
        49555,
        4505,
        4914,
        4914
      ],
      [
        54060,
        4505,
        4914,
        4914
      ],
      [
        58565,
        4505,
        4914,
        4914
      ],
      [
        63070,
        4505,
        4914,
        4914
      ],
      [
        67575,
        4505,
        4914,
        4914
      ],
      [
        71639,
        4505,
        4914,
        4914
      ],
      [
        0,
        9010,
        4914,
        4914
      ],
      [
        4505,
        9010,
        4914,
        4914
      ],
      [
        9010,
        9010,
        4914,
        4914
      ],
      [
        13515,
        9010,
        4914,
        4914
      ],
      [
        18020,
        9010,
        4914,
        4914
      ],
      [
        22525,
        9010,
        4914,
        4914
      ],
      [
        27030,
        9010,
        4914,
        4914
      ],
      [
        31535,
        9010,
        4914,
        4914
      ],
      [
        36040,
        9010,
        4914,
        4914
      ],
      [
        40545,
        9010,
        4914,
        4914
      ],
      [
        45050,
        9010,
        4914,
        4914
      ],
      [
        49555,
        9010,
        4914,
        4914
      ],
      [
        54060,
        9010,
        4914,
        4914
      ],
      [
        58565,
        9010,
        4914,
        4914
      ],
      [
        63070,
        9010,
        4914,
        4914
      ],
      [
        67575,
        9010,
        4914,
        4914
      ],
      [
        71639,
        9010,
        4914,
        4914
      ],
      [
        0,
        13515,
        4914,
        4914
      ],
      [
        4505,
        13515,
        4914,
        4914
      ],
      [
        9010,
        13515,
        4914,
        4914
      ],
      [
        13515,
        13515,
        4914,
        4914
      ],
      [
        18020,
        13515,
        4914,
        4914
      ],
      [
        22525,
        13515,
        4914,
        4914
      ],
      [
        27030,
        13515,
        4914,
        4914
      ],
      [
        31535,
        13515,
        4914,
        4914
      ],
      [
        36040,
        13515,
        4914,
        4914
      ],
      [
        40545,
        13515,
        4914,
        4914
      ],
      [
        45050,
        13515,
        4914,
        4914
      ],
      [
        49555,
        13515,
        4914,
        4914
      ],
      [
        54060,
        13515,
        4914,
        4914
      ],
      [
        58565,
        13515,
        4914,
        4914
      ],
      [
        63070,
        13515,
        4914,
        4914
      ],
      [
        67575,
        13515,
        4914,
        4914
      ],
      [
        71639,
        13515,
        4914,
        4914
      ],
      [
        0,
        18020,
        4914,
        4914
      ],
      [
        4505,
        18020,
        4914,
        4914
      ],
      [
        9010,
        18020,
        4914,
        4914
      ],
      [
        13515,
        18020,
        4914,
        4914
      ],
      [
        18020,
        18020,
        4914,
        4914
      ],
      [
        22525,
        18020,
        4914,
        4914
      ],
      [
        27030,
        18020,
        4914,
        4914
      ],
      [
        31535,
        18020,
        4914,
        4914
      ],
      [
        36040,
        18020,
        4914,
        4914
      ],
      [
        40545,
        18020,
        4914,
        4914
      ],
      [
        45050,
        18020,
        4914,
        4914
      ],
      [
        49555,
        18020,
        4914,
        4914
      ],
      [
        54060,
        18020,
        4914,
        4914
      ],
      [
        58565,
        18020,
        4914,
        4914
      ],
      [
        63070,
        18020,
        4914,
        4914
      ],
      [
        67575,
        18020,
        4914,
        4914
      ],
      [
        71639,
        18020,
        4914,
        4914
      ],
      [
        0,
        22525,
        4914,
        4914
      ],
      [
        4505,
        22525,
        4914,
        4914
      ],
      [
        9010,
        22525,
        4914,
        4914
      ],
      [
        13515,
        22525,
        4914,
        4914
      ],
      [
        18020,
        22525,
        4914,
        4914
      ],
      [
        22525,
        22525,
        4914,
        4914
      ],
      [
        27030,
        22525,
        4914,
        4914
      ],
      [
        31535,
        22525,
        4914,
        4914
      ],
      [
        36040,
        22525,
        4914,
        4914
      ],
      [
        40545,
        22525,
        4914,
        4914
      ],
      [
        45050,
        22525,
        4914,
        4914
      ],
      [
        49555,
        22525,
        4914,
        4914
      ],
      [
        54060,
        22525,
        4914,
        4914
      ],
      [
        58565,
        22525,
        4914,
        4914
      ],
      [
        63070,
        22525,
        4914,
        4914
      ],
      [
        67575,
        22525,
        4914,
        4914
      ],
      [
        71639,
        22525,
        4914,
        4914
      ],
      [
        0,
        27030,
        4914,
        4914
      ],
      [
        4505,
        27030,
        4914,
        4914
      ],
      [
        9010,
        27030,
        4914,
        4914
      ],
      [
        13515,
        27030,
        4914,
        4914
      ],
      [
        18020,
        27030,
        4914,
        4914
      ],
      [
        22525,
        27030,
        4914,
        4914
      ],
      [
        27030,
        27030,
        4914,
        4914
      ],
      [
        31535,
        27030,
        4914,
        4914
      ],
      [
        36040,
        27030,
        4914,
        4914
      ],
      [
        40545,
        27030,
        4914,
        4914
      ],
      [
        45050,
        27030,
        4914,
        4914
      ],
      [
        49555,
        27030,
        4914,
        4914
      ],
      [
        54060,
        27030,
        4914,
        4914
      ],
      [
        58565,
        27030,
        4914,
        4914
      ],
      [
        63070,
        27030,
        4914,
        4914
      ],
      [
        67575,
        27030,
        4914,
        4914
      ],
      [
        71639,
        27030,
        4914,
        4914
      ],
      [
        0,
        31535,
        4914,
        4914
      ],
      [
        4505,
        31535,
        4914,
        4914
      ],
      [
        9010,
        31535,
        4914,
        4914
      ],
      [
        13515,
        31535,
        4914,
        4914
      ],
      [
        18020,
        31535,
        4914,
        4914
      ],
      [
        22525,
        31535,
        4914,
        4914
      ],
      [
        27030,
        31535,
        4914,
        4914
      ],
      [
        31535,
        31535,
        4914,
        4914
      ],
      [
        36040,
        31535,
        4914,
        4914
      ],
      [
        40545,
        31535,
        4914,
        4914
      ],
      [
        45050,
        31535,
        4914,
        4914
      ],
      [
        49555,
        31535,
        4914,
        4914
      ],
      [
        54060,
        31535,
        4914,
        4914
      ],
      [
        58565,
        31535,
        4914,
        4914
      ],
      [
        63070,
        31535,
        4914,
        4914
      ],
      [
        67575,
        31535,
        4914,
        4914
      ],
      [
        71639,
        31535,
        4914,
        4914
      ],
      [
        0,
        36040,
        4914,
        4914
      ],
      [
        4505,
        36040,
        4914,
        4914
      ],
      [
        9010,
        36040,
        4914,
        4914
      ],
      [
        13515,
        36040,
        4914,
        4914
      ],
      [
        18020,
        36040,
        4914,
        4914
      ],
      [
        22525,
        36040,
        4914,
        4914
      ],
      [
        27030,
        36040,
        4914,
        4914
      ],
      [
        31535,
        36040,
        4914,
        4914
      ],
      [
        36040,
        36040,
        4914,
        4914
      ],
      [
        40545,
        36040,
        4914,
        4914
      ],
      [
        45050,
        36040,
        4914,
        4914
      ],
      [
        49555,
        36040,
        4914,
        4914
      ],
      [
        54060,
        36040,
        4914,
        4914
      ],
      [
        58565,
        36040,
        4914,
        4914
      ],
      [
        63070,
        36040,
        4914,
        4914
      ],
      [
        67575,
        36040,
        4914,
        4914
      ],
      [
        71639,
        36040,
        4914,
        4914
      ],
      [
        0,
        40545,
        4914,
        4914
      ],
      [
        4505,
        40545,
        4914,
        4914
      ],
      [
        9010,
        40545,
        4914,
        4914
      ],
      [
        13515,
        40545,
        4914,
        4914
      ],
      [
        18020,
        40545,
        4914,
        4914
      ],
      [
        22525,
        40545,
        4914,
        4914
      ],
      [
        27030,
        40545,
        4914,
        4914
      ],
      [
        31535,
        40545,
        4914,
        4914
      ],
      [
        36040,
        40545,
        4914,
        4914
      ],
      [
        40545,
        40545,
        4914,
        4914
      ],
      [
        45050,
        40545,
        4914,
        4914
      ],
      [
        49555,
        40545,
        4914,
        4914
      ],
      [
        54060,
        40545,
        4914,
        4914
      ],
      [
        58565,
        40545,
        4914,
        4914
      ],
      [
        63070,
        40545,
        4914,
        4914
      ],
      [
        67575,
        40545,
        4914,
        4914
      ],
      [
        71639,
        40545,
        4914,
        4914
      ],
      [
        0,
        45050,
        4914,
        4914
      ],
      [
        4505,
        45050,
        4914,
        4914
      ],
      [
        9010,
        45050,
        4914,
        4914
      ],
      [
        13515,
        45050,
        4914,
        4914
      ],
      [
        18020,
        45050,
        4914,
        4914
      ],
      [
        22525,
        45050,
        4914,
        4914
      ],
      [
        27030,
        45050,
        4914,
        4914
      ],
      [
        31535,
        45050,
        4914,
        4914
      ],
      [
        36040,
        45050,
        4914,
        4914
      ],
      [
        40545,
        45050,
        4914,
        4914
      ],
      [
        45050,
        45050,
        4914,
        4914
      ],
      [
        49555,
        45050,
        4914,
        4914
      ],
      [
        54060,
        45050,
        4914,
        4914
      ],
      [
        58565,
        45050,
        4914,
        4914
      ],
      [
        63070,
        45050,
        4914,
        4914
      ],
      [
        67575,
        45050,
        4914,
        4914
      ],
      [
        71639,
        45050,
        4914,
        4914
      ],
      [
        0,
        49555,
        4914,
        4914
      ],
      [
        4505,
        49555,
        4914,
        4914
      ],
      [
        9010,
        49555,
        4914,
        4914
      ],
      [
        13515,
        49555,
        4914,
        4914
      ],
      [
        18020,
        49555,
        4914,
        4914
      ],
      [
        22525,
        49555,
        4914,
        4914
      ],
      [
        27030,
        49555,
        4914,
        4914
      ],
      [
        31535,
        49555,
        4914,
        4914
      ],
      [
        36040,
        49555,
        4914,
        4914
      ],
      [
        40545,
        49555,
        4914,
        4914
      ],
      [
        45050,
        49555,
        4914,
        4914
      ],
      [
        49555,
        49555,
        4914,
        4914
      ],
      [
        54060,
        49555,
        4914,
        4914
      ],
      [
        58565,
        49555,
        4914,
        4914
      ],
      [
        63070,
        49555,
        4914,
        4914
      ],
      [
        67575,
        49555,
        4914,
        4914
      ],
      [
        71639,
        49555,
        4914,
        4914
      ],
      [
        0,
        54060,
        4914,
        4914
      ],
      [
        4505,
        54060,
        4914,
        4914
      ],
      [
        9010,
        54060,
        4914,
        4914
      ],
      [
        13515,
        54060,
        4914,
        4914
      ],
      [
        18020,
        54060,
        4914,
        4914
      ],
      [
        22525,
        54060,
        4914,
        4914
      ],
      [
        27030,
        54060,
        4914,
        4914
      ],
      [
        31535,
        54060,
        4914,
        4914
      ],
      [
        36040,
        54060,
        4914,
        4914
      ],
      [
        40545,
        54060,
        4914,
        4914
      ],
      [
        45050,
        54060,
        4914,
        4914
      ],
      [
        49555,
        54060,
        4914,
        4914
      ],
      [
        54060,
        54060,
        4914,
        4914
      ],
      [
        58565,
        54060,
        4914,
        4914
      ],
      [
        63070,
        54060,
        4914,
        4914
      ],
      [
        67575,
        54060,
        4914,
        4914
      ],
      [
        71639,
        54060,
        4914,
        4914
      ],
      [
        0,
        58565,
        4914,
        4914
      ],
      [
        4505,
        58565,
        4914,
        4914
      ],
      [
        9010,
        58565,
        4914,
        4914
      ],
      [
        13515,
        58565,
        4914,
        4914
      ],
      [
        18020,
        58565,
        4914,
        4914
      ],
      [
        22525,
        58565,
        4914,
        4914
      ],
      [
        27030,
        58565,
        4914,
        4914
      ],
      [
        31535,
        58565,
        4914,
        4914
      ],
      [
        36040,
        58565,
        4914,
        4914
      ],
      [
        40545,
        58565,
        4914,
        4914
      ],
      [
        45050,
        58565,
        4914,
        4914
      ],
      [
        49555,
        58565,
        4914,
        4914
      ],
      [
        54060,
        58565,
        4914,
        4914
      ],
      [
        58565,
        58565,
        4914,
        4914
      ],
      [
        63070,
        58565,
        4914,
        4914
      ],
      [
        67575,
        58565,
        4914,
        4914
      ],
      [
        71639,
        58565,
        4914,
        4914
      ],
      [
        0,
        63070,
        4914,
        4914
      ],
      [
        4505,
        63070,
        4914,
        4914
      ],
      [
        9010,
        63070,
        4914,
        4914
      ],
      [
        13515,
        63070,
        4914,
        4914
      ],
      [
        18020,
        63070,
        4914,
        4914
      ],
      [
        22525,
        63070,
        4914,
        4914
      ],
      [
        27030,
        63070,
        4914,
        4914
      ],
      [
        31535,
        63070,
        4914,
        4914
      ],
      [
        36040,
        63070,
        4914,
        4914
      ],
      [
        40545,
        63070,
        4914,
        4914
      ],
      [
        45050,
        63070,
        4914,
        4914
      ],
      [
        49555,
        63070,
        4914,
        4914
      ],
      [
        54060,
        63070,
        4914,
        4914
      ],
      [
        58565,
        63070,
        4914,
        4914
      ],
      [
        63070,
        63070,
        4914,
        4914
      ],
      [
        67575,
        63070,
        4914,
        4914
      ],
      [
        71639,
        63070,
        4914,
        4914
      ],
      [
        0,
        66905,
        4914,
        4914
      ],
      [
        4505,
        66905,
        4914,
        4914
      ],
      [
        9010,
        66905,
        4914,
        4914
      ],
      [
        13515,
        66905,
        4914,
        4914
      ],
      [
        18020,
        66905,
        4914,
        4914
      ],
      [
        22525,
        66905,
        4914,
        4914
      ],
      [
        27030,
        66905,
        4914,
        4914
      ],
      [
        31535,
        66905,
        4914,
        4914
      ],
      [
        36040,
        66905,
        4914,
        4914
      ],
      [
        40545,
        66905,
        4914,
        4914
      ],
      [
        45050,
        66905,
        4914,
        4914
      ],
      [
        49555,
        66905,
        4914,
        4914
      ],
      [
        54060,
        66905,
        4914,
        4914
      ],
      [
        58565,
        66905,
        4914,
        4914
      ],
      [
        63070,
        66905,
        4914,
        4914
      ],
      [
        67575,
        66905,
        4914,
        4914
      ],
      [
        71639,
        66905,
        4914,
        4914
      ]
    ]
  },
  "segmentation_algorithm": {
    "experiment_properties": {
      "all_z_indexes": [
        0,
        1,
        2,
        3,
        4,
        5,
        6
      ],
      "z_positions_um": [
        1.5,
        3,
        4.5,
        6,
        7.5,
        9,
        10.5
      ]
    },
    "segmentation_tasks": [
      {
        "task_id": 0,
        "segmentation_family": "Cellpose",
        "entity_types_detected": [
          "cell"
        ],
        "z_layers": [
          3
        ],
        "segmentation_properties": {
          "model": "cyto2",
          "model_dimensions": "2D",
          "custom_weights": null,
          "version": "latest"
        },
        "task_input_data": [
          {
            "image_channel": "PolyT",
            "image_preprocessing": [
              {
                "name": "normalize",
                "parameters": {
                  "type": "CLAHE",
                  "clip_limit": 2.0,
                  "filter_size": [
                    8,
                    8
                  ]
                }
              }
            ]
          },
          {
            "image_channel": "DAPI",
            "image_preprocessing": [
              {
                "name": "normalize",
                "parameters": {
                  "type": "CLAHE",
                  "clip_limit": 2.0,
                  "filter_size": [
                    8,
                    8
                  ]
                }
              }
            ]
          }
        ],
        "segmentation_parameters": {
          "nuclear_channel": "DAPI",
          "entity_fill_channel": "PolyT",
          "diameter": 70,
          "flow_threshold": 0.95,
          "mask_threshold": -5.5,
          "minimum_mask_size": 500
        },
        "polygon_parameters": {
          "simplification_tol": 2,
          "smoothing_radius": 10,
          "minimum_overlap_to_merge": 800,
          "minimum_final_area": 500
        }
      },
      {
        "task_id": 1,
        "segmentation_family": "Cellpose",
        "entity_types_detected": [
          "cell"
        ],
        "z_layers": [
          3
        ],
        "segmentation_properties": {
          "model": "nuclei",
          "model_dimensions": "2D",
          "custom_weights": null,
          "version": "latest"
        },
        "task_input_data": [
          {
            "image_channel": "DAPI",
            "image_preprocessing": [
              {
                "name": "normalize",
                "parameters": {
                  "type": "CLAHE",
                  "clip_limit": 2.0,
                  "filter_size": [
                    8,
                    8
                  ]
                }
              }
            ]
          }
        ],
        "segmentation_parameters": {
          "nuclear_channel": "DAPI",
          "entity_fill_channel": null,
          "diameter": 50,
          "flow_threshold": 0.95,
          "mask_threshold": -5.5,
          "minimum_mask_size": 500
        },
        "polygon_parameters": {
          "simplification_tol": 2,
          "smoothing_radius": 10,
          "minimum_overlap_to_merge": 800,
          "minimum_final_area": 500
        }
      }
    ],
    "segmentation_task_fusion": {
      "entity_fusion_strategy": "harmonize",
      "fused_polygon_postprocessing_parameters": {
        "min_distance_between_entities": 1,
        "min_final_area": 500
      }
    },
    "output_files": [
      {
        "entity_types_output": [
          "cell"
        ],
        "files": {
          "run_on_tile_dir": "result_tiles",
          "mosaic_geometry_file": "cellpose_mosaic_space.parquet",
          "micron_geometry_file": "cellpose_micron_space.parquet",
          "cell_metadata_file": "cellpose_cell_metadata.csv"
        }
      }
    ]
  }
}