OSCR

WITHDRAWN: Can glucagon like peptide-1 receptor agonists be beneficial for brain health?

Code ↔ Paper

3 matches between paragraphs of the paper and lines of its authors' code, computed by the harvester (lexical-v1). Click a colored paragraph or line to see its counterpart.

The 3 matches
  1. [1] § Methods › Statistical analysis › MR methods ↔ mr_script.r, lines 104–151 · score 0.71 · horizontal pleiotropy, MR PRESSO, MR Egger, instruments
  2. [2] § Methods › Statistical analysis › MR methods ↔ mr_script.r, lines 104–151 · score 0.52 · odds ratios, beta, regression, instruments, exposure, MR
  3. [3] § Methods › Statistical analysis ↔ mr_script.r, lines 1–55 · score 0.50 · TwoSampleMR, models, linear, allele, logistic, Exposure

Paper

Loaded from Europe PMC by your browser, not stored by OSCR: doi.org · Europe PMC

The paper is loaded when this pane is shown.

The authors' code

R · 151 lines · 4.6 KB · no license · 3 matches

  1. # load the library
  2. # remotes::install_github("MRCIEU/TwoSampleMR") # nolint: commented_code_linter.
  3. library(TwoSampleMR)
  4. library(ggplot2)
  5. library(dplyr)
  6. args <- commandArgs(trailingOnly = TRUE)
  7. outcome <- args[1]
  8. exposure_file <- args[2]
  9. outcome_base <- args[3]
  10. output_dir <- args[4]
  11. use_or_col <- as.logical(as.integer(args[5]))
  12. # Pick the right outcome file extension
  13. # if (use_or_col) {
  14. # outcome_file <- paste0(outcome_base, ".glm.logistic.hybrid")
  15. # message("Detected logistic model > using file: ", outcome_file)
  16. # } else {
  17. # outcome_file <- paste0(outcome_base, ".glm.linear")
  18. # message("Detected linear model > using file: ", outcome_file)
  19. # }
  20. outcome_file <- outcome_base
  21. # Load outcome
  22. if (use_or_col) {
  23. outcome_dat <- read_outcome_data(
  24. outcome_file,
  25. sep = "\t",
  26. snp_col = "ID",
  27. beta_col = "OR",
  28. se_col = "LOG(OR)_SE",
  29. eaf_col = "A1_FREQ",
  30. effect_allele_col = "A1",
  31. other_allele_col = "OMITTED",
  32. pval_col = "P",
  33. samplesize_col = "OBS_CT"
  34. )
  35. outcome_dat <- outcome_dat %>% mutate(beta.outcome = log(beta.outcome))
  36. } else {
  37. outcome_dat <- read_outcome_data(
  38. outcome_file,
  39. sep = "\t",
  40. snp_col = "ID",
  41. beta_col = "BETA",
  42. se_col = "SE",
  43. eaf_col = "A1_FREQ",
  44. effect_allele_col = "A1",
  45. other_allele_col = "OMITTED",
  46. pval_col = "P",
  47. samplesize_col = "OBS_CT"
  48. )
  49. }
  50. outcome_dat$outcome <- outcome
  51. outcome_dat$id.outcome <- outcome
  52. # Load exposure
  53. exposure_dat <- read_exposure_data(
  54. exposure_file,
  55. clump = FALSE,
  56. sep = "\t",
  57. snp_col = "SNP",
  58. beta_col = "beta",
  59. se_col = "se",
  60. eaf_col = "eaf",
  61. effect_allele_col = "effect_allele",
  62. other_allele_col = "other_allele",
  63. pval_col = "pval"
  64. )
  65. # exposure_dat <- read_exposure_data(
  66. # exposure_file,
  67. # clump = FALSE,
  68. # sep = "\t",
  69. # snp_col = "RSID",
  70. # beta_col = "BETA",
  71. # se_col = "SE",
  72. # eaf_col = "EFFECT_ALLELE_FREQ",
  73. # effect_allele_col = "EFFECT_ALLELE",
  74. # other_allele_col = "OTHER_ALLELE",
  75. # pval_col = "P"
  76. # )
  77. # Add phenotype label for clarity in output
  78. exposure_dat$exposure <- "GLP1"
  79. exposure_dat$id.exposure <- "GLP1"
  80. # Harmonise
  81. dat <- harmonise_data(exposure_dat, outcome_dat)
  82. write.csv(dat, sprintf("%s/mr_harmonised.csv",
  83. output_dir), row.names = FALSE)
  84. # Run MR
  85. mr_results <- mr(dat)
  86. # , method_list = c("mr_simple_mode",
  87. # "mr_ivw",
  88. # "mr_weighted_mode",
  89. # "mr_egger_regression")
  90. # Save results in a file
  91. write.csv(mr_results, sprintf("%s/mr_results.csv",
  92. output_dir), row.names = FALSE)
  93. # Approximate F-statistic for each instrument
  94. exposure_dat <- exposure_dat %>%
  95. mutate(F_statistic = (beta.exposure^2) / (se.exposure^2))
  96. stats <- summary(exposure_dat$F_statistic)
  97. write.csv(as.data.frame(t(stats)), sprintf("%s/mr_exposure_Fstats.csv",
  98. output_dir), row.names = TRUE)
  99. # odds_ratio <- mr_results %>% mutate(
  100. # or = exp(mr_results$b),
  101. # up_ci = exp(mr_results$b + 1.96 * mr_results$se),
  102. # lo_ci = exp(mr_results$b - 1.96 * mr_results$se)
  103. # )
  104. # write.csv(odds_ratio, sprintf("%s/mr_odds_ratio.csv",
  105. # output_dir), row.names = FALSE)
  106. odds_ratio <- generate_odds_ratios(mr_results)
  107. write.csv(odds_ratio, sprintf("%s/mr_odds_ratio.csv",
  108. output_dir), row.names = FALSE)
  109. print("------------- Odds Ratios -------------")
  110. print(odds_ratio)
  111. # lower_level <- min(exp(mr_results$b - 1.96*mr_results$se)) # nolint: commented_code_linter, line_length_linter.
  112. # upper_level <- max(exp(mr_results$b + 1.96*mr_results$se)) # nolint: commented_code_linter, line_length_linter.
  113. print("---------------------------------------")
  114. # leave one out method
  115. mr_leaveoneout <- mr_leaveoneout(dat, method = mr_egger_regression)
  116. write.csv(mr_leaveoneout, sprintf("%s/mr_leaveoneout.csv",
  117. output_dir), row.names = FALSE)
  118. # heterogeneity test
  119. mr_heterogeneity <- mr_heterogeneity(dat)
  120. write.csv(mr_heterogeneity, sprintf("%s/mr_heterogeneity.csv",
  121. output_dir), row.names = FALSE)
  122. # test for horizontal pleiotropy
  123. mr_pleiotropy_test <- mr_pleiotropy_test(dat)
  124. write.csv(mr_pleiotropy_test, sprintf("%s/mr_pleiotropy_test.csv",
  125. output_dir), row.names = FALSE)
  126. res_single <- mr_singlesnp(dat)
  127. write.csv(res_single, sprintf("%s/mr_singlesnp.csv",
  128. output_dir), row.names = FALSE)
  129. presso_results <- run_mr_presso(dat)
  130. write.csv(presso_results, sprintf("%s/mr_presso.csv",
  131. output_dir), row.names = FALSE)

