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.

2 blocks of code here have a permanent identifier (oscr:b:…), listed with the matches below: citable for good, with a page of its own. Select a match and press Cite to copy it. What a block identifier is.

The 3 matches
  1. [1] § Methods › Statistical analysis › MR methods ↔ mr_script.r, lines 104 to 151 · score 0.71 · horizontal pleiotropy, MR PRESSO, MR Egger, instruments · block oscr:b:MX1TMXA9RWB13-1 · Report a mismatch
  2. [2] § Methods › Statistical analysis › MR methods ↔ mr_script.r, lines 104 to 151 · score 0.52 · odds ratios, beta, regression, instruments, exposure, MR · block oscr:b:MX1TMXA9RWB13-1 · Report a mismatch
  3. [3] § Methods › Statistical analysis ↔ mr_script.r, lines 1 to 55 · score 0.50 · TwoSampleMR, models, linear, allele, logistic, Exposure · block oscr:b:PB8XFZQKE93TH-1 · Report a mismatch

Paper

Loaded from Europe PMC by your browser; OSCR does not store it: 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 (how the code is found and 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.1038/s41398-022-02145-z [code]
Are infections associated with cognitive decline and neuroimaging outcomes? A historical cohort study using data from the UK Biobank study linked to electronic health records.
Journal: Translational psychiatry
In common: ggplot2, tidyverse, Alzheimer's / dementia, 1 reference, author Victoria Garfield
[2] doi:10.1093/brain/awae198 [code]
Childhood adiposity underlies numerous adult brain traits commonly attributed to midlife obesity.
Journal: Brain : a journal of neurology
In common: ggplot2, tidyverse, 1 reference, author Victoria Garfield
[3] 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
[4] doi:10.1161/circulationaha.124.070632 [code]
Genetic and Lifestyle Risks for Coronary Artery Disease and Long-Term Risk of Incident Dementia Subtypes.
Journal: Circulation
In common: stroke, Alzheimer's / dementia, 1 reference, author Victoria Garfield
[5] doi:10.1186/s12967-025-06317-5 [code]
Biomarker identification for Alzheimer's disease through integration of comprehensive Mendelian randomization and proteomics data.
Journal: Journal of translational medicine
In common: ggplot2, tidyverse, Alzheimer's / dementia, 3 references
[6] doi:10.1038/s43587-025-01018-6 [code]
Dissecting the genetic and proteomic risk factors for delirium.
Journal: Nature aging
In common: ggplot2, tidyverse, pandas, 1 other tool, Alzheimer's / dementia, 2 references
[7] 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
[8] doi:10.1038/s43856-026-01471-3
Metformin provides superior neuroprotective potential compared to semaglutide in preventing diabetes-associated Alzheimer's disease via dual actions.
Journal: Communications medicine
In common: Alzheimer's / dementia, 3 references
[9] doi:10.1101/gr.279252.124 [code]
Genetics-driven risk predictions leveraging the Mendelian randomization framework.
Journal: Genome research
In common: pandas, NumPy, Alzheimer's / dementia, 3 references
[10] 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

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.

Add the badge to the code's README

OSCR: the badge of this paper

If you are an author or a maintainer of this paper's code, you can add this badge. It says what OSCR knows of the paper (its code, its validated tracing map) and links the code to this page. Paste one of these snippets under the README's title. Keep the two marks around it, so that the badge can be replaced in place and is never added twice. OSCR changes nothing in your repository.

Markdown
<!-- oscr-badge:start -->
[![OSCR](https://openscicode.org/badge/doi/10.64898/2026.05.13.26353120.svg)](https://openscicode.org/badge/doi/10.64898/2026.05.13.26353120)
<!-- oscr-badge:end -->
reStructuredText
.. oscr-badge:start

.. image:: https://openscicode.org/badge/doi/10.64898/2026.05.13.26353120.svg
   :target: https://openscicode.org/badge/doi/10.64898/2026.05.13.26353120
   :alt: OSCR

.. oscr-badge:end
HTML
<!-- oscr-badge:start -->
<a href="https://openscicode.org/badge/doi/10.64898/2026.05.13.26353120"><img src="https://openscicode.org/badge/doi/10.64898/2026.05.13.26353120.svg" alt="OSCR"></a>
<!-- oscr-badge:end -->

On GitHub, open the README, choose Edit (the pencil), paste the snippet under the title, then "Commit changes".

If you choose to, you can have the badge kept up to date for you, with oscr badge --write from the command line or with the GitHub Action in your repository's workflows. Every other form and option (a card, AsciiDoc, LaTeX, shields.io) is on the badge 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: code errors and mismatches between the code and the paper about this paper and its code, from readers and its authors, beside the paper and its tracing map.

Report a mismatch between the code and the paper · Report a code error (signed in)

Reproductions: reports from readers who ran the authors' code and did not get the paper's result, what they ran, with which environment, commit and data.

Report a reproduction failure (signed in)

Versions of its code: the releases of its code tied to a version of this paper (the preprint, the accepted manuscript, the version of record…), each with the tracing map versioned with it.

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