Cnv.ridgeplot#
missionbio.mosaic.cnv.Cnv.ridgeplot
- Cnv.ridgeplot(attribute: Union[str, ndarray, DataFrame], splitby: Optional[Union[str, ndarray, DataFrame]] = None, features: Optional[Sequence] = None, title: str = '', labels: Optional[Sequence] = None)#
 Ridge plot for all barcodes.
- Parameters:
 - attributestr / np.ndarray
 The attribute used to plot the values on the ridgeplot. Uses
get_attribute()to retrieve the values. constrained by row.- splitbystr / np.ndarray
 The values used to split and color the ridgeplot. Uses
get_attribute()to retrieve the values. The shape must be (#cells).- None
 The ridgeplot is not colored.
- 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.
- labels: list-like
 The labels in splitby and the order in which these values are shown. If None, then the labels are shown in an arbitrary order.
- Returns:
 - fig: plotly.graph_objects.Figure
 
< Class Cnv