mr_script.r at commit 2c27edd, no license · at the source

Overview

  1. University College London Hospital, NHS Foundation Trust, London, UK
  2. Department of Pharmacology and Therapeutics, University of Liverpool, UK
  3. Facultad de Psicología, Universidad de la República, Uruguay
Institutions: University College London (United Kingdom); University of Liverpool (United Kingdom); Universidad de la República de Uruguay (Uruguay)
Dates: published online 17 May 2026
Type: Preprint
License: CC BY
Identifiers: DOI 10.64898/2026.05.13.26353120 · OpenAlex W7161488341
Open access: green, a free copy (OpenAlex)
Status: code verified
Categories: human (organism), Alzheimer's / dementia (population), stroke (population), cellular / molecular (subfield)
Methods: Machine learning
Topic: Diabetes Treatment and Management (Endocrinology, Diabetes and Metabolism, Medicine), according to OpenAlex
Funding: National Institute for Health Research (NIHR) (NIHR303160)
Citations: not cited yet (Europe PMC); 23 references in the paper

Abstract

Background: GLP-1 receptor agonists (GLP-1 RAs) are widely used for treatment of type 2 diabetes and obesity and have demonstrated cardiovascular benefits, but their effect on dementia risk is uncertain. We used a drug-target Mendelian randomisation (MR) framework to estimate the causal effect of GLP-1 receptor (GLP-1R) agonism on dementia risk and brain structure.

