OSCR

The tissue-specific effects of glucose-lowering drug targets on aging mediated through DNA methylation: a multi-omics genetic study.

Code ↔ Paper

6 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.

6 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 6 matches
  1. [1] § Methods › Selection of genetic instruments for glucose-lowering drug targets ↔ R/ld.R, lines 1 to 25 · score 0.63 · clumping window, clumping r2, kb, LD, variants, SNP · block oscr:b:V9W3JDSTE296Z-I · Report a mismatch
  2. [2] § Methods › Statistical analysis › Genetic correlation analysis ↔ README.Rmd, lines 18 to 45 · score 0.60 · LD score regression, genetic correlations, LD reference, ancestry, heritability, traits · block oscr:b:0REC9WSESGN9E-Y · Report a mismatch
  3. [3] § Methods › Statistical analysis › Mendelian randomization analyses ↔ R/format_mr_results2.R, lines 137 to 214 · score 0.59 · inverse variance weighted, weighted median, Wald, ratio, exposures, MR · block oscr:b:3NPC69EJRYP1S-D · Report a mismatch
  4. [4] § Methods › Selection of genetic instruments for glucose-lowering drug targets ↔ R/multivariable_mr.R, lines 118 to 152 · score 0.58 · clumping r2, allele frequency, kb, trait, SNP, gene · block oscr:b:VARR1375NQJHW-Y · Report a mismatch
  5. [5] § Methods › Statistical analysis › Mendelian randomization analyses ↔ R/forest_plot2.R, lines 1 to 53 · score 0.58 · inverse variance weighted, outcome GWAS, Wald, ratio, exposures, MR · block oscr:b:K8P2GCNH06MCW-A · Report a mismatch
  6. [6] § Methods › Statistical analysis › Genetic correlation analysis ↔ R/ldsc_h2.R, lines 1 to 41 · score 0.55 · LD score regression, heritability, ancestry, allele, traits, SNP · block oscr:b:ADV7S0GKJFESF-V · 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 · 106 lines · 5 KB · other · 1 match

  1. #' Perform LD clumping on SNP data
  2. #'
  3. #' Uses PLINK clumping method, where SNPs in LD within a particular window will be pruned. The SNP with the lowest p-value is retained.
  4. #'
  5. #' @details
  6. #' This function interacts with the OpenGWAS API, which houses LD reference panels for the 5 super-populations in the 1000 genomes reference panel.
  7. #' It includes only bi-allelic SNPs with MAF > 0.01, so it's quite possible that a variant you want to include in the clumping process will be absent.
  8. #' If it is absent, it will be automatically excluded from the results.
  9. #'
  10. #' You can check if your variants are present in the LD reference panel using [ieugwasr::ld_reflookup()].
  11. #'
  12. #' This function does put load on the OpenGWAS servers, which makes life more difficult for other users.
  13. #' We have implemented a method and made available the LD reference panels to perform clumping locally, see [ieugwasr::ld_clump()] and related vignettes for details.
  14. #'
  15. #' @param dat Output from [format_data()]. Must have a SNP name column (`SNP`), SNP chromosome column (`chr_name`), SNP position column (`chrom_start`). If `id.exposure` or `pval.exposure` not present they will be generated.
  16. #' @param clump_kb Clumping window, default is `10000`.
  17. #' @param clump_r2 Clumping r2 cutoff. Note that this default value has recently changed from `0.01` to `0.001`.
  18. #' @param clump_p1 Clumping sig level for index SNPs, default is `1`.
  19. #' @param pop Super-population to use as reference panel. Default = `"EUR"`. Options are `"EUR"`, `"SAS"`, `"EAS"`, `"AFR"`, `"AMR"`. `'legacy'` also available - which is a previously used version of the EUR panel with a slightly different set of markers
  20. #' @param bfile If this is provided then will use the API. Default = `NULL`
  21. #' @param plink_bin If `NULL` and `bfile` is not `NULL` then will detect packaged plink binary for specific OS. Otherwise specify path to plink binary. Default = `NULL`
  22. #'
  23. #' @export
  24. #' @return Data frame
  25. clump_data <- function(
  26. dat,
  27. clump_kb = 10000,
  28. clump_r2 = 0.001,
  29. clump_p1 = 1,
  30. pop = "EUR",
  31. bfile = NULL,
  32. plink_bin = NULL
  33. ) {
  34. # .Deprecated("ieugwasr::ld_clump()")
  35. pval_column <- "pval.exposure"
  36. if (!is.data.frame(dat)) {
  37. stop("Expecting data frame returned from format_data().")
  38. }
  39. if ("pval.exposure" %in% names(dat) && "pval.outcome" %in% names(dat)) {
  40. message("pval.exposure and pval.outcome columns present. Using pval.exposure for clumping.")
  41. } else if (!"pval.exposure" %in% names(dat) && "pval.outcome" %in% names(dat)) {
  42. message("pval.exposure column not present, using pval.outcome column for clumping.")
  43. pval_column <- "pval.outcome"
  44. } else if (!"pval.exposure" %in% names(dat)) {
  45. message("pval.exposure not present, setting clumping p-value to 0.99 for all variants")
  46. dat$pval.exposure <- 0.99
  47. } else {
  48. pval_column <- "pval.exposure"
  49. }
  50. if (!"id.exposure" %in% names(dat)) {
  51. dat$id.exposure <- random_string(1)
  52. }
  53. d <- data.frame(rsid = dat$SNP, pval = dat[[pval_column]], id = dat$id.exposure)
  54. out <- ieugwasr::ld_clump(
  55. d,
  56. clump_kb = clump_kb,
  57. clump_r2 = clump_r2,
  58. clump_p = clump_p1,
  59. pop = pop,
  60. bfile = bfile,
  61. plink_bin = plink_bin
  62. )
  63. keep <- paste(dat$SNP, dat$id.exposure) %in% paste(out$rsid, out$id)
  64. return(dat[keep, ])
  65. }
  66. #' Get LD matrix for list of SNPs
  67. #'
  68. #' This function takes a list of SNPs and searches for them in a specified super-population in the 1000 Genomes phase 3 reference panel.
  69. #' It then creates an LD matrix of r values (signed, and not squared).
  70. #' All LD values are with respect to the major alleles in the 1000G dataset.
  71. #' You can specify whether the allele names are displayed.
  72. #'
  73. #' @details
  74. #' The data used for generating the LD matrix includes only bi-allelic SNPs with MAF > 0.01,
  75. #' so it's quite possible that a variant you want to include will be absent.
  76. #' If it is absent, it will be automatically excluded from the results.
  77. #'
  78. #' You can check if your variants are present in the LD reference panel using [ieugwasr::ld_reflookup()].
  79. #'
  80. #' This function does put load on the OpenGWAS servers, which makes life more difficult for other users,
  81. #' and has been limited to analyse only up to 500 variants at a time.
  82. #' We have implemented a method and made available the LD reference panels to perform the operation locally,
  83. #' see [ieugwasr::ld_matrix()] and related vignettes for details.
  84. #'
  85. #' @param snps List of SNPs.
  86. #' @param with_alleles Whether to append the allele names to the SNP names. The default is `TRUE`.
  87. #' @param pop Super-population to use as reference panel. Default = `"EUR"`. Options are `"EUR"`, `"SAS"`, `"EAS"`, `"AFR"`, `"AMR"`. `'legacy'` also available - which is a previously used version of the EUR panel with a slightly different set of markers.
  88. #'
  89. #' @export
  90. #' @return Matrix of LD r values
  91. ld_matrix <- function(snps, with_alleles = TRUE, pop = "EUR") {
  92. # .Deprecated("ieugwasr::ld_matrix()")
  93. ieugwasr::ld_matrix(
  94. variants = snps,
  95. with_alleles = with_alleles,
  96. pop = pop,
  97. x_api_source = x_api_source_header()
  98. )
  99. }

