forked from yiluheihei/microbiomeMarker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
aggregate_taxa.Rd
39 lines (37 loc) · 1018 Bytes
/
aggregate_taxa.Rd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/aggregate-taxa.R
\name{aggregate_taxa}
\alias{aggregate_taxa}
\title{Aggregate Taxa}
\usage{
aggregate_taxa(x, level, verbose = FALSE)
}
\arguments{
\item{x}{\code{\link{phyloseq-class}} object}
\item{level}{Summarization level (from \code{rank_names(pseq)})}
\item{verbose}{verbose}
}
\value{
Summarized phyloseq object
}
\description{
Summarize phyloseq data into a higher phylogenetic level.
}
\details{
This provides a convenient way to aggregate phyloseq OTUs
(or other taxa) when the phylogenetic tree is missing. Calculates the
sum of OTU abundances over all OTUs that map to the same higher-level
group. Removes ambiguous levels from the taxonomy table. Returns a
phyloseq object with the summarized abundances.
}
\examples{
data(caporaso)
caporaso_phylum <- aggregate_taxa(caporaso, "Phylum")
}
\references{
See citation('microbiome')
}
\author{
Contact: Leo Lahti \email{microbiome-admin@googlegroups.com}
}
\keyword{utilities}