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

View source: R/calculate_trajectory_dimred.R

calculate_trajectory_dimredR Documentation

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)

Arguments

trajectory

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

adjust_weights

Whether or not to rescale the milestone network weights

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)

See Also

wrap_data()

Examples

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


dynwrap documentation built on July 26, 2023, 5:15 p.m.