liana.plotting.contributions

liana.plotting.contributions(misty=None, target_metrics=None, view_names: list | None = None, filter_fun: callable | None = None, aggregate_fun: callable | None = None, figure_size: tuple = (5, 5), return_fig: bool = True)

Plot view contributions per target.

Parameters:
misty

MistyData object with modelling results

target_metrics

A target_metrics DataFrame

view_names

A list of view names to plot

aggregate_fun

A function used to aggregate the results to be plotted.

figure_size

Figure x,y size

return_fig

bool whether to return the fig object.

Returns:
A plotnine plot.