dominant_taxa: Dominant Taxa

View source: R/dominant_taxa.R

dominant_taxaR Documentation

Dominant Taxa

Description

Identify dominant taxa in each sample and give overview.

Usage

dominant_taxa(x, level = NULL, group = NULL)

Arguments

x

phyloseq-class object

level

Taxonomic level uses microbiome::aggregate_taxa

group

Provide overview by groups. Default=NULL

Details

Identifies the dominant taxa in each sample and gives an overview of frequency and percent sample that are dominated by each taxon. Can be group wise or overall.

Value

A list of two data frames/tibbles

Examples

library(microbiomeutilities)
library(dplyr)
data("zackular2014")
p0 <- zackular2014
x.d <- dominant_taxa(p0, level = "Genus", group = "DiseaseState")
head(x.d$dominant_overview)

microsud/microbiomeutilities documentation built on Nov. 29, 2022, 12:18 a.m.