grassp.pl.annotation_violin#
- annotation_violin(data, gt_col, pred_col, ax=None, **kwargs)[source]#
Violin plot of annotation confidence, grouped by ground-truth compartment.
- Parameters:
- data
AnnData AnnData object.
- gt_col
str Observation column with ground-truth labels.
- pred_col
str Annotation prefix, as for
annotation_marker_df().- ax Axes | None
- data
- Return type:
Axes