infer_initial_trajectory: Infer an initial trajectory through space

Description Usage Arguments Value

View source: R/trajectory_inference.R

Description

infer_initial_trajectory infers an initial trajectory for infer_trajectory by clustering the points and calculating the shortest path through cluster centers. The shortest path takes into account the euclidean distance between cluster centers, and the density between those two points.

Usage

1

Arguments

space

A numeric matrix or a data frame containing the coordinates of samples.

k

The number of clusters

Value

the initial trajectory obtained by this method


rcannood/SCORPIUS documentation built on March 18, 2020, 12:18 a.m.