scFates.tl.simplify

Contents

scFates.tl.simplify#

scFates.tl.simplify(adata, n_nodes=10, copy=False)#

While keeping nodes defining forks and tips (milestones), reduce the number of nodes composing the segments.

This can be helpful to simplify visualisations.

Parameters:
adata AnnData

Annotated data matrix.

n_nodes int (default: 10)

Number of nodes to keep per segments in between milestone nodes.

copy bool (default: False)

Return a copy instead of writing to adata.

Returns:

adata : anndata.AnnData Dataset with simplified graph.