R/readcount.R

Defines functions readcount

Documented in readcount

#' @title Total Read Count
#' @description Total Read Count
#' @param x \code{\link{phyloseq-class}} object
#' @return Vector of read counts.
#' @examples
#' data(dietswap)
#' d <- readcount(dietswap)
#' @export
#' @references See citation('microbiome') 
#' @author Contact: Leo Lahti \email{microbiome-admin@@googlegroups.com}
#' @keywords utilities
readcount <- function(x) {

    colSums(abundances(x))
    
}

Try the microbiome package in your browser

Any scripts or data that you put into this service are public.

microbiome documentation built on Nov. 8, 2020, 5:08 p.m.