counts: Get the abundance counts.

Description Usage Arguments Value See Also Examples

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(), sequences(), taxa.names(), taxa.ranks(), taxonomy()

Examples

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

rbiom documentation built on Nov. 5, 2021, 9:11 a.m.