Cnv.ridgeplot

Cnv.ridgeplot(attribute, splitby=None, features=None, title='')

Ridge plot for all barcodes.

Parameters
attributestr / np.array

The attribute used to plot the values on the ridgeplot. Uses _Assay.get_attribute() to retrieve the values. constrained by ‘row’.

splitbystr / np.array

The values used to split and color the ridgeplot. Uses _Assay.get_attribute() to retrieve the values. The shape must be (#cells).

  1. None

    The ridgeplot is not colored.

  2. Any 1D attribute

    In case ‘label’ is provided then the stored paltte is used. A discrete color map is used for all other cases.

featureslist-like

In the case that attribute is a layer then features sets the subset of features to plot. Otherwise it sets the name of each feature shown.

titlestr

The title given to the plot after the name of the assay.

Returns
fig: plotly.graph_objects.Figure