phlower.tl.tree_branches_smooth_window

phlower.tl.tree_branches_smooth_window(adata: AnnData, start_branching_node: str = '', end_branching_node: str = '', tree_attr: str = 'original', fate_tree: str = 'fate_tree', smooth_window_ratio: float = 0.1)

|–O———–O—–a | |

>>>>|ab

|>>O>>>>>>>>>>>>>>>>>>>>O>>>>b

start_branching_node is ab end_branching_node is b the function would traverse all nodes(bins) from ab to b (path:>>>>) average the expression of the each nodes by cells presented in this node. next smooth the by a smooth_window_ratio * len(number of bins)

Parameters

adata: AnnData

AnnData object with gene expression or TF binding data

start_branching_node: str

the name of the start branching node, if “”, use the lastest branching node

end_branching_node: str

the name of the end branching node

fate_tree: str

the name of the fate tree

smooth_window_ratio: float

the ratio of the smooth window