This repository contains the code for the paper "Development of a national database for dietary glycemic index and load for nutritional epidemiologic studies in the United States" by Karen A. Della Corte, Dennis Della Corte, Sean Titensor, Bo Yang, Simin Liu. The code is released under the MIT License.
A tutorial explaining the process used in the paper is provided in a Google Colab format. You can find the tutorial here.
The alignment code to generate initial GI database alignments with NHANES food groups is provided as an IPython notebook (.ipynb
). You can find the code here.
To run the IPython notebook, you need to provide an OpenAI API key to correctly invoke the embedding function. Please follow the instructions below to set up the environment:
-
Obtain an OpenAI API key from OpenAI.
-
Set the API key within ai_alignmnet.ipynb in the get_embedding function on line 7.
openai_api_key = 'ADD OPENAI API Key here'
-
Install the required dependencies by running the following command:
pip install -r requirements.txt
This repository contains code related to our GI/GL database research, but does not include the full national glycemic index (GI) and glycemic load (GL) database itself. The GI/GL database is maintained and updated by the lead authors at Brigham Young University. We will share the database for non-commercial research usage with qualified investigators through collaborative efforts under the following process:
- Interested researchers should submit a proposal to the project PIs (karen_dellacorte@byu.edu, dennis.dellacorte@byu.edu) specifying the proposed analysis and which components of the GI/GL database will be utilized.
- A signed data use agreement must be provided covering all analysts who will access the data.
- Formal data requests can then be made to the project team, who will securely transfer the files.
- Annual status updates on data usage are required.
Please contact the PIs if you have any other questions about accessing this data.