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 resultstarget_metrics (
DataFrame(default:None)) – A target_metrics DataFrameview_names (
list[str] (default:None)) – A list of view names to plotfilter_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 sizereturn_fig (
bool(default:True)) –boolwhether to return the fig object.
- Return type:
Figure- Returns:
A plotnine plot.
- Raises:
ValueError – If the
mistyinput is not valid or noview_namesprovided.