Methods: We used single nucleotide polymorphisms (SNPs) in GLP1R to recapitulate the effect of GLP1-RAs against circulating markers of glucose, glycated haemoglobin and outcomes of type 2 diabetes and obesity, to understand if we can reliably proxy agonism at GLP1R using gene variants. We then considered clinical outcomes, including all-cause dementia, vascular dementia, Alzheimer’s disease, and neuroimaging outcomes. Analyses were conducted in UK Biobank and replicated in FinnGen and All of Us and results were combined using meta-analysis.

Findings: Genetically proxied GLP-1R agonism was associated with a 17% lower risk of vascular dementia, with directional consistency across the two largest cohorts. No consistent association was observed for all-cause dementia. An elevated risk of Alzheimer’s disease was observed in UK Biobank but was not replicated in FinnGen or All of Us, and the pooled estimate across cohorts was null. There was no consistent evidence of an effect on neuroimaging outcomes, though higher GLP-1R agonism was associated with greater total brain volume.

Interpretation: Genetic evidence supports a potential protective effect of GLP-1R agonism on vascular dementia, consistent with the established cardio-metabolic benefits of this drug class. The null pooled finding for Alzheimer’s disease suggests that GLP-1R agonism does not meaningfully modify neurodegenerative pathways specific to this disease, though results from ongoing clinical trials are awaited. These findings highlight the importance of distinguishing between dementia subtypes when evaluating the cognitive effects of cardiometabolic therapies.

Funding: This work is funded by Diabetes Research & Wellness Foundation, Professor David Matthews Non-Clinical Fellowship to VG (ref: SCA/01/NCF/22). RS is an NIHR Research Professor, NIHR303160 is funded by the NIHR for this research project. GB is funded by an MRC grant.

Reproduced under the paper's license (CC BY), from the paper cited above.

Repository

Its files are read in the Code ↔ Paper reader above, with 3 matches between paragraphs and lines of code.

MetRXlab/spectra

License: none: the authors keep all their rights
State: the link answers, verified on 28 September 2026
Evidence: files inventoried
Commit: 2c27edd80fd0fd18d34ca4408a6e89d3d01f93c5, 5 January 2026
Languages: Python (6), R (1)
Size: 9 files, 7 scripts
Software Heritage: not archived
Found in: “Data sharing”
Holds: README
Not found: license file, CITATION.cff, environment file, tests, continuous integration, documentation
Tools: pandas (3 files), NumPy (2 files), ggplot2 (1 file), tidyverse (1 file)
Availability: 1 check, the latest on 28 September 2026: the link answers
  • 28 September 2026: the link answers
8 files

The paper's code and data availability statement is in the Data section.

Tracing map

