liana.plotting.contributions

Contents

liana.plotting.contributions#

liana.plotting.contributions(misty=None, target_metrics=None, view_names=None, filter_fun=None, aggregate_fun=None, figure_size=(5, 5), return_fig=True)#

Plot view contributions per target.

Parameters:
  • misty (MistyData (default: None)) – MistyData object with modelling results

  • target_metrics (DataFrame (default: None)) – A target_metrics DataFrame

  • view_names (list[str] (default: None)) – A list of view names to plot

  • filter_fun (Callable (default: None)) – A function, applied along the columns (axis=1), used to filter the results to be plotted.

  • aggregate_fun (Callable (default: None)) – A function used to aggregate the results to be plotted.

  • figure_size (tuple[float, float] (default: (5, 5))) – Figure x,y size

  • return_fig (bool (default: True)) – bool whether to return the fig object.

Return type:

Figure

Returns:

A plotnine plot.

Raises:

ValueError – If the misty input is not valid or no view_names provided.