scdef.tl.annotate_factors ¶
annotate_factors(model: scDEF, annotations: Mapping[str, str]) -> DataFrame
Attach descriptive annotations to factors in adata.uns['factor_obs'].
Annotations are stored in the annotation column of factor_obs, keyed
by the resolved factor rows (see _resolve_factor_obs_names). Factor
names may be current model names (e.g. L0_4) even after filtering.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
model
|
scDEF
|
scDEF model instance. |
required |
annotations
|
Mapping[str, str]
|
mapping |
required |
Returns:
| Type | Description |
|---|---|
DataFrame
|
Updated |