Constructs a multifurcating trajectory using the pseudotime values of each cell and their end state probabilities. If pseudotime values are not given, will use pseudotime already present in the model.

add_end_state_probabilities(model, end_state_probabilities,
  pseudotime = NULL, do_scale_minmax = TRUE, ...)

Arguments

model

The model to which a multifurcating trajectory will be added.

end_state_probabilities

A dataframe containing cell_id (character) and additional numeric columns containing the probability for every end milestone. If the data_frame contains only a cell_id column, the data will be processed using add_linear_trajectory

pseudotime

A named vector of pseudo times.

do_scale_minmax

Whether or not to scale the pseudotime between 0 and 1. Otherwise, will assume the values are already within that range.

...

Extras to be added to the model

Value

The trajectory model

Details

This function will generate the milestone_network and progressions.