WITHDRAWN: Can glucagon like peptide-1 receptor agonists be beneficial for brain health?
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] § 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] § 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] § 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
- # load the library
- # remotes::install_github("MRCIEU/TwoSampleMR") # nolint: commented_code_linter.
- library(TwoSampleMR)
- library(ggplot2)
- library(dplyr)
- args <- commandArgs(trailingOnly = TRUE)
- outcome <- args[1]
- exposure_file <- args[2]
- outcome_base <- args[3]
- output_dir <- args[4]
- use_or_col <- as.logical(as.integer(args[5]))
- # Pick the right outcome file extension
- # if (use_or_col) {
- # outcome_file <- paste0(outcome_base, ".glm.logistic.hybrid")
- # message("Detected logistic model > using file: ", outcome_file)
- # } else {
- # outcome_file <- paste0(outcome_base, ".glm.linear")
- # message("Detected linear model > using file: ", outcome_file)
- # }
- outcome_file <- outcome_base
- # Load outcome
- if (use_or_col) {
- outcome_dat <- read_outcome_data(
- outcome_file,
- sep = "\t",
- snp_col = "ID",
- beta_col = "OR",
- se_col = "LOG(OR)_SE",
- eaf_col = "A1_FREQ",
- effect_allele_col = "A1",
- other_allele_col = "OMITTED",
- pval_col = "P",
- samplesize_col = "OBS_CT"
- )
- outcome_dat <- outcome_dat %>% mutate(beta.outcome = log(beta.outcome))
- } else {
- outcome_dat <- read_outcome_data(
- outcome_file,
- sep = "\t",
- snp_col = "ID",
- beta_col = "BETA",
- se_col = "SE",
- eaf_col = "A1_FREQ",
- effect_allele_col = "A1",
- other_allele_col = "OMITTED",
- pval_col = "P",
- samplesize_col = "OBS_CT"
- )
- }
- outcome_dat$outcome <- outcome
- outcome_dat$id.outcome <- outcome
- # Load exposure
- exposure_dat <- read_exposure_data(
- exposure_file,
- clump = FALSE,
- sep = "\t",
- snp_col = "SNP",
- beta_col = "beta",
- se_col = "se",
- eaf_col = "eaf",
- effect_allele_col = "effect_allele",
- other_allele_col = "other_allele",
- pval_col = "pval"
- )
- # exposure_dat <- read_exposure_data(
- # exposure_file,
- # clump = FALSE,
- # sep = "\t",
- # snp_col = "RSID",
- # beta_col = "BETA",
- # se_col = "SE",
- # eaf_col = "EFFECT_ALLELE_FREQ",
- # effect_allele_col = "EFFECT_ALLELE",
- # other_allele_col = "OTHER_ALLELE",
- # pval_col = "P"
- # )
- # Add phenotype label for clarity in output
- exposure_dat$exposure <- "GLP1"
- exposure_dat$id.exposure <- "GLP1"
- # Harmonise
- dat <- harmonise_data(exposure_dat, outcome_dat)
- write.csv(dat, sprintf("%s/mr_harmonised.csv",
- output_dir), row.names = FALSE)
- # Run MR
- mr_results <- mr(dat)
- # , method_list = c("mr_simple_mode",
- # "mr_ivw",
- # "mr_weighted_mode",
- # "mr_egger_regression")
- # Save results in a file
- write.csv(mr_results, sprintf("%s/mr_results.csv",
- output_dir), row.names = FALSE)
- # Approximate F-statistic for each instrument
- exposure_dat <- exposure_dat %>%
- mutate(F_statistic = (beta.exposure^2) / (se.exposure^2))
- stats <- summary(exposure_dat$F_statistic)
- write.csv(as.data.frame(t(stats)), sprintf("%s/mr_exposure_Fstats.csv",
- output_dir), row.names = TRUE)
- # odds_ratio <- mr_results %>% mutate(
- # or = exp(mr_results$b),
- # up_ci = exp(mr_results$b + 1.96 * mr_results$se),
- # lo_ci = exp(mr_results$b - 1.96 * mr_results$se)
- # )
- # write.csv(odds_ratio, sprintf("%s/mr_odds_ratio.csv",
- # output_dir), row.names = FALSE)
- odds_ratio <- generate_odds_ratios(mr_results)
- write.csv(odds_ratio, sprintf("%s/mr_odds_ratio.csv",
- output_dir), row.names = FALSE)
- print("------------- Odds Ratios -------------")
- print(odds_ratio)
- # lower_level <- min(exp(mr_results$b - 1.96*mr_results$se)) # nolint: commented_code_linter, line_length_linter.
- # upper_level <- max(exp(mr_results$b + 1.96*mr_results$se)) # nolint: commented_code_linter, line_length_linter.
- print("---------------------------------------")
- # leave one out method
- mr_leaveoneout <- mr_leaveoneout(dat, method = mr_egger_regression)
- write.csv(mr_leaveoneout, sprintf("%s/mr_leaveoneout.csv",
- output_dir), row.names = FALSE)
- # heterogeneity test
- mr_heterogeneity <- mr_heterogeneity(dat)
- write.csv(mr_heterogeneity, sprintf("%s/mr_heterogeneity.csv",
- output_dir), row.names = FALSE)
- # test for horizontal pleiotropy
- mr_pleiotropy_test <- mr_pleiotropy_test(dat)
- write.csv(mr_pleiotropy_test, sprintf("%s/mr_pleiotropy_test.csv",
- output_dir), row.names = FALSE)
- res_single <- mr_singlesnp(dat)
- write.csv(res_single, sprintf("%s/mr_singlesnp.csv",
- output_dir), row.names = FALSE)
- presso_results <- run_mr_presso(dat)
- write.csv(presso_results, sprintf("%s/mr_presso.csv",
- output_dir), row.names = FALSE)
mr_script.r at commit 2c27edd, no license · at the source
Overview
- University College London Hospital, NHS Foundation Trust, London, UK
- Department of Pharmacology and Therapeutics, University of Liverpool, UK
- Facultad de Psicología, Universidad de la República, Uruguay
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/
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
2c27edd80fd0fd18d34ca4408a6e89d3d01f93c5, 5 January 2026Availability: 1 check, the latest on 28 September 2026: the link answers
- 28 September 2026: the link answers
8 files
- genotype.py, Python, 541 lines
- mr_script.r, R, 151 lines, 3 matches
- mr_wrapper.py, Python, 25 lines
- phenotype.py, Python, 136 lines
- regression.py, Python, 169 lines
- run_analysis.py, Python, 128 lines
- utils.py, Python, 159 lines
- README.md, Text, 28 lines
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://
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://
BibTeX
@article{ballabio2026wit
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/
url = {https://
}
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/
PB - medRxiv
DO - 10.64898/
UR - https://
ER -
CSL-JSON
{
"id": "10.64898/
"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":
"DOI": "10.64898/
"publisher": "medRxiv",
"URL": "https://
"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 psychiatryIn 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 neurologyIn 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 BiobankJournal: 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: CirculationIn 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 medicineIn 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 agingIn 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 communicationsIn 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 medicineIn 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 researchIn 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: NatureIn 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.
Claim this paper
Correct its record
Say what each link of this record is, remove the ones that are not the paper's, add the ones that are missing. The correction becomes a new version of the record, in its Versions section.
Validate its tracing map
You validate the map as this page shows it: 1 repository of the authors' code, each at its verified commit and with its license, 7 scripts, and 3 matches between paragraphs and code (see the Code and Map sections). It then receives a DOI on Zenodo, with you (your ORCID iD) and OSCR as its creators; the code itself is not deposited.
The map's fingerprint: sha256:f5d7f68f8c82f477…
Add the badge to the code's README
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 -->
[](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:endHTML
<!-- 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.