ld.R at commit 5e93ee7, under other · at the source

Overview

Authors: Yuqi Sun1,2,3, Haonan Zheng1,2,4, Lanhui Huang1,2, Min Ma1,2, Rongrong Gu1,2,3, Manqing Wang1,2,3, Si Fang5,6, Yangbo Sun7, Qian Yang1,2,5, Yufang Bi1,2, Jie Zheng1,2,5
  1. Department of Endocrine and Metabolic Diseases, Shanghai Institute of Endocrine and Metabolic Diseases, Ruijin Hospital, Shanghai Jiao Tong University School of Medicine,Shanghai, China
  2. Shanghai National Clinical Research Center for Metabolic Diseases, Key Laboratory for Endocrine and Metabolic Diseases of the National Health Commission of the PR China, Shanghai Key Laboratory for Endocrine Tumor, Shanghai Digital Medicine Innovation Center, Lifecycle Health Management Center, Ruijin Hospital, Shanghai Jiao Tong University School of Medicine,Shanghai, China
  3. College of Health Science and Technology, Shanghai Jiao Tong University School of Medicine,Shanghai, China
  4. College of Basic Medical Science, Shanghai Jiao Tong University School of Medicine,Shanghai, China
  5. MRC Integrative Epidemiology Unit, University of Bristol,Bristol, UK
  6. Population Health Sciences, Bristol Medical School, University of Bristol,Bristol, UK
  7. Department of Preventive Medicine, The University of Tennessee Health Science Center,Memphis, TN USA