Proposed by the machine: these links were found in the paper and verified at the source, without human review. The map will receive a Zenodo DOI once one of the paper's authors has validated it with their ORCID.

What the map holds:

  • 1 repository of the authors' code, each at its verified commit, with its license and how the link was found in the paper;
  • 7 scripts, each with its path and the digest of its content;
  • 3 matches between paragraphs of the paper and lines of the code (method lexical-v1);
  • neither the text of the paper nor the code itself.

Its JSON (tracing-map.json) is deposited on Zenodo with its DOI once the map is validated.

Data

No dataset and no data link were found in the paper.

Data sharing

No additional data is available. The software has been developed by the authors and has been made publicly available at https://github.com/MetRXlab/spectra.git.

Reproduced under the paper's license (CC BY), from the paper cited above.

Versions

The history of this record: each version stored by the harvester or made by a correction of its authors or of the maintainers of its code, and what changed in its facts. The texts of the paper (its abstract, its availability statements) are not part of it; versions that changed only those are not listed.

Version 2, 28 September 2026

  • Authors: added Andrew Mason (0000-0003-1502-2088); Victoria Garfield (0000-0002-5127-0890); removed Andrew Mason; Victoria Garfield

Version 1, 28 September 2026: the first record

Recorded: type, journal, dates, 6 authors, 1 funder, 22 references.

Cite

This paper

Ballabio, G., Mason, A., Paz, V., Dale, C., Sofat, R., & Garfield, V. (2026). WITHDRAWN: Can glucagon like peptide-1 receptor agonists be beneficial for brain health? medRxiv (preprint). https://doi.org/10.64898/2026.05.13.26353120

BibTeX

