convert_milestone_percentages_to_progressions: Conversion between milestone percentages and progressions

View source: R/convert_milestone_percentages_to_progressions.R

convert_milestone_percentages_to_progressionsR Documentation

Conversion between milestone percentages and progressions

Description

Conversion between milestone percentages and progressions

Usage

convert_milestone_percentages_to_progressions(
  cell_ids,
  milestone_ids,
  milestone_network,
  milestone_percentages
)

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

milestone_percentages

A data frame specifying what percentage milestone each cell consists of. Type: Data frame(cell_id = character, milestone_id = character, percentage = numeric).

Value

A data frame with columns cell_id, from, to, percentage.

See Also

add_trajectory(), convert_progressions_to_milestone_percentages

Examples

progressions <- convert_milestone_percentages_to_progressions(
  cell_ids = example_trajectory$cell_ids,
  milestone_ids = example_trajectory$milestone_ids,
  milestone_network = example_trajectory$milestone_network,
  milestone_percentages = example_trajectory$milestone_percentages
)
head(progressions)


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