SampleGroup.barplot#

SampleGroup.barplot(assay: str = 'dna', sample_order: Optional[list] = None, label_order: Optional[list] = None, percentage=False)#

Draws a bar plot of label counts for each sample

Parameters
assay:

The assay whose labels are selected. One of {“dna”, “cnv”, “protein”, “rna”}.

sample_orderlist-like

The order in which the samples are to be ordered. If None, then an arbitrary order is drawn. A subset of the samples can also be provided

label_orderlist-like

The order in which the labels are to be ordered. If None, then an arbitrary order is drawn. A subset of the labels can also be provided

percentagebool

Whether the proportion should be shown as a percentage of total cells or the count of the cells

Returns
figplotly.graph_objs.figure
Raises
ValueError

If one of the given samples or labels is not found in the assay