| makePHYLO {AlphaBeta} | R Documentation |
Generating tree pedigree data
makePHYLO(tall, pedigree, sample.info)
tall |
total age of the tree. |
pedigree |
dmatrix file. |
sample.info |
sample info file. |
tree pedigree data file.
## Get some toy data
file1 <- system.file("extdata/soma/","AB-dMatrix-CG-0.99.csv", package="AlphaBeta")
file2 <- system.file("extdata/soma/","sampleInfo.csv", package="AlphaBeta")
d.matrix <- read.table(file1, sep="\t", header=TRUE, stringsAsFactors = FALSE)
sample.info <- read.table(file2, sep="\t", header=TRUE, stringsAsFactors = FALSE)
# in our case, the total age of tree is 330
out <- makePHYLO(tall=330, pedigree = d.matrix, sample.info = sample.info)