spapros.se.ProbesetSelector.plot_explore_constraint
- ProbesetSelector.plot_explore_constraint(selection_method='pca_selection', selection_params=None, background_key='highly_variable', x_axis_key='quantile_0.99', penalty_kernels=None, factors=None, upper=1, lower=0, **kwargs)
Plot histogram of quantiles for selected genes for different penalty kernels.
- Parameters:
selection_method (str) –
Selection method to explore. Available are:
”pca_selection”
”DE_selection”
”marker”
selection_params (dict) – Hyperparameter for the respective gene selection.
background_key (str) – Key of column in
adata.varcontaining the values to be plottet as background.x_axis_key (str) – Key of column in
adata.varcontaining the values to be plottet.penalty_kernels (List[Callable]) – Any penalty kernel. If None,
plateau_penalty_kernel()is used to create three gaussian plateau penalty kernels with different variances. Only then,factors,,lowerandupperare used.factors (List[float]) – Factors for the variance for creating a gaussian penalty kernel.
lower (float) – Lower border above which the kernel is 1.
upper (float) – Upper boder below which the kernel is 1.
**kwargs – Further arguments for
explore_constraint().
- Returns:
Figure can be shown (default True) and stored to path (default None). Change this with show and save in
kwargs.