plot_cluster_images

ModelComparator.plot_cluster_images(exp_names=None, img_ids=None, img_labels=None, img_channel=None, save_prefix='', rep='clustering', **kwargs)[source]

Plot clustering on cell images for all experiments.

Visualises a #exp_names x #img_ids grid. Saves plot in ModelComparator.save_dir.

Parameters
  • exp_names (Optional[List[str]]) – Compare only a subset of experiments.

  • img_ids (Optional[List[int]]) – Cell images from ModelComparator.img_mpps that should be visualised.

  • img_labels (Optional[List[str]]) – Additional information to label plotted images by. If defined, must be a list of same length as img_ids.

  • img_channel (Optional[str]) – First column of the plot is an intensity image of img_channel. Default is the first channel defined in MPPData.channels.

  • save_prefix (str) – Plot is saved under {save_prefix}predicted_images_{img_id}.png.

  • rep (str) – Representation to plot. Must be a key in MPPData.data().

  • kwargs (Any) – Passed to MPPData.get_object_imgs().

Return type

Nothing, plots and saves images.