Learn R Programming

dynwrap (version 1.2.4)

gather_cells_at_milestones: Gather cells to their closest milestones

Description

Cells will be moved to their closest milestones.

Usage

gather_cells_at_milestones(trajectory)

Value

A trajectory where cells where moved to the closest milestone, the milestone_percentages and progressions will be adapated.

Arguments

trajectory

The trajectory as created by infer_trajectory() or add_trajectory()

Examples

Run this code
trajectory <- example_trajectory
trajectory <- gather_cells_at_milestones(trajectory)
head(trajectory$milestone_percentages)

Run the code above in your browser using DataLab