doubletdetection.plot.threshold#
- doubletdetection.plot.threshold(clf, show=False, save=None, log10=True, log_p_grid=None, voter_grid=None, v_step=2, p_step=5)[source]#
- Produce a plot showing number of cells called doublet across
various thresholds
- Parameters
clf (BoostClassifier object) – Fitted classifier
show (bool, optional) – If True, runs plt.show()
save (str, optional) – If provided, the figure is saved to this filepath.
log10 (bool, optional) – Use log 10 if true, natural log if false.
log_p_grid (ndarray, optional) – log p-value thresholds to use. Defaults to np.arange(-100, -1). log base decided by log10
voter_grid (ndarray, optional) – Voting thresholds to use. Defaults to np.arange(0.3, 1.0, 0.05).
p_step (int, optional) – number of xlabels to skip in plot
v_step (int, optional) – number of ylabels to skip in plot
- Returns
matplotlib figure