View source: R/getPrevalence.R
getPrevalence | R Documentation |
Get Prevalence and Taxonomy
getPrevalence(
x,
return_rank = rank_names(x),
return_taxa = taxa_names(x),
sort = TRUE,
...
)
x |
A phyloseq object |
return_rank |
Specify which taxonomic ranks to include in output.
Must be a character vector |
return_taxa |
A specific list of taxa for which the values should
be returned. This can be used if user is not interested
in all the taxa in input |
sort |
Logical. Sort by prevalence value from higher to lower (Default=TRUE) |
... |
Option to pass microbiome::prevalence |
Get the prevalence of taxa in phyloseq
objects
along with taxonomic classification.
A tibble with prevalence and taxonomy
Sudarshan A. Shetty
A Salonen et al. (2012) The adult intestinal core microbiota is determined by analysis depth and health status. Clinical Microbiology and Infection, 18(S4):16 20. https://doi.org/10.1111/j.1469-0691.2012.03855.x
Lahti L, Shetty S (2012-2019). microbiome R package. statistical aspects of the study of the microbiome. BioConductor. https://doi.org/doi:10.18129/B9.bioc.microbiome
library(biomeUtils)
data("FuentesIliGutData")
prev_tib <- getPrevalence(FuentesIliGutData,
return_rank = c("Family", "Genus"),
return_taxa = c("ASV4", "ASV17", "ASV85", "ASV83"),
sort = TRUE
)
head(prev_tib)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.