Description Usage Arguments Value Examples
This function uses geodesic entropy to automatically determine the number and location of branches in the trajectory. Each cell is then assigned to the corresponding branch.
1 2 | assign_branches(traj_graph, start, min_branch_len = 10,
cells = V(traj_graph))
|
traj_graph |
Nearest neighbor graph built from LLE embedding |
start |
Index of start cell |
min_branch_len |
Minimum number of cells required to call a branch |
cells |
List of indices indicating which cells to assign to branches (used for recursive calls; not intended to be set by users). |
Vector of integers assigning each cell to a branch
1 2 3 4 5 6 7 8 | ## Not run:
traj_lle = lle::lle(traj[,genes],m=2,k)$Y
traj_graph = conn_knn_graph(traj_lle,5)
start=1
branches = assign_branches(traj_graph,start)
plot(traj_lle,pch=16,col=branches)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.