scdef.pl.factor_genes ¶
factor_genes(model: scDEF, thres: float = 0.9, show: bool = True) -> Optional[Figure]
Plot number of genes in factors across layers.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
model
|
scDEF
|
scDEF model instance |
required |
thres
|
float
|
threshold for cumulative sum calculation |
0.9
|
show
|
bool
|
whether to show the plot |
True
|
Returns:
| Type | Description |
|---|---|
Optional[Figure]
|
Figure object if show is False, None otherwise |