COBRAdb loads genome-scale metabolic models and genome annotations into a relational database. It powers BiGGr Models, and it is available under the MIT license. The bin/load_db script is the entrypoint for building a database. The cobradb python library is also used by the biggr_models python package.
It is recommended to run the program using Docker compose.
-
Install and set up Docker.
-
Set up your configuration. Copy the file
settings.ini.dockerand rename itsettings.ini. Change thepostgres_passwordproperty to a password of choice. Change other options (like the number of processes to use) as desired. -
Similarly, copy the
env.dockerfile to.envand set the same postgres password here. (Make sure to neither put thesettings.inior.envfile under source control or share them in any other way.) -
Create the following directories:
/data/biggr-assemblies/data/biggr-input-models/data/biggr-chebi-cache/data/biggr-datafiles
-
Populate these directories with the required datafiles:
/data/biggr-chebi-cachecan be left empty. For/data/biggr-assembliesand/data/biggr-input-models, see the biggr_models_data documentation./data/biggr-datafilesfiles are available internally on thebiggrstorage account. -
Build the docker container using
docker compose buildand run usingdocker compose up.