R/wrap_add_end_state_probabilities.R
add_end_state_probabilities.Rd
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, ...)
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 |
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 |
The trajectory model
This function will generate the milestone_network and progressions.