_Assay.violinplot

_Assay.violinplot#

missionbio.mosaic.assay._Assay.violinplot

_Assay.violinplot(attribute, splitby=None, features=None, title='')#

Violin plot for all barcodes.

Parameters:
attributestr / np.array

The attribute used to plot the values on the violinplot. Uses get_attribute() to retrieve the values. constrained by row.

splitbystr / np.array

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

  1. None

    The violinplot 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:
figplotly.graph_objects.Figure

< Class _Assay