process_distance: Determine the position of each cell within the trajectory

Description Usage Arguments Value Examples

View source: R/SLICER.R

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

1
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

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)

jw156605/SLICER documentation built on May 20, 2019, 5:21 a.m.