Cnv.plot_ploidy

Cnv.plot_ploidy(cluster, features=None)

Plots the ploidy of the cluster

Parameters
clusterstr

Barcodes belonging to this label will be fetched for the plot.

featureslist-like / {‘genes’} default: None

The features which are to be plotted. If None, then all the amplicons are plotted. This attribute can be used to change the order of the amplicons.

If ‘genes’, then the amplicons are collapsed to their gene level.

Raises
ValueError:

When the cluster is not found in the labels

RuntimeError:

If ploidy is not found in the layers. Cnv.compute_ploidy() has to be executed before running this method.