This function will generate the milestone_network and progressions.

add_dimred_projection(model, milestone_ids = NULL, milestone_network,
  dimred, dimred_milestones, grouping = NULL, ...)

Arguments

model

The model to which the trajectory will be added.

milestone_ids

The ids of the milestones in the trajectory. Type: Character vector.

milestone_network

The network of the milestones. Type: Data frame(from = character, to = character, length = numeric, directed = logical).

dimred

The dimensionality reduction matrix (with cell_ids as rownames) or function which will run the dimensionality reduction

dimred_milestones

An optional dimensionality reduction of the milestones.

grouping

A grouping of the cells, can be a named vector or a dataframe with group_id (character) and cell_id (character)

...

extra information to be stored in the wrapper.

Value

The trajectory model