mosaicmpi.plots.plot_metadata_transfer#
- mosaicmpi.plots.plot_metadata_transfer(network: Network, source: str, dest: str, layer: str, figsize: Collection[float, float] = None, annotate: str | Collection[str] | None = None, colors: Colors = None, ax: Axes = None) Figure#
Plot heatmap of metadata transfer scores
- Parameters:
network (
mosaicmpi.network.Network) – network through which to propagate labelscolors (
mosaicmpi.colors.Colors) – colors object with metadata colors if ‘annotation’ parameter is specifiedsource (str) – Source dataset for label transfer
dest (str) – Target dataset for label transfer
layer (str) – name of categorical data layer from source dataset
annotate (Union[str, Collection[str]], optional) – categorical metadata layer, defaults to None
- Returns:
figure object
- Return type:
Figure