Description Usage Arguments Value Examples
Plots the embedding generated by LLE and highlights potential starting cells for the trajectory. The candidates are chosen based on the longest shortest path through the nearest neighbor graph.
1 | find_extreme_cells(traj_graph, embedding)
|
traj_graph |
Nearest neighbor graph built from LLE embedding |
embedding |
Low-dimensional LLE embedding of cells |
Indices of potential starting cells
1 2 3 4 5 6 | 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)
find_extreme_cells(traj_graph,traj_lle)
|
finding neighbours
calculating weights
computing coordinates
[1] 22 30
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.