The following example demonstrates a practical example of how to build and work with an EnzymeML database. The example is based on the EnzymeML schema and datasets are provided in datasets
. The example is based on the following steps:
- Create tables based on the EnzymeML schema
- Populate the database with datasets
- Filter the database based on a query for
reactants
- Extract the corresponding EnzymeMLDocuments
Files to look into
populate_db.py
- Sets up the database and adds datasets found in this exampleExtract.ipynb
- Demonstrates how to filter a database and recover documentes
This example includes a docker-compose
recipe to spawn a new instance of a MySQL database. For this, run the following command:
sudo docker-compose up --build # Start MySQL database
python populate_db.py # Populate database