You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Polyphenol Estimator can now process prospective dietary records, including multi-day records or multiple one-day records.
Updates also clarify packages for functions used.
Copy file name to clipboardExpand all lines: README.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# Polyphenol Estimator
2
2
3
-
This repository contains scripts to automate the estimation of dietary polyphenol intake and calculation of the dietary inflammatory index from ASA24 or NHANES diet recalls.
3
+
This repository contains scripts to automate the estimation of dietary polyphenol intake and calculation of the dietary inflammatory index from ASA24 recalls, ASA24 records, and NHANES WWEIA recalls.
4
4
5
5
### Releases
6
6
- November 20, 2025 - Tutorial Draft Release
@@ -21,7 +21,7 @@ Want to estimate polyphenols in your dietary data? Please review our start-up gu
21
21
22
22
| Inputs | Provided | About |
23
23
|------------ |--------- |---------|
24
-
| Diet Data | No | ASA24 Items File, or NHANES<br>Note: Current pipeline requires each participant to have at least two recalls. |
24
+
| Diet Data | No | ASA24 Items File, or NHANES<br>Note: Current pipeline requires each participant to have at least two recalls, records, or record days. |
25
25
| FDA Food Disaggregation Database V 3.1 | Yes | FDA's Food Disaggregation Database contains Ingredients and their percentages within FNDDS food codes. |
26
26
| FooDB food polyphenol content | Yes | Contains polyphenol content in foods. Polyphenols were determined based off structure (an aromatic ring with at least two hydroxyl groups) with 9 compounds manually added to better reflect microbial enzyme substrates. |
27
27
| FooDB polyphenol list | Yes | List of 3072 polyphenols. File includes FooDB compound ID, compound name, SMILES, InChI key, and taxonomic class. Taxonomic class is from ClassyFire, an automated chemical taxonomic classification application based on chemical structure. |
Copy file name to clipboardExpand all lines: index.md
+3-7Lines changed: 3 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ nav_order: 1
6
6
7
7
# Polyphenol Estimator
8
8
9
-
This start guide shows you how to take your ASA24 or NHANES dietary data and estimate polyphenol intake using the [FooDB](https://foodb.ca/) and calculate the dietary inflammatory index[^1]. Example ASA24 data, borrowed from the DietDiveR Repository[^2], is provided for you to test. Check out [the example file here](https://github.com/SWi1/polyphenol_pipeline/blob/main/user_inputs/VVKAJ_Items.csv) to see the input structure required for Polyphenol Estimator.
9
+
This start guide shows you how to take your ASA24 or NHANES dietary data and estimate polyphenol intake using the [FooDB](https://foodb.ca/) and calculate the dietary inflammatory index[(Shivapppa et al. 2013)](10.1017/S1368980013002115). Example ASA24 data, borrowed from the [DietDiveR Repository](https://computational-nutrition-lab.github.io/DietDiveR/), is provided for you to test. Check out [the example file here](https://github.com/SWi1/polyphenol_pipeline/blob/main/user_inputs/VVKAJ_Items.csv) to see the input structure required for Polyphenol Estimator.
10
10
11
11
### 1. Download the entire repository directly [here](https://github.com/SWi1/polyphenol_pipeline/archive/refs/heads/main.zip) then unzip the folder.
12
12
The repository contains files and scripts used in the tutorial.
@@ -28,16 +28,12 @@ Find a list of expected outputs below:
28
28
<details>
29
29
<summary>Reports: See What's in Each Script</summary>
30
30
<ul>
31
-
For every script that was run, a report was generated in the reports folder.
32
-
This online tutorial actually shows you what the reports look like if you navigate to pages under "Polyphenol Estimator" and "DII Calculation" in your sidebar.
31
+
If you opt to generate md or html reports, then a readable report of each script used will be placed into your reports folder. You can preview the latest reports generated by navigating to pages under "Polyphenol Estimator" and "DII Calculation" in your sidebar. Report generation may be helpful to keep a record of which scripts were used as the tool periodically will be updated.
33
32
</ul>
34
33
</details>
35
34
36
35
### Want to test NHANES data instead?
37
36
`estimate_polyphenols` can also be run on NHANES WWEIA data. To generate NHANES WWEIA data, follow the instructions in ["Preparing Diet Data - NHANES diet recalls"](https://swi1.github.io/polyphenol_pipeline/webpages/preparing_diet_data_NHANES.html#prepare-nhanes-diet-recall-data). When you've finished:
38
37
1. Come back to run_pipeline.R and update `diet_input_file` with the NHANES output file name.
39
38
2. In `estimate_polyphenols`, change type to "NHANES"
40
-
3. Run the script.
41
-
42
-
[^1]: [Shivapppa et al. 2013. Designing and developing a literature-derived, population-based dietary inflammatory index](10.1017/S1368980013002115)
Copy file name to clipboardExpand all lines: scripts/DII_STEP2_Polyphenol_Subclass.Rmd
+32-17Lines changed: 32 additions & 17 deletions
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
---
2
2
title: "DII_PREP - Polyphenol Subclasses"
3
3
author: "Stephanie Wilson"
4
-
date: "November 2025"
4
+
date: "February 2026"
5
5
output:
6
6
md_document:
7
7
variant: gfm
@@ -18,16 +18,16 @@ output:
18
18
---
19
19
20
20
## Calculate DII Polyphenol Subclasses
21
-
This script takes your data that has been mapped to FooDB polyphenol content, extracts compounds categorized under the six required DII subclasses (flavan-3-ols, Flavones, Flavonols, Flavonones, Anthocyanidins, Isoflavones), and calculates the total intake of these subclasses per participant recall.
21
+
This script takes your data that has been mapped to FooDB polyphenol content, extracts compounds categorized under the six required DII subclasses (flavan-3-ols, Flavones, Flavonols, Flavonones, Anthocyanidins, Isoflavones), and calculates the total intake of these subclasses per participant recall or record.
22
22
23
23
#### INPUTS
24
24
25
-
-**Recall_FooDB_polyphenol_content.csv.bz2**: Disaggregated dietary data, mapped to FooDB polyphenol content, at the compound-level
25
+
-**Diet_FooDB_polyphenol_content.csv.bz2**: Disaggregated dietary data, mapped to FooDB polyphenol content, at the compound-level
26
26
-**FooDB_DII_polyphenol_list.csv** - Polyphenols under the six polyphenol subclasses required for DII-2014, Provided File
27
27
28
28
#### OUTPUTS
29
29
30
-
-**Recall_DII_subclass_by_recall.csv**: Sum DII polyphenol subclass content for each participant recall
30
+
-**Diet_DII_subclass_by_entry.csv**: Sum DII polyphenol subclass content for each participant recall or record
0 commit comments