annotate_cell_state#
- scdiffeq.tools._annotate_cell_state.annotate_cell_state(adata_sim: AnnData, kNN: kNN, obs_key: str = 'state', use_key: str = 'X', silent: bool = False) None[source]#
Use a kNN Graph to annotate simulated cell states.
- Parameters:
adata_sim (AnnData) – Simulated data object in the format of
anndata.AnnData, the (annotated) single-cell data matrix of shapen_obs × n_vars. Rows correspond to cells and columns to genes. For more: [1](https://anndata.readthedocs.io/en/latest/).kNN (kNN) – k-nearest neighbor graph.
obs_key (str, optional) – Observation key. Default is “state”.
use_key (str, optional) – Key to use for the basis. Default is “X”.
silent (bool, optional) – If True, suppresses informational messages. Default is False.
- Return type:
None
References