phlower.tl.helping_merged_tree
- phlower.tl.helping_merged_tree(adata, fate_tree='fate_tree', start_node='0_0', outname='fate_main_tree', iscopy=False)
- from tree:
|—————
|------------------| | |—— | |————
- ——|--------------|
- to tree:
|------------------|————— | |
- ——|--------------|————
|-------|——————
Parameters
- adata: AnnData
adata object where fate_tree in adata.uns
- fate_tree: str
key of fate_tree in adata.uns
- start_node: str
the node to find the branching point to get all daughter branches at same level
- outname: str
key of the new fate_tree in adata.uns
- iscopy: bool
if True, return a copy of adata, otherwise, inplace