biom_raw_data: Extract raw data from a BIOM object.

Description Usage Arguments Details Value Examples

Description

This function extracts the raw data from a BIOM object, using the correct row and column names in the result.

Usage

1

Arguments

b

A BIOM object.

Details

The BIOM object can be any list-like representation of the JSON source code in a BIOM-format file produced by QIIME. There are several options for creating BIOM objects from QIIME output files. The official library for BIOM files, biom, can create compatible objects via the read_biom function. Alternately, the fromJSON function from either RJSONIO or rjson may be used.

Value

For sparse biom objects, returns a 3-column data frame of row names, column names, and the data value. The first column is named using the first word in the BIOM object's type attribute (e.g. "OTU" for OTU tables). The second and third columns are named "SampleID" and "value", respectively. For dense biom objects, returns a matrix.

Examples

1
2

Example output

      OTU SampleID value
1 denovo0       C1     1
2 denovo0       D5     2
3 denovo0       D3     3
4 denovo0       C3     3
5 denovo0       C5     6
6 denovo0       C4     2

qiimer documentation built on May 2, 2019, 6 a.m.