setroot: Orient the tree by setting up the root

Description Usage Arguments Value

View source: R/crestree.functions.R

Description

Assign root, pseudotime and segment to each principal point of the tree

Usage

1
setroot(r, root = NULL, plot = TRUE)

Arguments

r

pptree object

root

root principal point (plotppt(tips=TRUE,..) can be used to visualize candidate tips for a root)

Value

modified ppt.tree object with new fields r$pp.info (estimated pseudotime and branch of principal points), r$pp.segments (segments information), r$root (root id).


hms-dbmi/crestree documentation built on July 11, 2019, 8:04 p.m.