Journal: BMC medicine, volume 24, issue 1, article 442
Dates: received 7 October 2025; accepted 9 April 2026; published online 21 May 2026
Type: Research article · Language: English
License: CC BY-NC-ND
Identifiers: DOI 10.1186/s12916-026-04869-x · PMID 42163256 · PMCID PMC13471528 · OpenAlex W4415155464
Open access: gold, a free copy (OpenAlex)
Status: code verified (how the code is found and verified)
Categories: genetics / omics (modality), human (organism), other condition (population)
Methods: Statistics, Smoothing, state filtering, decompositions
Keywords: Aging, DNA methylation, Anti-aging drugs, Anti-diabetic drugs, Mendelian randomization
MeSH: Aging*, Diabetes Mellitus, Type 2*, DNA Methylation*, Hypoglycemic Agents*, Epigenesis, Genetic, Humans, Mendelian Randomization Analysis, Multiomics, Organ Specificity, Quantitative Trait Loci (* major topic)
Topic: Epigenetics and DNA Methylation (Molecular Biology, Biochemistry, Genetics and Molecular Biology), according to OpenAlex
Funding: Roche University Research Fund (20240513); Students’ Innovation Training Program, Shanghai Jiao Tong University, School of Medicine, China (1824955Y); National Key Research and Development Program of China (2022YFC2505203); Noncommunicable Chronic Diseases-National Science and Technology Major Project (2024ZD0531500, 2024ZD0531502); National Natural Science Foundation of China (32500519, 32570728); Shanghai Municipal Education Commission-Gaofeng Clinical Medicine Grant Support (20161307 and 20152508 Round 2)
Citations: not cited yet (Europe PMC); 80 references in the paper

Abstract

The abstract is not reproduced here: the paper's license (CC BY-NC-ND) does not allow it. Read it in the paper, at the publisher or on Europe PMC.

Repositories

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

MRCIEU/TwoSampleMR

License: other
State: the link answers, verified on 28 October 2026
Evidence: files inventoried
Commit: 5e93ee7d8e1f67581acb8134299759389d73efba, 20 October 2026
Languages: R (70)
Size: 240 files, 70 scripts
Software Heritage: not archived
Found in: “Data availability”
Holds: README, license file, CITATION.cff, environment (DESCRIPTION), tests, continuous integration, documentation, 8 notebooks
Tools: data.table (17 files), ggplot2 (10 files), tidyverse (5 files), cowplot (2 files), psych (2 files), car (1 file), glmnet (1 file), randomForest (1 file)
Availability: 2 checks, the latest on 28 October 2026: the link answers
  • 28 October 2026: the link answers
  • 27 September 2026: the link answers
73 files

mglev1n/ldscr

