cellcoloc.show_analysis_results

cellcoloc.show_analysis_results(loaded_images, roi_labels_2d, run_result, display_names=None, optional_region_result=None, viewer=None, layers_to_show=None, replace_existing_layers=True, show_optional_region_image=False)[source]

Display or refresh analysis layers in napari.

Parameters:
  • layers_to_show – Optional list of logical layer keys to add or refresh. Supported keys are "cell_image", "marker_image", "optional_region_image", "optional_region_labels", "rois", "roi_numbers", "cell_masks", "marker_masks", and "positive_cells". When None, the function renders all standard analysis layers.

  • replace_existing_layers – If True, existing layers with the same name are removed and added again. This keeps repeated refinement runs from piling up duplicate layers in the same viewer.

  • show_optional_region_image – If True, the optional third-channel image is shown even when no threshold result object is provided.

Notes

Raw image layers are always shown as the full stack. When run_result.analysis_z_bounds is set, only the ROI label layer is visually restricted to that z interval so the viewer reflects the active analysis extent without hiding the surrounding image context.