@article{ballabio2026withdrawn,
author = {Ballabio, Giulia and Mason, Andrew and Paz, Valentina and Dale, Caroline and Sofat, Reecha and Garfield, Victoria},
title = {{WITHDRAWN: Can glucagon like peptide-1 receptor agonists be beneficial for brain health?}},
journal = {medRxiv (preprint)},
year = {2026},
month = may,
publisher = {medRxiv},
doi = {10.64898/2026.05.13.26353120},
url = {https://doi.org/10.64898/2026.05.13.26353120}
}

RIS

TY - JOUR
AU - Ballabio, Giulia
AU - Mason, Andrew
AU - Paz, Valentina
AU - Dale, Caroline
AU - Sofat, Reecha
AU - Garfield, Victoria
TI - WITHDRAWN: Can glucagon like peptide-1 receptor agonists be beneficial for brain health?
T2 - medRxiv (preprint)
J2 - medRxiv
PY - 2026
DA - 2026/05/17
PB - medRxiv
DO - 10.64898/2026.05.13.26353120
UR - https://doi.org/10.64898/2026.05.13.26353120
ER -

CSL-JSON

{
"id": "10.64898/2026.05.13.26353120",
"type": "article",
"title": "WITHDRAWN: Can glucagon like peptide-1 receptor agonists be beneficial for brain health?",
"container-title": "medRxiv (preprint)",
"author": [
{
"family": "Ballabio",
"given": "Giulia"
},
{
"family": "Mason",
"given": "Andrew"
},
{
"family": "Paz",
"given": "Valentina"
},
{
"family": "Dale",
"given": "Caroline"
},
{
"family": "Sofat",
"given": "Reecha"
},
{
"family": "Garfield",
"given": "Victoria"
}
],
"container-title-short": "medRxiv",
"DOI": "10.64898/2026.05.13.26353120",
"publisher": "medRxiv",
"URL": "https://doi.org/10.64898/2026.05.13.26353120",
"issued": {
"date-parts": [
[
2026,
5,
17
]
]
}
}

The tracing map gets a citation of its own once an author has validated it and it has a DOI.

Similar papers

The papers with a page that share the most with this one: the tools found in their code, their categories, datasets, cited references and authors, the rarest counting most.

[1] doi:10.64898/2026.03.12.26348052
Sex-specific differences in nonlinear associations between glycaemia and brain health in UK Biobank
Journal: medRxiv (preprint)
In common: stroke, 1 reference, author Victoria Garfield
[2] doi:10.1038/s41467-026-74038-4 [code]
Semaglutide attenuates neuroinflammation in male mice.
Journal: Nature communications
In common: ggplot2, tidyverse, pandas, 1 other tool, Alzheimer's / dementia, cellular / molecular, 1 reference
[3] doi:10.1136/svn-2024-003690 [code]
Associations of accelerated biological ageing with incident dementia, cognitive functions and brain structure: a prospective cohort study based on UK Biobank.
Journal: Stroke and vascular neurology
In common: ggplot2, tidyverse, stroke, Alzheimer's / dementia, 2 references
[4] doi:10.1038/s41398-026-04292-z [code]
Regional juxtacortical microstructural changes and gene expression provide insights into neurodegeneration in Alzheimer's disease.
Journal: Translational psychiatry
In common: ggplot2, tidyverse, pandas, 1 other tool, Alzheimer's / dementia, cellular / molecular, 1 reference
[5] doi:10.21203/rs.3.rs-9246968/v1 [code]
Copy number variants reveal divergent genetic and diagnostic cortical signatures across psychiatric disorders
Journal: Research Square (preprint)
In common: ggplot2, tidyverse, pandas, 1 other tool, 2 references
[6] doi:10.1038/s41586-026-10444-4 [code]
A brain reward circuit inhibited by next-generation weight-loss drugs in mice.
Journal: Nature
In common: ggplot2, tidyverse, pandas, 1 other tool, 1 reference
[7] doi:10.1073/pnas.2609814123 [code]
Genetic architectures of brain-related traits are shaped by strong selective constraints.
Journal: Proceedings of the National Academy of Sciences of the United States of America
In common: ggplot2, tidyverse, pandas, 1 other tool, cellular / molecular, 1 reference
[8] doi:10.1038/s41467-026-76676-0 [code]
Determinants of functional burden pleiotropy and gene dosage responses across human traits.
Journal: Nature communications
In common: ggplot2, tidyverse, pandas, 1 other tool, cellular / molecular, 1 reference
[9] doi:10.1016/j.xgen.2026.101280 [code]
BMI-genome interactions regulate global gene expression with emphasis in brain and gut.
Journal: Cell genomics
In common: ggplot2, tidyverse, pandas, 1 other tool, cellular / molecular, 1 reference
[10] doi:10.1038/s41467-026-73996-z [code]
Genetic architecture of white matter microstructure captured by unsupervised deep representation learning of fractional anisotropy maps.
Journal: Nature communications
In common: ggplot2, tidyverse, pandas, 1 other tool, cellular / molecular, 1 reference

Contribute

The authors of this paper can claim it, correct its record and validate its tracing map, and the maintainers of its code (its owner, or a public member of its organization) correct what it says of their repository; anyone signed in can ask for its removal. Every request goes to OSCR's own machine, which answers it; your account page follows them.

Sign in with ORCID to claim this paper as one of its authors, correct its record or validate its tracing map: when the paper's metadata lists your ORCID iD, you are recognized at once. Maintainers of its code: sign in with GitHub, then claim the repository on your account page.

Request its removal

To ask OSCR to remove this record, the copies of its authors' scripts or its tracing map, use the removal request page: signed in, you say who you are, what to remove and why, then review and confirm the request. Published rules decide every request (how).

Discussion, reproductions, activity

Discussion: questions and error reports about this paper and its code, from signed-in readers and its authors. It opens with sign-in.

Reproductions: reports from readers who ran the authors' code: what they reproduced, with which environment, commit and data. It opens with sign-in.

Activity: what happens around this paper: new versions of its record, its map's validation, discussions and reproductions. It opens with sign-in.