Description Usage Arguments Value Examples
This function calculates the geodesic distance from the start cell to each other cell. This value corresponds to the distance a cell has migrated through the process described by the cell trajectory.
| 1 | process_distance(traj_graph, start)
 | 
| traj_graph | Nearest neighbor graph built from LLE embedding | 
| start | Index of starting cell | 
Vector of distances
| 1 2 3 4 5 6 7 | genes=1:200
cells=sample(1:500,30)
k=10
traj_lle = lle::lle(traj[cells,genes],m=2,k)$Y
traj_graph = conn_knn_graph(traj_lle,5)
start = 1
dists = process_distance(traj_graph,start)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.