generateTree: Generate Test Trees

Description Usage Arguments Value Author(s) Examples

View source: R/generateTree.R

Description

This function will take several initial trees and will randomly populate new trees based on the originals.

Usage

1
generateTree(data, numReadsPerSamp, theta = NULL, level = "genus", split = ".")

Arguments

data

A data frame in which each column contains the rdp read counts for every taxa given in the row names.

numReadsPerSamp

A vector specifying the number of reads or sequence depth for each sample.

theta

When theta is not NULL the base tree is generated by using the dirmult function.

level

The depth the tree will go down to (kingdom, phylum, class, order, family, genus, species, subspecies).

split

This is the character that separates the taxa levels in the row names.

Value

A data frame containing the generated tree(s).

Author(s)

Patricio S. La Rosa, Elena Deych, Berkley Shands, William D. Shannon

Examples

1
2
3
4
5
6
7
	data(saliva)
	
	### Generate a the number of reads per sample
	### The first number is the number of reads and the second is the number of subjects
	nrs <- rep(10000, 2)
	
	gendata <- generateTree(saliva, nrs)

HMPTrees documentation built on May 2, 2019, 4:02 p.m.