convert_progressions_to_milestone_percentages: Conversion between milestone percentages and progressions

View source: R/convert_progressions_to_milestone_percentages.R

convert_progressions_to_milestone_percentagesR Documentation

Conversion between milestone percentages and progressions

Description

Conversion between milestone percentages and progressions

Usage

convert_progressions_to_milestone_percentages(
  cell_ids,
  milestone_ids,
  milestone_network,
  progressions
)

Arguments

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).

Value

A data frame with columns cell_id, milestone_id, and percentage.

See Also

add_trajectory(), convert_milestone_percentages_to_progressions()

Examples

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)


dynwrap documentation built on July 26, 2023, 5:15 p.m.