aggFeatures: Aggregates counts by level

View source: R/aggreg_norm_functions.R

aggFeaturesR Documentation

Aggregates counts by level

Description

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

Usage

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

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


zoecastillo/microbiomeExplorer documentation built on Sept. 11, 2022, 7:40 a.m.