taxa_rollup: Roll up data to a specified taxonomic level

Description Usage Arguments Details Value Author(s) Examples

Description

This function rolls up data to the specified taxonomic level so that statistics may be calculated at various taxonomic levels.

Usage

1
taxa_rollup(omicsData, level, taxa_levels = NULL)

Arguments

omicsData

an object of the class 'seqData' created by as.seqData.

level

taxonomic level to roll up to.

taxa_levels

The levels of taxonomy (or other e_meta object) which might be used in the roll up. If NULL, will use c("Kingdom","Phylum","Class","Order","Family","Genus","Species"), in that order. Default is NULL.

Details

Data will be rolled (summed) up to a specified taxonomic level. For example, data at the OTU level could be rolled (summed) up to the Genus level before statistics are computed.

Value

A seqData object of the same class as the input, where e_data and e_meta are rolled up to the specified level.

Author(s)

Allison Thompson

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
## Not run: 
library(mintJansson)
data(rRNA_data)

rRNA_split <- split_emeta(rRNA_data)

rRNA_rollup <- taxa_rollup(omicsData = rRNA_split, level = "Phylum")

dim(rRNA_rollup$e_data)
attributes(rRNA_rollup)

## End(Not run)

pmartR/pmartRseq documentation built on May 25, 2019, 9:20 a.m.