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_idsgrid. Saves plot inModelComparator.save_dir.- Parameters
exp_names (
Optional[List[str]]) – Compare only a subset of experiments.img_ids (
Optional[List[int]]) – Cell images fromModelComparator.img_mppsthat should be visualised.img_labels (
Optional[List[str]]) – Additional information to label plotted images by. If defined, must be a list of same length asimg_ids.img_channel (
Optional[str]) – First column of the plot is an intensity image ofimg_channel. Default is the first channel defined inMPPData.channels.save_prefix (
str) – Plot is saved under {save_prefix}predicted_images_{img_id}.png.rep (
str) – Representation to plot. Must be a key inMPPData.data().kwargs (
Any) – Passed toMPPData.get_object_imgs().
- Return type
Nothing, plots and saves images.