Generate a metabolic reaction network in an anvi'o contigs database.

🔙 To the main page of anvi’o programs and artifacts.


Can consume

contigs-db kegg-functions reaction-ref-data kegg-data

Can provide



This program stores a metabolic reaction-network in a contigs-db.

The network consists of data on biochemical reactions predicted to be encoded by the genome, referencing the KEGG Orthology (KO) and ModelSEED Biochemistry databases.

Information on the predicted reactions and the involved metabolites are stored in two tables of the contigs-db. The program, anvi-get-metabolic-model-file, can be used to export the reaction-network from the database to a reaction-network-json file suitable for inspection and flux balance analysis.


anvi-reaction-network takes a contigs-db as required input. Genes stored within the database must have KO protein annotations, which can be assigned by anvi-run-kegg-kofams.

The KO and ModelSEED Biochemistry databases must be set up and available to the program. By default, these are expected to be set up in default anvi’o data directories. anvi-setup-kegg-data and anvi-setup-modelseed-database must be run to set up these databases.

anvi-reaction-network -c /path/to/contigs-db

Custom locations for the reference databases can be provided with the flags, --ko-dir and --modelseed-dir.

anvi-reaction-network -c /path/to/contigs-db --ko-dir /path/to/set-up/ko-dir --modelseed-dir /path/to/set-up/modelseed-dir

If a contigs-db already contains a reaction-network from a previous run of this program, the flag --overwrite-existing-network can overwrite the existing network with a new one. For example, if anvi-run-kegg-kofams is run again on a database using a newer version of KEGG, then anvi-reaction-network should be rerun to update the reaction-network derived from the KO annotations.

anvi-reaction-network -c /path/to/contigs-db --overwrite-existing-network

Edit this file to update this information.

Additional Resources

Are you aware of resources that may help users better understand the utility of this program? Please feel free to edit this file on GitHub. If you are not sure how to do that, find the __resources__ tag in this file to see an example.