Learn R Programming

dynwrap (version 1.2.4)

simplify_trajectory: Simplify a trajectory by removing transient milestones

Description

  • Milestones that are not a leaf or a branching point are removed: A -> B -> C becomes A -> C

  • Cycles contain at least 3 nodes, ie. A -> B -> A becomes A -> B -> C -> A

  • Loops are converted to a cycle, unless allow_self_loops = TRUE

Usage

simplify_trajectory(trajectory, allow_self_loops = FALSE)

Value

A trajectory object

Arguments

trajectory

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

allow_self_loops

Whether or not to allow self loops.

Details

The positions of the cells within the trajectory remain the same.