scFates.tl.attach_tree¶
- scFates.tl.attach_tree(adata, adata_branch, linkage=None)¶
Attach a tree to another!
Given that the datasets were initially processed together.
- Parameters
- adata :
AnnData
Annotated data matrix.
- adata_branch :
AnnData
Annotated data matrix containing cells and tree to attach to the adata.
- linkage :
None
|tuple
Optional
[tuple
] (default:None
) Force the attachment of the two tree between two respective milestones (main tree, branch), the adjacency matrix will not be updated.
- adata :
- Returns
adata – combined dataset with the following merged tree fields:
- .uns[‘graph’][‘B’]
merged adjacency matrix of the principal points.
- .uns[‘graph’][‘R’]
merged updated soft assignment of cells to principal point in representation space.
- .uns[‘graph’][‘F’]
merged coordinates of principal points in representation space.
- Return type