Learn R Programming

clonevol (version 0.99.11)

convert.clone.to.branch: Create a tree from the merged.tree data.frame in clonevol output

Description

Create a branch-based clonal evolution tree from tree data.frame

Usage

convert.clone.to.branch(t, branch.lens = NULL,
  merged.tree.node.annotation = "sample.with.nonzero.cell.frac.ci")

Arguments

t:

merged.tree data frame from clonevol

branch.lens:

named vector of branch lengths, named according to the cluster/clone ID/name. If not provided, all branches will receive a same length

Value

Returns the same data.frame with additional columns, including: $branches --> symbols of the branches corresponding to the clone $blengths --> branch lengths