NOTE: Scripts that were updated or created during the review process have the extension "_PNASreviews".
Analysis scripts used for the manuscript "Multigenerational adversity impacts on gut microbiome composition and socioemotional functioning in early childhood"
Preprint at: https://psyarxiv.com/64m9g/, OSF project at: https://osf.io/c564x/, Paper at: https://www.pnas.org/doi/10.1073/pnas.2213768120.
These scripts are uploaded as .html files knitted from R markdown or Jupyter notebook (depending on coding language) so that code and output can be easily viewed together. However, the .html files cannot be visualized directly within GitHub. Please follow the instructions below to open and view them.
- Click on file, then click "Download". This will open the raw version of the file.
- Right click on this page of text and hit "Save as..."
- Download and save as .txt file
- Change extension from .txt to .html
- Click to open in a web browser
Main analysis script: gusto_microbioM24_adversity_cbcl_sharingversion.html.
Metadata wrangling script: gusto_metadata_wrangle_sharingversion.html.
Questionnaire data cleaning scripts:
- gusto_age_cleaning.html
- gusto_biotics_cleaning.html
- gusto_breastfeeding_cleaning.html
- gusto_cbcl_fran_sharingversion.html
- gusto_cbcl_gi_scoring_sharing.html
- gusto_ctq_scoring_sharingversion.html
- gusto_deliverymode_scoring.html
- gusto_income_household_cleaning.html
- gusto_leq_scoring.html
- gusto_stai_scoring_sharing.html
Microbiome data processing script: gusto_M24_M48_microbiota_processing.html.
To perform the analyses for this manuscript, the following notes on script running order were used:
- Questionnaire data cleaning scripts and microbiome data processing scripts were run before the others
- Within the questionnaire data cleaning scripts, gusto_cbcl_fran_sharingversion.html was run before gusto_cbcl_gi_scoring_sharing.html
- Metadata wrangling script was run after questionnaire data cleaning and microbiome data processing scripts
- Finally, main analysis script was run last.