TreeIndex: create a new TreeIndex object

Description Usage Arguments Value Examples

View source: R/TreeIndex-class.R

Description

create a new TreeIndex object

Usage

1
TreeIndex(hierarchy = NULL, feature_order = NULL)

Arguments

hierarchy

hierarchy as a data.table

feature_order

order of the tree if different from colnames

Value

a 'TreeIndex' object

Examples

1
2
3
4
5
library(metagenomeSeq)
data(mouseData)
counts <- MRcounts(mouseData)
hierarchy <- fData(mouseData)
tree <- TreeIndex(hierarchy)

jkanche/TreeSE documentation built on Oct. 1, 2021, 8:31 p.m.