scFates.tl.dendrogram

scFates.tl.dendrogram(adata, crowdedness=1, n_jobs=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 – 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.

Return type

anndata.AnnData