Learn R Programming

SLICER (version 0.2.0)

process_distance: Determine the position of each cell within the trajectory

Description

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.

Usage

process_distance(traj_graph, start)

Arguments

traj_graph

Nearest neighbor graph built from LLE embedding

start

Index of starting cell

Value

Vector of distances

Examples

Run this code
# 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)
start = 1
dists = process_distance(traj_graph,start)
# }

Run the code above in your browser using DataLab