Description Usage Arguments Details Value Examples
For BIOM objects representing OTU tables, this function will extract the taxonomy for each OTU. The taxonomy info is typically stored in an attribute of the row metadata named "taxonomy".
1 | biom_taxonomy(b, attr = "taxonomy")
|
b |
A BIOM object. |
attr |
The metadata attribute under which the taxonomy information can be found for each row item in the biom file. |
This function may be used more generally to extract metadata from rows in a
BIOM object. The attr
argument may be adjusted to match the desired
attribute name. If the metadata has a nested structure, a character vector
may be supplied to the attr
argument.
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.
A list of character vectors, one per row.
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.