decoupler.bm.pl.qrank#
- decoupler.bm.pl.qrank(df, hue=None, palette='tab20', thr_rank=0.5, thr_pval=0.05, **kwargs)#
Plot 1-qrank and p-value.
x-axis represent the one minus the quantile normalized ranks for the sources that belong to the ground truth. The closer to 1 the better performance is.
y-axis represents the p-value (-log10) obtained after performing a Ranksums test between the quantile normalized ranks of the sources that belong to the ground truth against the sources that do not. The higher value the better performance is.
- Parameters:
- df
DataFrame Result of
decoupler.bm.benchmark.- hue
str|None(default:None) Grouping variable that will produce different colors.
- palette
str(default:'tab20') Method for choosing the colors to use
- thr_rank
float(default:0.5) Dashed line to indicate baseline of ranks.
- thr_pval
float(default:0.05) Dashed line to indicate baseline of p-values.
- ax
An existing
matplotlib.axes._axes.Axesinstance to plot on. IfNone, a new figure and axes will be created.- figsize
Size of the figure in inches as (width, height).
- dpi
Dots per inch for the figure resolution.
- return_fig
If
True, plotting methods should return the figure object instead of showing it.- save
If set, path to save the plot automatically to a file.
- df
- Return type:
- Returns:
If
return_fig=True, returnsmatplotlib.figure.Figureinstance.