mira.time.get_connected_components#
- mira.time.get_connected_components(adata, key='X_diffmap_connectivities', *, colname='mira_connected_components')#
Finds subgraphs in diffusion map or KNN graph. Pseudotime inference algorithms may only be calculated on connected graphs.
- Parameters
- adataanndata.AnnData
- connectivities_keystr, default=”X_diffmap_connectivities”
Key under .obsp to find connectivities of nearest neighbors graph used for pseudotime trajectory inference.
- Returns
- adataanndata.AnnData
- .obs[“mira_connected_components”]np.ndarray[str] of shape (n_cells,)
Label for subgraph membership.
Note
This function is part of the mira.time API and works with several others to help users understand lineage structures and dynamic processes in their data. Please refer to the pseudotime trajectory inference tutorial.