scdef.pl.multilevel_paga ¶
multilevel_paga(model: scDEF, neighbors_rep: Optional[str] = 'X_L0', layers: Optional[List[int]] = None, figsize: Optional[Tuple[float, float]] = (16, 4), reuse_pos: Optional[bool] = True, recompute: bool = False, fontsize: Optional[int] = 12, show: Optional[bool] = True, **paga_kwargs: Any) -> None
Plot cached multilevel PAGA graphs across scDEF layers.
Draws the result cached by scdef.tl.multilevel_paga, one panel
per layer. If the cache is missing or was built with different settings, it is
recomputed automatically.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
model
|
scDEF
|
fitted scDEF model. |
required |
neighbors_rep
|
Optional[str]
|
|
'X_L0'
|
layers
|
Optional[List[int]]
|
layer indices to draw, coarsest first. Defaults to every layer with more than one factor. |
None
|
figsize
|
Optional[Tuple[float, float]]
|
size of the whole figure, spanning all panels. |
(16, 4)
|
reuse_pos
|
Optional[bool]
|
carry each layer's layout into the next finer one, so groups stay in comparable positions across panels. |
True
|
recompute
|
bool
|
force PAGA to be recomputed even when the cache matches. |
False
|
fontsize
|
Optional[int]
|
node label size. |
12
|
show
|
Optional[bool]
|
call |
True
|
**paga_kwargs
|
Any
|
forwarded to |
{}
|