powered by
This function constructs a k-nearest neighbor graph using an LLE embedding, then adds the minimum number of edges needed to make the graph fully connected.
conn_knn_graph(embedding, k)
Low-dimensional LLE embedding of cells
Number of nearest neighbors
An igraph object corresponding to the k-NN graph
# NOT RUN { 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) # }
Run the code above in your browser using DataLab