scdef.pl.factors_bars ¶
factors_bars(model: scDEF, obs_keys: Union[str, List[str]], sort_layer_factors: bool = True, orders: Optional[List[ndarray]] = None, sharey: bool = True, layers: Optional[List[int]] = None, vmax: Optional[float] = None, vmin: Optional[float] = None, fontsize: int = 12, title_fontsize: int = 12, legend_fontsize: int = 8, figsize: Tuple[float, float] = (10, 4), total: bool = False, show: bool = True) -> None
Plot factor scores as bar charts.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
model
|
scDEF
|
scDEF model instance |
required |
obs_keys
|
Union[str, List[str]]
|
observation keys to plot |
required |
sort_layer_factors
|
bool
|
whether to sort factors by layer |
True
|
orders
|
Optional[List[ndarray]]
|
custom factor orders |
None
|
sharey
|
bool
|
whether to share y-axis across subplots |
True
|
layers
|
Optional[List[int]]
|
which layers to plot |
None
|
vmax
|
Optional[float]
|
maximum value for y-axis |
None
|
vmin
|
Optional[float]
|
minimum value for y-axis |
None
|
fontsize
|
int
|
font size for labels |
12
|
title_fontsize
|
int
|
title font size |
12
|
legend_fontsize
|
int
|
legend font size |
8
|
figsize
|
Tuple[float, float]
|
figure size |
(10, 4)
|
total
|
bool
|
whether to plot total scores |
False
|
show
|
bool
|
whether to show the plot |
True
|