The Biological Observation Matrix (BIOM) format¶
The BIOM file format (canonically pronounced biome) is designed to be a general-use format for representing biological sample by observation contingency tables. BIOM is a recognized standard for the Earth Microbiome Project and is a Genomics Standards Consortium supported project.
The BIOM format is designed for general use in broad areas of comparative -omics. For example, in marker-gene surveys, the primary use of this format is to represent OTU tables: the observations in this case are OTUs and the matrix contains counts corresponding to the number of times each OTU is observed in each sample. With respect to metagenome data, this format would be used to represent metagenome tables: the observations in this case might correspond to SEED subsystems, and the matrix would contain counts corresponding to the number of times each subsystem is observed in each metagenome. Similarly, with respect to genome data, this format may be used to represent a set of genomes: the observations in this case again might correspond to SEED subsystems, and the counts would correspond to the number of times each subsystem is observed in each genome.
The BIOM project consists of the following components:
command line interface (CLI) for working with BIOM files, including converting between file formats, adding metadata to BIOM files, and summarizing BIOM files (run
biom
to see the full list of commands);application programming interface (API) for working with BIOM files in multiple programming languages (including Python and R).
The biom-format
package provides a command line interface and Python API for working with BIOM files. The rest of this site contains details about the BIOM file format (which is independent of the API) and the Python biom-format
package. For more details about the R API, please see the bioconductor biomformat package.
Projects using the BIOM format¶
If you are using BIOM in your project, and would like your project to be listed, please submit a pull request to the BIOM project. More information on submitting pull requests can be found here.
Contents¶
BIOM version¶
The latest official version of the biom-format project is 2.1.16 and of the BIOM file format is 2.1. Details on the file format can be found here.
Installing the biom-format
Python package¶
To install the latest release of the biom-format
Python package:
pip install numpy
pip install biom-format
To work with BIOM 2.0 files:
pip install h5py
To see a list of all biom
commands, run:
biom
To enable Bash tab completion of biom
commands, add the following line to $HOME/.bashrc
(if on Linux) or $HOME/.bash_profile
(if on Mac OS X):
eval "$(_BIOM_COMPLETE=source biom)"
Citing the BIOM project¶
You can cite the BIOM format as follows (link):
Development team¶
The biom-format project was conceived of and developed by the QIIME, MG-RAST, and VAMPS development groups to support interoperability of our software packages. If you have questions about the biom-format project please post them on the QIIME Forum.