hic3defdr.plotting.fdr module

hic3defdr.plotting.fdr.plot_fdr(eval_results, labels, colors=None, p_alt=None, **kwargs)[source]

Plots an FDR control curve from a list of eval.npz-style results.

Parameters:
  • eval_results (list of dict-like) – The dicts should have keys ‘thresh’ and ‘fdr’ whose values are parallel vectors describing the thresholds and FDRs to use for the FDR control curve. Each dict in the list represents a different FDR control curve which will be overlayed in the plot.
  • labels (list of str) – List of labels parallel to eval_results providing names for each curve.
  • colors (list of valid matplotlib colors, optional) – Colors for each FDR curve. Pass None to automatically assign colors.
  • p_alt (float, optional) – Pass the true proportion of alternative (non-null) points to draw a dashed line representing the optimal BH-FDR control line and shade the zone of successful FDR control. Pass None to draw a dashed line indicating the boundary of successful FDR control.
  • kwargs (kwargs) – Typical plotter kwargs.
Returns:

The axis plotted on.

Return type:

pyplot axis