ScanproResults class
A class containing the results of a scanpro analysis
- class ScanproResult
Bases:
object- plot(kind='stripplot', clusters=None, n_columns=3, figsize=None, show=True, verbosity=1, save=False)
Plot proportions pro condition for all comparisons
- Parameters:
kind (str) – Kind of plot (stripplot, barplot and boxplot), defaults to ‘stripplot’
clusters (list or str) – Specify clusters to plot, if None, all clusters will be plotted, defaults to None
n_columns (int) – Number of columns in the figure, defaults to 3
figsize (tuple) – Figure size, defaults to None (size is automatic)
show (bool) – If True, the plot is shown, defaults to True
save (str) – Path to save plot, add extension at the end e.g. ‘path/to/file.png’, defaults to False
verbosity (int) – Verbosity level, defaults to 1
- Return list:
List of axes if show is False
- plot_samples(stacked=True, x='samples', save=False)
Plot proportions of clusters pro sample
- Parameters:
stacked (bool) – If True, a stacked bar plot is plotted, defaults to True
x (str) – Specifies if clusters or samples are plotted as x axis, defaults to ‘samples’
save (str) – Path to save plot, add extension at the end e.g. ‘path/to/file.png’, defaults to False