decoupler.plot_violins
- decoupler.plot_violins(mat, thr=None, log=False, use_raw=False, figsize=(7, 5), dpi=100, ax=None, title=None, ylabel=None, color='#1F77B4', return_fig=False, save=None)
Plot distribution of features’ values per sample.
- Parameters:
- matlist, DataFrame or AnnData
List of [features, matrix], dataframe (samples x features) or an AnnData instance.
- thrfloat
Threshold to plot horizontal line.
- logbool
Whether to log1p the data or not.
- use_rawbool
Use raw attribute of mat if present.
- figsizetuple
Figure size.
- dpiint
DPI resolution of figure.
- axAxes, None
A matplotlib axes object. If None returns new figure.
- titlestr
Text to write as title of the plot.
- ylabelstr
Text to write as ylabel of the plot.
- colorstr
Color to plot the violins.
- return_figbool
Whether to return a Figure object or not.
- savestr, None
Path to where to save the plot. Infer the filetype if ending on {
.pdf
,.png
,.svg
}.
- Returns:
- figFigure, None
If return_fig, returns Figure object.