Cnv.barplot¶
-
Cnv.
barplot
(sample_order=None, label_order=None, percentage=False)¶ Draws a bar plot of label counts for each sample
- Parameters
- 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
- RuntimeError
If the assay object has only one sample
- ValueError
If one of the given samples or labels is not found in the assay