popv.visualization.make_agreement_plots#
- popv.visualization.make_agreement_plots(adata, prediction_keys, popv_prediction_key='popv_prediction', save_folder=None, show=True)[source]#
Create plot of confusion matrix for different popv methods and consensus prediction.
- Parameters:
adata – AnnData object.
prediction_keys (
list) – List with key for methods for which confusion matrix is computed.popv_prediction_key (
str|None(default:'popv_prediction')) – Key in adata.obs for consensus prediction.save_folder (
str|None(default:None)) – Path to a folder for storing the plot. Defaults to None and plot is not stored.show (
bool(default:True)) – If True, the plot will be shown in the console. If False, the plot will not be shown.
- Returns:
Returns axis of corresponding plot.