View source: R/convert_progressions_to_milestone_percentages.R
convert_progressions_to_milestone_percentages | R Documentation |
Conversion between milestone percentages and progressions
convert_progressions_to_milestone_percentages(
cell_ids,
milestone_ids,
milestone_network,
progressions
)
cell_ids |
The identifiers of the cells. |
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). |
progressions |
Specifies the progression of a cell along a transition in the milestone_network. Type: Data frame(cell_id = character, from = character, to = character, percentage = numeric). |
A data frame with columns cell_id
, milestone_id
, and percentage
.
add_trajectory()
, convert_milestone_percentages_to_progressions()
milestone_percentages <- convert_progressions_to_milestone_percentages(
cell_ids = example_trajectory$cell_ids,
milestone_ids = example_trajectory$milestone_ids,
milestone_network = example_trajectory$milestone_network,
progressions = example_trajectory$progressions
)
head(milestone_percentages)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.