liana.plotting.interactions¶
- liana.plotting.interactions(misty=None, interactions=None, view=None, top_n=None, ascending=False, key=None, filter_fun: callable | None = None, aggregate_fun: callable | None = None, figure_size: tuple = (5, 5), return_fig: bool = True)¶
Plot interaction importances.
- Parameters:
- misty
MistyData object with modelling results
- viewstr
A view to plot
- top_n
top_n
entities to plot.- ascendingbool
Whether to sort interactions in ascending order
- keystr
Key to use when sorting interactions
- filter_fun
A function, applied along the columns (axis=1), used to filter the results to be plotted.
- 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.