aggFeatures: Aggregates counts by level

Description Usage Arguments Value Examples

View source: R/aggreg_norm_functions.R

Description

This function aggregates counts by a level specified in the featureData slot of the MRexperiment object.

Usage

1
aggFeatures(MRobj, level = NULL, sort = TRUE)

Arguments

MRobj

An MRexperiment object.

level

Level to aggregate over. If NULL, no aggregation occurs.

sort

boolean determining if resulting aggregated MRexperiment should be sorted based on rowSums; default is TRUE

Value

Aggregated MRexperiment object or matrix depending on out.

Examples

1
2
data("mouseData", package = "metagenomeSeq")
aggFeatures(mouseData, level = "genus")

microbiomeExplorer documentation built on Nov. 8, 2020, 8:16 p.m.