scFates.tl.dendrogram

Contents

scFates.tl.dendrogram#

scFates.tl.dendrogram(adata, crowdedness=1)#

Generate a single-cell dendrogram embedding.

This representation aims in simplifying and abstracting the view of the tree, it follows URD style represenation of the cells.

Parameters:
adata AnnData

Annotated data matrix.

crowdedness float (default: 1)

will influence the repartition of the cells along the segments.

Returns:

adata : anndata.AnnData if copy=True it returns or else add fields to adata:

.obs[‘X_dendro’]

new embedding generated.

.uns[‘dendro_segments’]

tree segments used for plotting.