project_trajectory {dynwrap}R Documentation

Project a trajectory onto a dimensionality reduction

Description

Project a trajectory onto a dimensionality reduction

Usage

project_trajectory(
  trajectory,
  dimred,
  waypoints = select_waypoints(trajectory),
  trajectory_projection_sd = sum(trajectory$milestone_network$length) * 0.05
)

project_milestones(
  trajectory,
  dimred,
  trajectory_projection_sd = sum(trajectory$milestone_network$length) * 0.05
)

Arguments

trajectory

The trajectory as created by infer_trajectory() or add_trajectory()

dimred

The dimensionality reduction of the cells. A matrix with the positions of cells (rows) in the dimensions (columns)

waypoints

A set of waypoints, which can be created by select_waypoints(). It is a list containing:

  • waypoints: a dataframe containing in the very least the waypoint_id

  • milestone_percentages: the positions of waypoints withing the trajectory

  • geodesic_distances: matrix with precalculated geodesic distances between waypoints (rows) and cells (columns), optional

trajectory_projection_sd

The standard deviation of the gaussian kernel

Value

A list containing

These objects can be given to add_dimred()

See Also

add_dimred()


[Package dynwrap version 1.2.4 Index]