decoupler.plot_running_score

decoupler.plot_running_score(df, stat, net, set_name, source='source', target='target', cmap='RdBu_r', figsize=(5, 5), dpi=100, return_fig=False, save=None)

Plot the running score of GSEA.

Parameters:
dfDataFrame

Long format DataFrame with features to be ranked. Assumes features are indexes.

statstr

Name of the column containing the ranking metric.

netDataFrame

Network in long format.

set_namestr

Name of the feature set to plot.

sourcestr

Column name in net with source nodes.

targetstr

Column name in net with target nodes.

cmapstr

Colormap to use.

figsizetuple

Figure size.

dpiint

DPI resolution of figure.

return_figbool

Whether to return a Figure object or not.

savestr, None

Path to where to save the plot. Infer the filetype if ending on {.pdf, .png, .svg}.

Returns:
figFigure

Returns Figure object.

le_c: ndarray

List of leading edge features. If ES is positive, these are the top ranked features. If ES is negative, these are the bottom ranked features.