Shared genetic and neuroimmune architecture links type 1 diabetes with neurocognitive traits.
The 4 matches
- [1] § Methods › Mendelian randomization analyses › Sensitivity analyses ↔ MR/MR.R, lines 79–145 · score 0.68 · MR Egger regression, weighted median, IVW, exposure, pleiotropy
- [2] § Results › Bidirectional Mendelian randomization identifies directional and reciprocal associations between T1D and neurocognitive traits ↔ MR/MR.R, lines 79–145 · score 0.67 · Odds ratios, MR Egger, weighted median, standard errors, IVW
- [3] § Methods › Mendelian randomization analyses › Instrument selection and harmonization ↔ MR/MR.R, lines 36–77 · score 0.61 · LD clumping, genome wide, IVs, r2, alleles, exposure
- [4] § Methods › Study datasets and quality control ↔ conjFDR/step2_run_pleioFDR.sh, lines 84–148 · score 0.54 · minor allele frequency, MAF, ambiguous, LD, SNPs
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 · 145 lines · 5 KB · no license · 3 matches
- # --- mr_T1D_to_PD.R ---
- # One-shot bidirectional MR: T1D (exposure) -> PD (outcome)
- # IVs: P < 5e-8, F >= 10; LD clumping r2 < 0.001 (other clump params default)
- library(TwoSampleMR)
- library(data.table)
- library(openxlsx)
- library(genetics.binaRies)
- setDTthreads(threads = 0)
- # ========= Paths (edit if needed) =========
- gwas_dir <- "/vast/palmer/pi/alagpulinsa/Annie/T1D_ALL_HT/GWAS/GWAS"
- exposure_file <- file.path(gwas_dir, "T1D.tsv") # exposure: T1D
- outcome_file <- file.path(gwas_dir, "PD.tsv") # outcome: PD
- # PLINK and LD reference (EUR) for clumping
- plink_bin <- genetics.binaRies::get_plink_binary()
- ld_ref_bfile <- "/vast/palmer/pi/alagpulinsa/Annie/tools/MR/EUR"
- # Output
- output_dir <- "/vast/palmer/pi/alagpulinsa/Annie/T1D_ALL_HT/mr_result/T1D_to_PD"
- dir.create(output_dir, showWarnings = FALSE, recursive = TRUE)
- out_xlsx <- file.path(output_dir, "T1D_PD.xlsx")
- # ========= Helper: odds ratios sheet =========
- add_or_sheet <- function(wb, mr_res, sheet = "odds_ratios") {
- if (is.null(mr_res) || nrow(mr_res) == 0) return(invisible(NULL))
- or_tab <- tryCatch(generate_odds_ratios(mr_res), error = function(e) NULL)
- if (!is.null(or_tab)) {
- addWorksheet(wb, sheet)
- writeData(wb, sheet, or_tab)
- }
- }
- # ========= 1) Build exposure IVs (T1D) =========
- message("Reading exposure (T1D) from: ", exposure_file)
- exp_raw <- fread(exposure_file)
- # Standardize to TwoSampleMR format
- exp_dt <- data.table(
- SNP = exp_raw$variant_id,
- chr.exposure = exp_raw$chromosome,
- pos.exposure = exp_raw$base_pair_location,
- effect_allele.exposure = exp_raw$effect_allele,
- other_allele.exposure = exp_raw$other_allele,
- eaf.exposure = exp_raw$effect_allele_frequency,
- beta.exposure = exp_raw$beta,
- se.exposure = exp_raw$standard_error,
- pval.exposure = exp_raw$p_value,
- exposure = "T1D",
- mr_keep.exposure = TRUE,
- pval_origin.exposure = "reported",
- id.exposure = "T1D",
- data_source.exposure = "textfile"
- )
- # Remove duplicates and apply genome-wide significance + F-stat >= 10
- exp_dt <- exp_dt[!duplicated(SNP)]
- exp_dt[, F_stat := (beta.exposure / se.exposure)^2]
- exp_dt <- exp_dt[pval.exposure < 5e-8 & F_stat >= 10]
- if (nrow(exp_dt) == 0L) {
- stop("No genome-wide significant (P<5e-8) and strong (F>=10) SNPs for T1D.")
- }
- message("Candidate IVs before clumping: ", nrow(exp_dt))
- # LD clumping at r2 < 0.001; all other clump params: defaults
- exp_iv <- clump_data(
- exp_dt,
- bfile = ld_ref_bfile,
- plink_bin = plink_bin,
- clump_r2 = 0.001
- )
- if (nrow(exp_iv) == 0L) stop("No instruments left after LD clumping (r2<0.001).")
- message("IVs after clumping: ", nrow(exp_iv))
- # ========= 2) Load outcome data (PD) on IV SNPs =========
- message("Reading outcome (PD) from: ", outcome_file)
- out_dat <- read_outcome_data(
- filename = outcome_file,
- snps = exp_iv$SNP,
- sep = "\t",
- snp_col = "variant_id",
- beta_col = "beta",
- se_col = "standard_error",
- effect_allele_col = "effect_allele",
- other_allele_col = "other_allele",
- pval_col = "p_value"
- )
- out_dat$id.outcome <- "PD"
- # ========= 3) Harmonise =========
- H <- harmonise_data(exposure_dat = exp_iv, outcome_dat = out_dat)
- message("SNPs before harmonisation: ", nrow(exp_iv))
- message("SNPs retained (mr_keep==TRUE) pre-NA filtering: ", sum(H$mr_keep == TRUE, na.rm = TRUE))
- # Keep valid rows
- H <- H[H$mr_keep == TRUE, ]
- H <- H[complete.cases(H$beta.exposure, H$beta.outcome, H$se.exposure, H$se.outcome), ]
- nsnp <- nrow(H)
- message("SNPs retained after filtering: ", nsnp)
- if (nsnp == 0L) stop("No SNPs remain for MR after harmonisation and filtering.")
- # ========= 4) Run MR (no iteration; one analysis) =========
- # Methods: choose minimally necessary set; if nsnp == 1 → Wald ratio. Otherwise use defaults below.
- method_list <- if (nsnp == 1L) {
- c("mr_wald_ratio")
- } else {
- c("mr_ivw_mre", "mr_weighted_median", "mr_egger_regression")
- }
- mr_res <- mr(H, method_list = method_list)
- # ========= 5) (Optional by defaults) Heterogeneity / Pleiotropy when applicable =========
- hetero <- if (nsnp > 1L) tryCatch(mr_heterogeneity(H), error = function(e) NULL) else NULL
- pleio <- if (nsnp > 2L) tryCatch(mr_pleiotropy_test(H), error = function(e) NULL) else NULL
- # ========= 6) Save results =========
- wb <- createWorkbook()
- add_or_sheet(wb, mr_res, sheet = "odds_ratios")
- # Also keep main MR table
- if (!is.null(mr_res) && nrow(mr_res) > 0) {
- addWorksheet(wb, "mr_results")
- writeData(wb, "mr_results", mr_res)
- }
- # Diagnostics if available
- if (!is.null(hetero)) {
- addWorksheet(wb, "heterogeneity_test")
- writeData(wb, "heterogeneity_test", hetero)
- }
- if (!is.null(pleio)) {
- addWorksheet(wb, "pleiotropy_test")
- writeData(wb, "pleiotropy_test", pleio)
- }
- # Always save harmonised data
- addWorksheet(wb, "H_data")
- writeData(wb, "H_data", H)
- saveWorkbook(wb, out_xlsx, overwrite = TRUE)
- message("Saved MR results to: ", out_xlsx)
MR.R at commit fa04ad4, no license · at the source
Overview
- Yale Center for Molecular & Systems Metabolism, Yale University School of Medicine,New Haven, CT USA
- Department of Comparative Medicine, Yale University School of Medicine,New Haven, CT USA
- Program of Computational Biology and Bioinformatics, Yale University,New Haven, CT 06510 USA
- Department of Neurology, Yale University School of Medicine,New Haven, CT USA
- Department of Neuroscience, Yale University School of Medicine,New Haven, CT USA
- Department of Chronic Disease Epidemiology, Yale School of Public Health,New Haven, CT USA
- Center for Perinatal, Pediatric and Environmental Epidemiology, Yale School of Public Health,New Haven, CT USA
- Institute for Genomic Health, Icahn School of Medicine at Mount Sinai,New York, NY USA
- Department of Genetics and Genomic Sciences, Icahn School of Medicine at Mount Sinai,New York, NY USA
Abstract
Type 1 diabetes, particularly with childhood onset, is associated with altered neurocognitive traits, yet the underlying biological mechanisms are unclear. Here, we integrate genome-wide association results with single-cell epigenomic profiles and show that type 1 diabetes heritability is enriched in accessible chromatin of human brain-resident cells, most notably microglia, across neurodevelopment into adulthood. Bonferroni-corrected cross-trait genetic correlation analyses reveal negative correlations of type 1 diabetes with intelligence, executive function, and bipolar disorder, and a positive correlation with myasthenia gravis. Conjunctional false discovery rate analysis identifies pleiotropic loci jointly influencing type 1 diabetes and neurocognitive traits, including the 17q21.31 neurogenomic hub. Mendelian randomization further demonstrates protective effects of educational attainment, intelligence, Alzheimer’s disease, and bipolar disorder on type 1 diabetes risk, whereas liability to multiple sclerosis and myasthenia gravis increases type 1 diabetes risk. In the reverse direction, liability to type 1 diabetes is associated with increased risk of myasthenia gravis. We identify several gene expression regulatory variants in brain and immune cells that jointly influence type 1 diabetes and neurocognitive traits, some of which show concordant differential expression in disease-affected versus control tissue. Together, these findings highlight pleiotropic genetic and neuroimmune mechanisms that link type 1 diabetes with cognition and neuropsychiatric disease risk.
Reproduced under the paper's license (CC BY), from the paper cited above.
Repositories
Its files are read in the Code ↔ Paper reader above, with 4 matches between paragraphs and lines of code.
AlagsLabTeam/T1D-NEURO
fa04ad4e311f10779fdf2f3a04c53b270ba32d6e, 11 September 2025Availability: 1 check, the latest on 30 September 2026: the link answers
- 30 September 2026: the link answers
10 files
- LDSC/
LDSC_T1D_Intelligence.sh , Shell, 46 lines - MR/
MR.R , R, 145 lines, 3 matches - MiXeR/
1_univar_run.sh , Shell, 50 lines - MiXeR/
2_bivar_run.sh , Shell, 53 lines - S-LDSC/
1_sldsc_t1d_brain.sh , Shell, 25 lines - SCAVENGE/
T1D_Brain_Scavenege.Rmd , R, 237 lines - conjFDR/
step1_convert_GWAS.sh , Shell, 43 lines - conjFDR/
step2_run_pleioFDR.sh , Shell, 150 lines, 1 match - conjFDR/
transfer_table.R , R, 50 lines - README.md, Text, 1 line
Zenodo 18793533
Availability: 1 check, the latest on 30 September 2026: the link answers (HTTP 200)
- 30 September 2026: the link answers (HTTP 200)
10 files
- LDSC/
LDSC_T1D_Intelligence.sh , Shell, 46 lines - MR/
MR.R , R, 145 lines - MiXeR/
1_univar_run.sh , Shell, 50 lines - MiXeR/
2_bivar_run.sh , Shell, 53 lines - S-LDSC/
1_sldsc_t1d_brain.sh , Shell, 25 lines - SCAVENGE/
T1D_Brain_Scavenege.Rmd , R, 237 lines - conjFDR/
step1_convert_GWAS.sh , Shell, 43 lines - conjFDR/
step2_run_pleioFDR.sh , Shell, 150 lines - conjFDR/
transfer_table.R , R, 50 lines - README.md, Text, 1 line
Code availability
Code for this study is available at GitHub (https://
Reproduced under the paper's license (CC BY), from the paper cited above.
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;
- 18 scripts, each with its path and the digest of its content;
- 4 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 availability
Genome-wide association study (GWAS) summary statistics used in this study are publicly available from the original consortia and repositories listed in Supplementary Table 1, with accession links and/
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 1, 30 September 2026: the first record
Recorded: type, language, journal, volume, issue, pages, dates, 12 authors, 4 keywords, 15 MeSH terms, 1 funder, 81 references.
Cite
This paper
Saarah, P., Syeda, Z. A., Xu, Z., Dong, Y., Jiang, H., Shanguhyia, M., Roy, S., Zhu, B., Zhang, L., Dewan, A. T., Asgari, S., & Alagpulinsa, D. A. (2026). Shared genetic and neuroimmune architecture links type 1 diabetes with neurocognitive traits. Nature communications, 17(1), 4057. https://
BibTeX
@article{saarah2026share
author = {Saarah, Priscilla and Syeda, Zehra A. and Xu, Ziang and Dong, Yikai and Jiang, Habei and Shanguhyia, Michelle and Roy, Sourav and Zhu, Biqing and Zhang, Le and Dewan, Andrew T. and Asgari, Samira and Alagpulinsa, David A.},
title = {{Shared genetic and neuroimmune architecture links type 1 diabetes with neurocognitive traits}},
journal = {Nature communications},
year = {2026},
month = mar,
volume = {17},
number = {1},
pages = {4057},
publisher = {Nature Publishing Group},
issn = {2041-1723},
doi = {10.1038/
url = {https://
pmid = {41826324},
pmcid = {PMC13139607}
}
RIS
TY - JOUR
AU - Saarah, Priscilla
AU - Syeda, Zehra A.
AU - Xu, Ziang
AU - Dong, Yikai
AU - Jiang, Habei
AU - Shanguhyia, Michelle
AU - Roy, Sourav
AU - Zhu, Biqing
AU - Zhang, Le
AU - Dewan, Andrew T.
AU - Asgari, Samira
AU - Alagpulinsa, David A.
TI - Shared genetic and neuroimmune architecture links type 1 diabetes with neurocognitive traits
T2 - Nature communications
J2 - Nat Commun
PY - 2026
DA - 2026/
VL - 17
IS - 1
SP - 4057
SN - 2041-1723
PB - Nature Publishing Group
DO - 10.1038/
UR - https://
LA - en
ER -
CSL-JSON
{
"id": "10.1038/
"type": "article-journal",
"title": "Shared genetic and neuroimmune architecture links type 1 diabetes with neurocognitive traits",
"container-title": "Nature communications",
"author": [
{
"family": "Saarah",
"given": "Priscilla"
},
{
"family": "Syeda",
"given": "Zehra A."
},
{
"family": "Xu",
"given": "Ziang"
},
{
"family": "Dong",
"given": "Yikai"
},
{
"family": "Jiang",
"given": "Habei"
},
{
"family": "Shanguhyia",
"given": "Michelle"
},
{
"family": "Roy",
"given": "Sourav"
},
{
"family": "Zhu",
"given": "Biqing"
},
{
"family": "Zhang",
"given": "Le"
},
{
"family": "Dewan",
"given": "Andrew T."
},
{
"family": "Asgari",
"given": "Samira"
},
{
"family": "Alagpulinsa",
"given": "David A."
}
],
"container-title-short":
"volume": "17",
"issue": "1",
"page": "4057",
"DOI": "10.1038/
"PMID": "41826324",
"PMCID": "PMC13139607",
"ISSN": "2041-1723",
"publisher": "Nature Publishing Group",
"URL": "https://
"language": "en",
"issued": {
"date-parts": [
[
2026,
3,
13
]
]
}
}
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/s43856-026-01510-z [code]
- Mapping genetic convergence across brain structure, mental health, and cardiometabolic disease.Journal: Communications medicineIn common: data.table, tidyverse, genetics / omics, other condition, 9 references
- [2] doi:10.1371/journal.pcbi.1014422 [code]
- Deciphering cell type-specific causal genetic effects on brain imaging-derived phenotypes and disorders with single-cell Mendelian randomization.Journal: PLoS computational biologyIn common: data.table, tidyverse, genetics / omics, cellular / molecular, 7 references
- [3] doi:10.1186/s12967-026-08266-z [code]
- Single-cell multi-omic integration analysis prioritizes druggable genes and reveals cell-type-specific causal effects in glioblastomagenesis.Journal: Journal of translational medicineIn common: igraph, data.table, tidyverse, genetics / omics, other condition, cellular / molecular, 5 references
- [4] doi:10.1097/md.0000000000050109
- The gut-immune-brain axis in CNS tumors: Causal roles of microbiota and inflammatory proteins unveiled by Mendelian randomization and single-cell transcriptomics.Journal: MedicineIn common: genetics / omics, other condition, cellular / molecular, 6 references
- [5] 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 AmericaIn common: data.table, tidyverse, genetics / omics, cellular / molecular, 5 references
- [6] doi:10.1002/brb3.71366
- Integrative Multi-Omics Mendelian Randomization Highlights Causal Autophagy-Related Genes for Amyotrophic Lateral Sclerosis.Journal: Brain and behaviorIn common: genetics / omics, other condition, cellular / molecular, 6 references
- [7] doi:10.1002/gps3.70017 [code]
- Shared genetic variants across substance use disorders implicate common neurobiological pathways, a genome-wide mixed methods study.Journal: General psychiatryIn common: data.table, genetics / omics, other condition, cellular / molecular, 5 references
- [8] doi:10.1038/s41467-026-70374-7 [code]
- scTWAS: a powerful statistical framework for single-cell transcriptome-wide association studies.Journal: Nature communicationsIn common: data.table, tidyverse, Alzheimer's / dementia, genetics / omics, cellular / molecular, 4 references
- [9] doi:10.21203/rs.3.rs-10380518/v1 [code]
- Shared Genetic Architecture of Premenstrual Disorder and Postpartum Depression: Registry-Based and Genetic EvidenceJournal: Research Square (preprint)In common: data.table, genetics / omics, cellular / molecular, 5 references
- [10] doi:10.1038/s41380-026-03571-x [code]
- Convergent coexpression reveals shared biological mechanisms underlying common and rare variant risk in six neuropsychiatric disorders.Journal: Molecular psychiatryIn common: igraph, data.table, tidyverse, genetics / omics, cellular / molecular, 3 references
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: 2 repositories of the authors' code, each at its verified commit and with its license, 18 scripts, and 4 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:42a1ed6947286c2a…
Add the badge to its README
The badge links the code to this page. Copy one of these into the README of the paper's code: only you decide where it goes, and nothing is changed for you.
Markdown
[, paste the snippet at the top, then “Commit changes…” and, to review it first, “Create a new branch and start a pull request”. You open the pull request; OSCR asks for no permission.
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.
