Multisite Chronic Pain Reveals Neuro-Immune-Metabolic Dysregulation across Rheumatoid Arthritis and Depression.
The 7 matches · 4 of them tie a paragraph to a whole file, not to given lines: weak matches, whose lines are not tinted
- [1] § Materials and Methods › Causal inference using MR ↔ Codes/4_protein_MR_analysis.R, lines 1–58 · score 0.98 · genetically predicted MCP, genome wide, MR Egger, MR PRESSO, weighted median, conducted bidirectional
- [2] § Results › Causal associations of the identified multi-omic signatures with depression and RA ↔ Codes/4_protein_MR_analysis.R, lines 1–58 · score 0.94 · inverse variance weighted, Mendelian randomization, MR Egger, MR PRESSO, weighted median, odds ratio
- [3] § Materials and Methods › Associations with the incidence of depression and RA ↔ Codes/3_mediation_loadings.R, the whole file · a weak match · score 0.88 · household income, alcohol consumption, incident depression, metabolic syndrome, bidirectional association, sex
- [4] § Results › Prospective association between the identified signatures and incidence of depression and RA ↔ Codes/3_mediation_loadings.R, the whole file · a weak match · score 0.88 · household income, alcohol consumption, confidence interval, baseline RA, incident depression, metabolic syndrome
- [5] § Results › Linear gradients of MCP-related multi-omic signatures across disease burden ↔ Codes/0_anova_linear_analysis.R, the whole file · a weak match · score 0.70 · linear gradient, polynomial trend, disease burden, ANOVA, identified multi omic, MCP related multi
- [6] § Materials and Methods › Multi-omic fusion with reference: MCP ↔ Codes/0_anova_linear_analysis.R, the whole file · a weak match · score 0.62 · way ANOVA, polynomial trend, healthy, linearly, multi omic signatures, identified multi omic
- [7] § Materials and Methods › Associations with the incidence of depression and RA ↔ Codes/1_cox.R, lines 117–166 · score 0.54 · metabolic syndrome, Cox, BMI, alcohol, deprivation, education
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 · 234 lines · 8.3 KB · no license · 2 matches
- ###############################################################################
- ## Script: 4_protein_MR_analysis.R
- ## Purpose:
- ## Causal inference using Mendelian Randomization (MR).
- ## This script conducts bidirectional two-sample MR analyses to examine
- ## whether genetically predicted MCP-related multi-omic signatures exert
- ## causal effects on RA or depression. The section shown here corresponds to
- ## the direction: RA → protein traits, iterating over 119 plasma proteins.
- ##
- ## Methods overview:
- ## – Summary statistics for RA (exposure) and plasma protein GWAS (outcomes)
- ## are imported from independent datasets as described in Supplementary
- ## Table 11.
- ## – Exposure and outcome datasets are harmonised to ensure allele alignment,
- ## allowing automatic strand flips when required.
- ## – MR is performed using:
- ## * Inverse-variance weighted (IVW, primary)
- ## * Weighted median
- ## * Simple median
- ## * MR-Egger regression
- ## * Simple mode / weighted mode
- ## Odds ratios (ORs) and confidence intervals are extracted for all methods.
- ##
- ## – For each of the 119 proteins, the script:
- ## * Reads GWAS summary statistics,
- ## * Harmonises exposure–outcome SNPs,
- ## * Performs MR and heterogeneity tests,
- ## * Optionally runs MR-PRESSO,
- ## * Saves all MR results into protein-specific CSV files,
- ## * Updates a summary table recording final IVW p-values and any
- ## associated error or pleiotropy flags.
- ## Notes:
- ## – All analyses follow the same framework as described in the Methods:
- ## (1) SNP extraction at genome-wide significance,
- ## (2) LD clumping,
- ## (3) harmonisation,
- ## (4) IVW plus complementary MR estimators,
- ## (5) heterogeneity & pleiotropy assessment,
- ## (6) MR-PRESSO correction when applicable.
- ## – This script corresponds to the RA → protein direction; parallel scripts
- ## are used for depression → proteins and multi-omic layers (metabolites,
- ## blood cell traits, biochemistry markers).
- # Reference:
- # Multi-Site Chronic Pain Reveals Shared Neuro-Immune-Metabolic Alterations Underlying Rheumatoid Arthritis and Depression.
- ###############################################################################
- rm(list = ls())
- library(data.table)
- library(TwoSampleMR)
- library(dplyr)
- library(MRPRESSO)
- protein_names <- fread("E:/Project_R/R_code/UKB_project_RA/RA_MR_analysis/protein_name.csv",
- header = TRUE)
- names(protein_names) <- "protein"
- results_summary <- data.table(
- protein = character(),
- pval_method3 = numeric(),
- error_type = character()
- )
- exposure <- fread("E:/Gene_Dataset/RA_MR/finngen_R11_M13_RHEUMA/finngen_R11_M13_RHEUMA",
- header = TRUE)
- exposure <- subset(exposure, pval < 5e-8)
- write.csv(
- exposure,
- 'C:/Users/qianw/AppData/Local/R/win-library/4.4/TwoSampleMR/exposure.csv'
- )
- exposure <- system.file('exposure.csv', package = "TwoSampleMR")
- exposure_exp_dat <- read_exposure_data(
- filename = exposure,
- sep = ",",
- snp_col = "rsids",
- beta_col = "beta",
- se_col = "sebeta",
- effect_allele_col = "alt",
- other_allele_col = "ref",
- eaf_col = "af_alt",
- pval_col = "pval"
- )
- exposure_dat_clumped <- clump_data(
- exposure_exp_dat,
- clump_kb = 1000,
- clump_r2 = 0.01,
- clump_p1 = 1,
- clump_p2 = 1,
- pop = "EUR"
- )
- rm(exposure, exposure_exp_dat)
- for (current_protein in protein_names$protein) {
- tryCatch({
- outcome_file <- sprintf("merged_%s_with_rsid.regenie", current_protein)
- outcome_path <- file.path("E:/Gene_Dataset/UKB_protein_GWAS/protein_merge",
- outcome_file)
- outcome <- fread(outcome_path, header = TRUE)
- outcome$P <- 10 ^ (-outcome$LOG10P)
- c <- merge(exposure_dat_clumped,
- outcome,
- by.x = "SNP",
- by.y = "ID")
- write.csv(c,
- 'C:/Users/qianw/AppData/Local/R/win-library/4.4/TwoSampleMR/outcome.csv')
- rm(c)
- outcome <- system.file('outcome.csv', package = "TwoSampleMR")
- outcome_dat <- read_outcome_data(
- snps = exposure_dat_clumped$SNP,
- filename = outcome,
- sep = ",",
- snp_col = "SNP",
- beta_col = "BETA",
- se_col = "SE",
- effect_allele_col = "ALLELE1",
- other_allele_col = "ALLELE0",
- eaf_col = "A1FREQ",
- pval_col = "P"
- )
- dat <- harmonise_data(exposure_dat = exposure_dat_clumped,
- outcome_dat = outcome_dat)
- result =mr(dat, method_list = c("mr_egger_regression","mr_ivw_mre","mr_ivw_fe","mr_egger_regression_bootstrap",
- "mr_simple_median","mr_weighted_median","mr_simple_mode","mr_weighted_mode"))
- or <- generate_odds_ratios(result)
- output_path <- sprintf(
- "E:/Project_R/R_code/UKB_project_RA/RA_MR_analysis/results_protein2/%s_RA.csv",
- current_protein
- )
- write.csv(or, output_path, row.names = FALSE)
- hetegeneity<-mr_heterogeneity(dat)
- q_pval <- hetegeneity %>%
- filter(method == "Inverse variance weighted") %>%
- pull(Q_pval) %>%
- signif(3)
- if (length(q_pval) == 1 && !is.na(q_pval)) {
- ivw_method <- ifelse(q_pval < 0.05,
- "Inverse variance weighted (multiplicative random effects)",
- "Inverse variance weighted (fixed effects)")
- ivw_pval <- or %>%
- filter(method == ivw_method) %>%
- pull(pval)
- if (length(ivw_pval) == 0) {
- ivw_pval <- NA
- error_reason <- paste0("OR 表中未找到 ", ivw_method)
- } else {
- error_reason <- ""
- }
- } else {
- ivw_pval <- NA
- error_reason <- "异质性检验 Q 值缺失或无效"
- }
- pleitropy<-mr_pleiotropy_test(dat)
- if (!is.na(ivw_pval) && ivw_pval < 0.05 && pleitropy$pval < 0.05) {
- mr_presso_results <- mr_presso(BetaOutcome = "beta.outcome",
- BetaExposure = "beta.exposure",
- SdOutcome = "se.outcome",
- SdExposure = "se.exposure",
- OUTLIERtest = TRUE,
- DISTORTIONtest = TRUE,
- data = dat,
- NbDistribution = 5000,
- SignifThreshold = 0.05)
- outlier_indices <- mr_presso_results$`MR-PRESSO results`$`Distortion Test`$`Outliers Indices`
- outlier_snps <- dat$SNP[outlier_indices]
- dat_clean <- subset(dat, !(SNP %in% outlier_snps))
- result_clean <- mr(dat_clean, method_list = c("mr_egger_regression","mr_ivw_mre","mr_ivw_fe","mr_egger_regression_bootstrap",
- "mr_simple_median","mr_weighted_median","mr_simple_mode","mr_weighted_mode"))
- or_clean <- generate_odds_ratios(result_clean)
- output_path <- sprintf(
- "E:/Project_R/R_code/UKB_project_RA/RA_MR_analysis/results_protein2/upgrade_according to Preitropy/%s_RA.csv",
- current_protein
- )
- write.csv(or_clean, output_path, row.names = FALSE)
- ivw_pval <- or_clean %>%
- filter(method == ivw_method) %>%
- pull(pval)
- } else {
- message("未触发 MR-PRESSO(因 IVW 或 pleiotropy 不显著)")
- }
- # 更新汇总表
- results_summary <- rbindlist(list(
- results_summary,
- list(
- protein = current_protein,
- pval_method3 = ifelse(length(ivw_pval) == 1, ivw_pval, NA),
- error_type = error_reason
- )
- ))
- }, error = function(e) {
- results_summary <<- rbindlist(list(
- results_summary,
- list(
- protein = current_protein,
- pval_method3 = NA,
- error_type = e$message
- )
- ))
- message(sprintf("[错误] %s: %s", current_protein, e$message))
- })
- }
- output_summary_path <- "E:/Project_R/R_code/UKB_project_RA/RA_MR_analysis/results_protein2/summary_pvals_RA_protein.csv"
- write.csv(
- results_summary,
- file = output_summary_path,
- row.names = FALSE,
- fileEncoding = "GBK"
- )
4_protein_MR_analysis.R at commit 171e76e, no license · at the source
Overview
- State Key Laboratory of Cognitive Neuroscience and Learning, Beijing Normal University, Beijing, China
- Department of Psychiatry, Melbourne Medical School, The University of Melbourne, Melbourne, Australia
- Department of Biomedical Engineering, Faculty of Engineering and Information Technology, The University of Melbourne, Melbourne, Australia
- Tri-institutional Center for Translational Research in Neuroimaging and Data Science (TReNDS), Georgia State University, Georgia Institute of Technology, and Emory University, Atlanta, GA 30303, USA
- Center for Addiction Medicine, Massachusetts General Hospital, Boston, MA 02114, USA
- Department of Psychiatry, Massachusetts General Hospital and Harvard Medical School, Boston, MA 02115, USA
- China Mobile Research Institute, Beijing 100032, China
- School of Education, Ludong University, Yantai 264025, China
- School of Medical Imaging, Shandong Second Medical University, Weifang 261053, China
- Medical Imaging Center Affiliated Hospital of Shandong Second Medical University, Weifang 261031, China
- Hengqin Lab, Zhuhai, Guangdong, China
- IDG/McGovern Institute for Brain Research, Beijing Normal University, Beijing, China
Abstract
Multisite chronic pain (MCP) frequently co-occurs with immune and depressive disorders, yet whether it reflects coordinated cross-domain multi-omic dysregulation remains unknown. Using UK Biobank data (19,484 baseline participants; 32,870 to 399,476 for 15.9-year follow-up), we identified MCP-related multi-omic signatures spanning 59 biochemical measures, 168 metabolites, and 2,920 proteins. Notably, these signatures showed graded dysregulation [controls < depression < rheumatoid arthritis (RA) < comorbidity] with increasing disease burden, were associated with increased risk of incident RA and depression, and partially mediated their bidirectional association. We further identified HNMT as a depression risk factor, FGF21 as an RA risk factor, MME as a depression protective factor, and platelet count/
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 7 matches between paragraphs and lines of code.
qianwang-brain/Pain_RheumatoidArthritic_Depression_Fusion
171e76e44b9f36fb7aadc44c9e364f3ff3cbc9fd, 11 December 2025Availability: 1 check, the latest on 27 September 2026: the link answers
- 27 September 2026: the link answers
7 files
- Codes/
0_anova_linear_analysis. , R, 48 lines, 2 matchesR - Codes/
1_cox.R , R, 182 lines, 1 match - Codes/
2_cox.R , R, 83 lines - Codes/
3_mediation_loadings.R , R, 90 lines, 2 matches - Codes/
4_protein_MR_analysis.R , R, 234 lines, 2 matches - Codes/
5_MR_plot_forest.R , R, 67 lines - README.md, Text, 47 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;
- 6 scripts, each with its path and the digest of its content;
- 7 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
Datasets cited
- ukbiobank.ac.uk/
enable-your-research/ , at UK Biobank; found in “Data Availability”apply-for-access
Data Availability
The data used in this study were obtained from the UK Biobank under an approved application and are available through the UK Biobank Access Management System (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 1, 27 September 2026: the first record
Recorded: type, language, journal, volume, pages, dates, 15 authors, 2 funders, 74 references.
Cite
This paper
Wang, Q., Tian, Y. E., Zalesky, A., Wang, P., Fu, Z., Feng, G., Zhi, D., Xu, M., Wang, C., Wang, X., Wang, X., Qin, P., Calhoun, V. D., Jiang, R., & Sui, J. (2026). Multisite Chronic Pain Reveals Neuro-Immune-Metabolic Dysregulation across Rheumatoid Arthritis and Depression. Research (Washington, D.C.), 9, 1298. https://
BibTeX
@article{wang2026multisi
author = {Wang, Qian and Tian, Ye Ella and Zalesky, Andrew and Wang, Peng and Fu, Zening and Feng, Guozheng and Zhi, Dongmei and Xu, Ming and Wang, Chunyang and Wang, Xiaoli and Wang, Xizhen and Qin, Peiwu and Calhoun, Vince D. and Jiang, Rongtao and Sui, Jing},
title = {{Multisite Chronic Pain Reveals Neuro-Immune-Metabolic Dysregulation across Rheumatoid Arthritis and Depression}},
journal = {Research (Washington, D.C.)},
year = {2026},
month = jun,
volume = {9},
pages = {1298},
publisher = {AAAS Science Partner Journal Program},
issn = {2639-5274},
doi = {10.34133/
url = {https://
pmid = {42317795},
pmcid = {PMC13272895}
}
RIS
TY - JOUR
AU - Wang, Qian
AU - Tian, Ye Ella
AU - Zalesky, Andrew
AU - Wang, Peng
AU - Fu, Zening
AU - Feng, Guozheng
AU - Zhi, Dongmei
AU - Xu, Ming
AU - Wang, Chunyang
AU - Wang, Xiaoli
AU - Wang, Xizhen
AU - Qin, Peiwu
AU - Calhoun, Vince D.
AU - Jiang, Rongtao
AU - Sui, Jing
TI - Multisite Chronic Pain Reveals Neuro-Immune-Metabolic Dysregulation across Rheumatoid Arthritis and Depression
T2 - Research (Washington, D.C.)
J2 - Research (Wash D C)
PY - 2026
DA - 2026/
VL - 9
SP - 1298
SN - 2639-5274
PB - AAAS Science Partner Journal Program
DO - 10.34133/
UR - https://
LA - en
ER -
CSL-JSON
{
"id": "10.34133/
"type": "article-journal",
"title": "Multisite Chronic Pain Reveals Neuro-Immune-Metabolic Dysregulation across Rheumatoid Arthritis and Depression",
"container-title": "Research (Washington, D.C.)",
"author": [
{
"family": "Wang",
"given": "Qian"
},
{
"family": "Tian",
"given": "Ye Ella"
},
{
"family": "Zalesky",
"given": "Andrew"
},
{
"family": "Wang",
"given": "Peng"
},
{
"family": "Fu",
"given": "Zening"
},
{
"family": "Feng",
"given": "Guozheng"
},
{
"family": "Zhi",
"given": "Dongmei"
},
{
"family": "Xu",
"given": "Ming"
},
{
"family": "Wang",
"given": "Chunyang"
},
{
"family": "Wang",
"given": "Xiaoli"
},
{
"family": "Wang",
"given": "Xizhen"
},
{
"family": "Qin",
"given": "Peiwu"
},
{
"family": "Calhoun",
"given": "Vince D."
},
{
"family": "Jiang",
"given": "Rongtao"
},
{
"family": "Sui",
"given": "Jing"
}
],
"container-title-short":
"volume": "9",
"page": "1298",
"DOI": "10.34133/
"PMID": "42317795",
"PMCID": "PMC13272895",
"ISSN": "2639-5274",
"publisher": "AAAS Science Partner Journal Program",
"URL": "https://
"language": "en",
"issued": {
"date-parts": [
[
2026,
6,
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/s41467-026-76676-0 [code]
- Determinants of functional burden pleiotropy and gene dosage responses across human traits.Journal: Nature communicationsIn common: data.table, ggplot2, tidyverse, ukbiobank.ac.uk/enable-your-research/apply-for-access, genetics / omics, 4 references
- [2] doi:10.1038/s41467-026-71738-9 [code]
- Genetic landscape of adult executive function reveals a cell-type-specific developmental origin.Journal: Nature communicationsIn common: car, data.table, ggplot2, 1 other tool, ukbiobank.ac.uk/enable-your-research/apply-for-access, genetics / omics, 1 reference
- [3] doi:10.7554/elife.108109 [code]
- Multimodal MRI marker of cognition explains the association between cognition and mental health in the UK Biobank.Journal: eLifeIn common: data.table, ggplot2, ukbiobank.ac.uk/enable-your-research/apply-for-access, 3 references
- [4] doi:10.1038/s41467-026-73262-2 [code]
- Robust but independent sex differences in human brain function, structure, and behavior.Journal: Nature communicationsIn common: car, ggplot2, tidyverse, ukbiobank.ac.uk/enable-your-research/apply-for-access, 1 reference
- [5] doi:10.1073/pnas.2516601123 [code]
- Unveiling the glymphatic system's role in brain aging: A comprehensive biomarker and modifiable intervention target.Journal: Proceedings of the National Academy of Sciences of the United States of AmericaIn common: survival, data.table, ggplot2, 1 other tool, clinical / translational, 2 references
- [6] doi:10.1038/s41398-026-04137-9 [code]
- An integrative mendelian randomisation and drug mechanism framework for target prioritisation and therapeutic repurposing in major depression.Journal: Translational psychiatryIn common: data.table, ukbiobank.ac.uk/enable-your-research/apply-for-access, depression, clinical / translational, genetics / omics, 1 reference
- [7] doi:10.1016/j.isci.2026.115657 [code]
- Integration of machine learning to develop a disulfidptosis model for predicting glioma prognosis, immunotherapy response, and drug.Journal: iScienceIn common: survival, car, data.table, 2 other tools, clinical / translational
- [8] doi:10.1093/bioinformatics/btag592 [code]
- Network-based stratification of allele-specific expression reveals patient subgroups in Huntington's disease.Journal: Bioinformatics (Oxford, England)In common: survival, car, data.table, 2 other tools, genetics / omics
- [9] doi:10.1038/s44220-026-00680-y [code]
- The neuroimaging correlates of depression established across six large-scale population datasets.Journal: Nature. Mental healthIn common: ggplot2, tidyverse, ukbiobank.ac.uk/enable-your-research/apply-for-access, depression, 1 reference
- [10] doi:10.1016/j.isci.2026.117031 [code]
- Plasma metabolomic signatures of migraine in 479,760 adults.Journal: iScienceIn common: survival, data.table, ggplot2, 1 other tool, pain, clinical / translational, genetics / omics
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, 6 scripts, and 7 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:088c3240f00bb37a…
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.
