counts: Get the abundance counts.

Description Usage Arguments Value See Also Examples

View source: R/accessors.r

Description

Get the abundance counts.

Usage

1
counts(biom)

Arguments

biom

A BIOM object, as returned from read.biom.

Value

A numeric matrix of the sample abundance counts in biom.

See Also

Other accessor functions: info, metadata, nsamples, ntaxa, phylogeny, sample.names, taxa.names, taxa.ranks, taxonomy

Examples

1
2
3
4
5
6
    library(rbiom)
    
    infile <- system.file("extdata", "hmp50.biom", package = "rbiom")
    biom <- read.biom(infile)
    
    counts(biom)[1:4,1:5]

cmmr/rbiom documentation built on Nov. 21, 2018, 10:04 a.m.