Learn R Programming

clonevol (version 0.99.11)

merge.clone.trees: Merge clonnal evolution trees from multiple samples into a single tree

Description

Merge a list of clonal evolution trees (given by the clonal evolution tree data frames) in multiple samples into a single clonal evolution tree, and label the leaf nodes (identified in individual tree) with the corresponding samples in the merged tree.

Usage

# S3 method for clone.trees
merge(trees, samples = NULL, sample.groups = NULL,
  merge.similar.samples = FALSE)

Arguments

trees:

a list of clonal evolution trees' data frames

samples:

name of samples that will be used in node labels

sample.groups:

named vector of sample grouping

merge.similar.samples:

drop a sample if there is already another sample with the same tree