Learn R Programming

dynwrap (version 1.2.4)

calculate_trajectory_dimred: Layout the trajectory and its cells in 2 dimensions using a graph layout

Description

Layout the trajectory and its cells in 2 dimensions using a graph layout

Usage

calculate_trajectory_dimred(trajectory, adjust_weights = FALSE)

Value

A list containg

  • milestone_positions: A dataframe containing the milestone_id and the location of each milestone (comp_1 and comp_2)

  • edge_positions: A dataframe containing for each edge (from, to, length and directed columns) the position of the from milestone (comp_1_from and comp_2_from) and to milestone (comp_1_to and comp_2_to).

  • cell_positions: A dataframe containing the cell_id and the ¨location of each cell (comp_1 and comp_2)

  • divergence_edge_positions: A dataframe as edge_positions but for each edge within a divergence

  • divergence_polygon_positions: A dataframe containing the triangle_id and the location of the milestone within a divergence (comp_1 and comp_2)

Arguments

trajectory

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

adjust_weights

Whether or not to rescale the milestone network weights

See Also

wrap_data()

Examples

Run this code
trajectory_dimred <- calculate_trajectory_dimred(example_trajectory)
head(trajectory_dimred$milestone_positions)
head(trajectory_dimred$edge_positions)
head(trajectory_dimred$cell_positions)

Run the code above in your browser using DataLab