This function will generate the milestone_network and progressions.

add_cell_graph(model, cell_graph, to_keep,
  milestone_prefix = "milestone_", ...)

Arguments

model

The model to extend

cell_graph

The edges between cells. Format: Data frame(from = character, to = character, length(optional) = numeric, directed(optional) = logical)

to_keep

A named vector containing booleans containing whether or not a cell is part of the backbone. Or, alternatively a character vector containing the backbone cells

milestone_prefix

A prefix to add to the id of the cell ids when they are used as milestones, in order to avoid any naming conflicts,

...

extra information to be stored in the wrapper.

Value

The trajectory model