License: other
State: the link answers, verified on 28 September 2026
Evidence: files inventoried
Commit: d6b23694d8d4f6f2120c98a2c410cf1e455b9246, 18 August 2025
Languages: R (14), MATLAB (6)
Size: 67 files, 20 scripts
Software Heritage: archived
Found in: “Data availability”
Holds: README, license file, environment (DESCRIPTION), tests, continuous integration, documentation, 1 notebook
Not found: CITATION.cff
Tools: tidyverse (5 files), data.table (2 files), ggplot2 (2 files)
Availability: 1 check, the latest on 28 September 2026: the link answers
  • 28 September 2026: the link answers
23 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:

  • 2 repositories of the authors' code, each at its verified commit, with its license and how the link was found in the paper;
  • 90 scripts, each with its path and the digest of its content;
  • 6 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.

Code and data availability statement

The paper has a code and data availability statement. Its license (CC BY-NC-ND) does not allow reproducing it here; in short, from what the harvester recognized in it:

Read it in the paper: doi.org/10.1186/s12916-026-04869-x.

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 1, 28 September 2026: the first record

Recorded: type, language, journal, volume, issue, pages, dates, 11 authors, 5 keywords, 10 MeSH terms, 6 funders, 79 references.

Cite

This paper

Sun, Y., Zheng, H., Huang, L., Ma, M., Gu, R., Wang, M., Fang, S., Sun, Y., Yang, Q., Bi, Y., & Zheng, J. (2026). The tissue-specific effects of glucose-lowering drug targets on aging mediated through DNA methylation: a multi-omics genetic study. BMC medicine, 24(1), 442. https://doi.org/10.1186/s12916-026-04869-x

BibTeX

