spapros.pl.confusion_matrix
- spapros.pl.confusion_matrix(set_ids, conf_matrices, ordered=True, show=True, save=False, size_factor=6, fontsize=18, n_cols=3, rotate_x_labels=True)
Plot heatmap of cell type classification confusion matrices.
- Parameters:
set_ids (List[str]) – List of probe set ids.
conf_matrices (Dict[str, DataFrame]) – Confusion matrix of each probe set given in
set_ids
.ordered (Union[bool, list]) – bool or list If set to True a linkage clustering is computed to order cell types together that are hard to distinguish. If multiple set_ids are provided the same order is applied to all of them. Alternatively provide a list with a custom order.
show (bool) – Show the figure.
save (Union[Literal[False], str]) – If True or a str, save the figure.
size_factor (float) – Factor for scaling the figure size.
fontsize (int) – Matplotlib fontsize.
n_cols (int) – Number of subplot columns.
rotate_x_labels (bool) – Rotate the xticklabels by 45 degrees.
- Return type:
None