Nothing
#' @title Bacteroidetes-Firmicutes Ratio
#' @description Estimates Bacteroidetes-Firmicutes ratio.
#' @inheritParams transform
#' @return Numeric vector (B/F-ratio)
#' @references See citation('microbiome')
#' @author Contact: Leo Lahti \email{microbiome-admin@@googlegroups.com}
#' @export
#' @examples
#' data(dietswap)
#' bf <- bfratio(dietswap)
#' @keywords utilities
bfratio <- function (x) {
a <- transform(aggregate_taxa(x, level = "Phylum"), "compositional")
b <- abundances(a)["Bacteroidetes",]
f <- abundances(a)["Firmicutes",]
b/f
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.