@article{sun2026tissue,
author = {Sun, Yuqi and Zheng, Haonan and Huang, Lanhui and Ma, Min and Gu, Rongrong and Wang, Manqing and Fang, Si and Sun, Yangbo and Yang, Qian and Bi, Yufang and Zheng, Jie},
title = {{The tissue-specific effects of glucose-lowering drug targets on aging mediated through DNA methylation: a multi-omics genetic study}},
journal = {BMC medicine},
year = {2026},
month = may,
volume = {24},
number = {1},
pages = {442},
publisher = {BMC},
issn = {1741-7015},
doi = {10.1186/s12916-026-04869-x},
url = {https://doi.org/10.1186/s12916-026-04869-x},
pmid = {42163256},
pmcid = {PMC13471528}
}

RIS

TY - JOUR
AU - Sun, Yuqi
AU - Zheng, Haonan
AU - Huang, Lanhui
AU - Ma, Min
AU - Gu, Rongrong
AU - Wang, Manqing
AU - Fang, Si
AU - Sun, Yangbo
AU - Yang, Qian
AU - Bi, Yufang
AU - Zheng, Jie
TI - The tissue-specific effects of glucose-lowering drug targets on aging mediated through DNA methylation: a multi-omics genetic study
T2 - BMC medicine
J2 - BMC Med
PY - 2026
DA - 2026/05/21
VL - 24
IS - 1
SP - 442
SN - 1741-7015
PB - BMC
DO - 10.1186/s12916-026-04869-x
UR - https://doi.org/10.1186/s12916-026-04869-x
LA - en
ER -

CSL-JSON

{
"id": "10.1186/s12916-026-04869-x",
"type": "article-journal",
"title": "The tissue-specific effects of glucose-lowering drug targets on aging mediated through DNA methylation: a multi-omics genetic study",
"container-title": "BMC medicine",
"author": [
{
"family": "Sun",
"given": "Yuqi"
},
{
"family": "Zheng",
"given": "Haonan"
},
{
"family": "Huang",
"given": "Lanhui"
},
{
"family": "Ma",
"given": "Min"
},
{
"family": "Gu",
"given": "Rongrong"
},
{
"family": "Wang",
"given": "Manqing"
},
{
"family": "Fang",
"given": "Si"
},
{
"family": "Sun",
"given": "Yangbo"
},
{
"family": "Yang",
"given": "Qian"
},
{
"family": "Bi",
"given": "Yufang"
},
{
"family": "Zheng",
"given": "Jie"
}
],
"container-title-short": "BMC Med",
"volume": "24",
"issue": "1",
"page": "442",
"DOI": "10.1186/s12916-026-04869-x",
"PMID": "42163256",
"PMCID": "PMC13471528",
"ISSN": "1741-7015",
"publisher": "BMC",
"URL": "https://doi.org/10.1186/s12916-026-04869-x",
"language": "en",
"issued": {
"date-parts": [
[
2026,
5,
21
]
]
}
}

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.1007/s00125-022-05743-0 [code]
Evaluating the efficacy and mechanism of metformin targets on reducing Alzheimer's disease risk in the general population: a Mendelian randomisation study.
Journal: Diabetologia
In common: randomForest, glmnet, psych, 5 other tools, genetics / omics, 5 references
[2] doi:10.3389/fpsyt.2023.1303430 [code]
Unraveling shared susceptibility loci and Mendelian genetic associations linking educational attainment with multiple neuropsychiatric disorders.
Journal: Frontiers in psychiatry
In common: randomForest, glmnet, psych, 5 other tools, genetics / omics, 3 references
[3] doi:10.1002/advs.202515675 [code]
Mendelian Randomization and Double Machine Learning Modeling Reveal Brain Imaging-Derived Phenotypes as Functional Contributors to 18 Autoimmune Inflammatory Diseases.
Journal: Advanced science (Weinheim, Baden-Wurttemberg, Germany)
In common: randomForest, glmnet, psych, 5 other tools, genetics / omics, other condition, 2 references
[4] doi:10.3390/ijms251910236 [code]
Pinpointing Novel Plasma and Brain Proteins for Common Ocular Diseases: A Comprehensive Cross-Omics Integration Analysis.
Journal: International journal of molecular sciences
In common: randomForest, glmnet, psych, 5 other tools, genetics / omics, other condition, 2 references
[5] doi:10.1038/s41467-025-64904-y [code]
Genetic underpinnings and causal effects of brain structure and function on chronic pain intensity.
Journal: Nature communications
In common: randomForest, glmnet, psych, 5 other tools, genetics / omics, 2 references
[6] doi:10.1038/s41398-025-03803-8 [code]
Using multimodal cortical parcellations to identify novel regions of the human cerebral cortex associated with cognitive performance.
Journal: Translational psychiatry
In common: randomForest, glmnet, psych, 5 other tools, genetics / omics, 2 references
[7] doi:10.1186/s12885-025-13979-3 [code]
Investigating potential drug targets for the treatment of glioblastoma: a Mendelian randomization study.
Journal: BMC cancer
In common: randomForest, glmnet, psych, 5 other tools, genetics / omics, other condition, 1 reference
[8] doi:10.1038/s41398-025-03437-w [code]
Identification of novel therapeutic targets for cognitive performance and associations with brain health.
Journal: Translational psychiatry
In common: randomForest, glmnet, psych, 5 other tools, genetics / omics, 1 reference
[9] 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: randomForest, glmnet, psych, 5 other tools, genetics / omics, 1 reference
[10] doi:10.1038/s41398-024-03056-x [code]
Identifying novel proteins underlying bipolar disorder via integrating pQTLs of the plasma, CSF, and brain with GWAS summary data.
Journal: Translational psychiatry
In common: randomForest, glmnet, psych, 5 other tools, genetics / omics, 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.1186/s12916-026-04869-x.svg)](https://openscicode.org/badge/doi/10.1186/s12916-026-04869-x)
<!-- oscr-badge:end -->
reStructuredText
.. oscr-badge:start

.. image:: https://openscicode.org/badge/doi/10.1186/s12916-026-04869-x.svg
   :target: https://openscicode.org/badge/doi/10.1186/s12916-026-04869-x
   :alt: OSCR

.. oscr-badge:end
HTML
<!-- oscr-badge:start -->
<a href="https://openscicode.org/badge/doi/10.1186/s12916-026-04869-x"><img src="https://openscicode.org/badge/doi/10.1186/s12916-026-04869-x.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.