scFates.tl.cleanup#
- scFates.tl.cleanup(adata, minbranchlength=3, leaves=None, copy=False)#
Remove spurious branches from the tree.
- Parameters:
- Returns:
adata : anndata.AnnData if copy=True it returns or else add fields to adata:
- .uns[‘graph’][‘B’]
subsetted adjacency matrix of the principal points.
- .uns[‘graph’][‘R’]
subsetted updated soft assignment of cells to principal point in representation space.
- .uns[‘graph’][‘F’]
subsetted coordinates of principal points in representation space.