This repository contains the manuscript, code and figures for the study Heterogeneity in GLP-1, GIP and glucagon responses during an oral glucose tolerance test.
The manuscript is built using Quarto and LaTeX. The PDF layout follows the Springer Nature journal format from the christopherkenny/nature template.
- Render PDF: Run
quarto render manuscript.qmdin the terminal (or click Render in RStudio).
The analysis code is organised into five R scripts that should be run in the following order:
01-data-management.r— data management and calculation of analysis variables02-clustering.r— clustering analysis03-regression.r— regression analyses04-sex-stratified-analyses.r— sex-stratified analyses and interaction tests05-figures.r— generation of main and supplementary figures
Tables are embedded in the manuscript, while the images/journal folder contains the main and supplementary figures.
The raw data is not included in this repository due to data access and data protection restrictions.
The raw dataset filenames in the scripts reflect project-specific data deliveries and may differ from filenames used in future data deliveries.
code/prepare-journal-figures.r is a convenience script for preparing figures for journal submission. It trims and resizes existing PDF figures to the required dimensions. Figures can preferably be exported at the correct dimensions from the outset, but this script is useful when post-processing is needed.