Genetically predicted white matter microstructure mediates the relationship between risk factors and lacunar stroke.
The 5 matches
- [1] § Methods › Statistical analysis › MR sensitivity analysis ↔ 5-MR-Analysis_Risk_Factors_on_dMRI.R, lines 42–99 · score 0.75 · MR Egger regression, weighted median, weighted mode, MR RAPS, MR PRESSO, Outlier
- [2] § Methods › Statistical analysis › MR sensitivity analysis ↔ 5-MR-Analysis_Risk_Factors_on_dMRI.R, lines 42–99 · score 0.69 · weighted median, weighted mode, MR RAPS, MR Egger, MR PRESSO, SNP
- [3] § Methods › Statistical analysis › MR sensitivity analysis ↔ 4-MR-Analysis_dMRI_on_Lacunar.R, lines 1–40 · score 0.66 · MR Egger regression, weighted median, weighted mode, pleiotropy, IVW, SNP
- [4] § Methods › Statistical analysis › MR sensitivity analysis ↔ 3-MR-Analysis_Risk_Factors_on_Lacunar.R, lines 1–40 · score 0.57 · weighted median, weighted mode, MR Egger, pleiotropic, SNP, instruments
- [5] § Methods › Data sources › Exposures ↔ 1_MR-Preprocessing_Risk_Factors.R, lines 1–38 · score 0.57 · lipoprotein metabolism, FinnGen, hyperlipidaemia, risk factor, hypertension, Exposure
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 · 235 lines · 9.4 KB · no license · 2 matches
- # List of risk factors to analyze
- risk_factors <- c("Hypertension", "Type2Diabetes", "Lipoprotein_Metabolism")
- # List of all IDP traits (assuming you have 288 dMRI traits files)
- idp_files <- list.files(pattern = "exp_dat_IDP_.*\\.csv")
- # Initialize dataframes to store final results
- significant_results <- data.frame()
- heterogeneity_results <- data.frame()
- pleiotropy_results <- data.frame()
- directionality_results <- data.frame()
- # Set significance threshold (adjust this if necessary)
- significance_threshold <- 0.05 / (length(risk_factors) * length(idp_files)) # Bonferroni correction
- # Loop through each risk factor
- for (risk_factor in risk_factors) {
- # Load preprocessed data for the current risk factor
- risk_factor_file <- paste0("exp_dat_", risk_factor, ".csv")
- risk_dat <- read.csv(risk_factor_file)
- # Loop through each IDP trait file
- for (i in seq_along(idp_files)) {
- idp_file <- idp_files[i]
- # Load preprocessed data for the current IDP trait
- idp_dat <- read.csv(idp_file)
- # Extract the IDP name from the file name
- idp_name <- sub(".*exp_dat_IDP_(.*)\\.csv", "\\1", idp_file)
- # Harmonize exposure (risk factor) and outcome (IDP trait) data
- dat <- harmonise_data(
- exposure_dat = risk_dat,
- outcome_dat = idp_dat
- )
- # Filter the data for valid instruments (where mr_keep == TRUE)
- valid_dat <- dat[dat$mr_keep == TRUE, ]
- # Check if there are enough valid SNPs after filtering
- if (is.null(valid_dat) || nrow(valid_dat) < 2) {
- cat("Not enough SNPs in valid instruments for MR analysis between", risk_factor, "and", idp_name, "\n")
- next
- }
- # Perform MR analysis
- res <- mr(valid_dat, method_list = c("mr_ivw", "mr_egger_regression", "mr_weighted_mode", "mr_weighted_median"))
- # Extract IVW method p-value
- ivw_pval <- res[res$method == "Inverse variance weighted", "pval"]
- # Perform MR-RAPS analysis
- mr_raps_result <- mr.raps(valid_dat$beta.exposure, valid_dat$beta.outcome, valid_dat$se.exposure, valid_dat$se.outcome)
- # Organize MR-RAPS results
- mr_raps_df <- data.frame(
- id.exposure = unique(valid_dat$id.exposure),
- id.outcome = unique(valid_dat$id.outcome),
- outcome = unique(valid_dat$outcome),
- exposure = unique(valid_dat$exposure),
- method = "mr_raps",
- nsnp = nrow(valid_dat),
- b = mr_raps_result$beta.hat,
- se = mr_raps_result$beta.se,
- pval = mr_raps_result$beta.p.value
- )
- # Combine MR and MR-RAPS results
- res <- rbind(res, mr_raps_df)
- # Perform MR-PRESSO outlier detection if enough instruments are available
- if (nrow(valid_dat) >= 2) {
- tryCatch({
- presso_result <- run_mr_presso(dat = valid_dat)
- # Create dataframes for MR-PRESSO results
- mr_presso_df <- data.frame(
- analysis = c("Raw", "Outlier-corrected"),
- causal_estimate = presso_result[[1]]$`Main MR results`$`Causal Estimate`,
- sd = presso_result[[1]]$`Main MR results`$Sd,
- t_stat = presso_result[[1]]$`Main MR results`$`T-stat`,
- p_value = presso_result[[1]]$`Main MR results`$`P-value`
- )
- global_test_df <- data.frame(
- rss_obs = presso_result[[1]]$`MR-PRESSO results`$`Global Test`$RSSobs,
- p_value = presso_result[[1]]$`MR-PRESSO results`$`Global Test`$Pvalue
- )
- outlier_test_df <- presso_result[[1]]$`MR-PRESSO results`$`Outlier Test`
- distortion_test_df <- data.frame(
- outliers_indices = presso_result[[1]]$`MR-PRESSO results`$`Distortion Test`$`Outliers Indices`,
- distortion_coefficient = presso_result[[1]]$`MR-PRESSO results`$`Distortion Test`$`Distortion Coefficient`,
- p_value = presso_result[[1]]$`MR-PRESSO results`$`Distortion Test`$Pvalue
- )
- # Combine all MR-PRESSO results into a list
- result_list <- list(
- MR_PRESSO_results = mr_presso_df,
- MR_PRESSO_global_test = global_test_df,
- MR_PRESSO_outlier_test = outlier_test_df,
- MR_PRESSO_distortion_test = distortion_test_df
- )
- # Save each dataframe in the result list to a CSV file
- file_prefix <- gsub(" ", "_", idp_name)
- risk_factor_prefix <- gsub(" ", "_", risk_factor) # Ensure risk factor name has no spaces
- for (name in names(result_list)) {
- write.csv(result_list[[name]],
- file = paste0(i, "_", name, "_", file_prefix, "_", risk_factor_prefix, ".csv"),
- row.names = FALSE)
- }
- # Extract Outlier-corrected results
- main_mr_results <- presso_result[[1]]$`Main MR results`
- outlier_corrected <- main_mr_results[main_mr_results$`MR Analysis` == 'Outlier-corrected', ]
- causal_estimate <- outlier_corrected$`Causal Estimate`
- sd <- outlier_corrected$Sd
- p_value <- outlier_corrected$`P-value`
- # Extract p-values from the Outlier Test
- outlier_test <- presso_result[[1]]$`MR-PRESSO results`$`Outlier Test`
- outlier_test$Pvalue <- as.numeric(gsub("[^0-9.]", "", outlier_test$Pvalue))
- # Calculate the number of outliers with Pvalue < 0.05
- nsnp_outlier <- sum(outlier_test$Pvalue < 0.05, na.rm = TRUE)
- # Calculate the effective number of instruments
- nsnp_effective <- nrow(valid_dat) - nsnp_outlier
- # Create MR-PRESSO Outlier-corrected results dataframe
- mr_presso_outlier_corrected <- data.frame(
- id.exposure = unique(valid_dat$id.exposure),
- id.outcome = unique(valid_dat$id.outcome),
- outcome = unique(valid_dat$outcome),
- exposure = unique(valid_dat$exposure),
- method = "MR-PRESSO_Outlier_corrected",
- nsnp = nsnp_effective,
- b = causal_estimate,
- se = sd,
- pval = p_value
- )
- # Add MR-PRESSO Outlier-corrected results to res dataframe
- res <- rbind(res, mr_presso_outlier_corrected)
- }, error = function(e) {
- message("Error in MR-PRESSO analysis: ", e$message)
- })
- } else {
- message("Not enough instrumental variables for MR-PRESSO analysis. Skipping this step.")
- }
- # Generate odds ratios
- or_df <- generate_odds_ratios(res)
- # Merge results and odds ratios
- result <- merge(res, or_df, by = c("id.exposure", "id.outcome", "outcome", "exposure", "method", "nsnp", "b", "se", "pval"))
- # Calculate overall R^2 and F-statistic
- overall_R2 <- sum(valid_dat$R2)
- overall_R2.easy <- sum(valid_dat$R2.easy)
- k <- nrow(valid_dat) # Number of instruments
- overall_F_statistic <- (overall_R2 * (N - k - 1)) / (k * (1 - overall_R2))
- # Add overall R^2 and F-statistic to result
- result$overall_R2 <- overall_R2
- result$overall_F_statistic <- overall_F_statistic
- # Save MR results to a CSV file
- output_file <- paste0("res_", risk_factor, "_on_", idp_name, ".csv")
- write.csv(result, file = output_file, row.names = FALSE)
- # Check if any "Inverse variance weighted" method p-values are significant
- if (any(res$method == "Inverse variance weighted" & res$pval < significance_threshold)) {
- res$risk_factor <- risk_factor # Add risk factor name column
- res$idp_trait <- idp_name # Add IDP trait column
- res$i <- i # Add loop index column
- significant_results <- rbind(significant_results, res)
- }
- # Visualization: scatter plot
- p1 <- mr_scatter_plot(res, valid_dat)
- ggsave(p1[[1]], file = paste0("scatter_", risk_factor, "_on_", idp_name, ".pdf"), width = 7, height = 7)
- # Single SNP analysis: forest plot
- res_single <- mr_singlesnp(valid_dat)
- p2 <- mr_forest_plot(res_single)
- ggsave(p2[[1]], file = paste0("forest_", risk_factor, "_on_", idp_name, ".pdf"), width = 7, height = 7)
- # Leave-one-out analysis: leave-one-out plot
- res_loo <- mr_leaveoneout(valid_dat)
- p3 <- mr_leaveoneout_plot(res_loo)
- ggsave(p3[[1]], file = paste0("loo_", risk_factor, "_on_", idp_name, ".pdf"), width = 7, height = 7)
- # Funnel plot
- p4 <- mr_funnel_plot(res_single)
- ggsave(p4[[1]], file = paste0("funnel_", risk_factor, "_on_", idp_name, ".pdf"), width = 7, height = 7)
- # Additional analyses:
- # Heterogeneity test
- het <- mr_heterogeneity(valid_dat)
- het$risk_factor <- risk_factor
- het$idp_trait <- idp_name
- het$i <- i # Add loop index column
- heterogeneity_results <- rbind(heterogeneity_results, het)
- # Pleiotropy test
- pleio <- mr_pleiotropy_test(valid_dat)
- pleio$risk_factor <- risk_factor
- pleio$idp_trait <- idp_name
- pleio$i <- i # Add loop index column
- pleiotropy_results <- rbind(pleiotropy_results, pleio)
- # Add loop index column, risk factor name, ivw_pval to Steiger directionality test
- steiger_df$risk_factor <- risk_factor
- steiger_df$idp_trait <- idp_name
- steiger_df$ivw_pval <- ivw_pval
- steiger_df$i <- i
- directionality_results <- rbind(directionality_results, steiger_df)
- }
- }
- # Save significant results to a CSV file
- write.csv(significant_results, "significant_results.csv", row.names = FALSE)
- write.csv(heterogeneity_results, "heterogeneity_results.csv", row.names = FALSE)
- write.csv(pleiotropy_results, "pleiotropy_results.csv", row.names = FALSE)
- write.csv(directionality_results, "directionality_results.csv", row.names = FALSE)
5-MR-Analysis_Risk_Factors_on_dMRI.R at commit 811cc4e, no license · at the source
Overview
- Centre for Rehabilitation Medicine, Rehabilitation & Sports Medicine Research Institute of Zhejiang Province, Department of Rehabilitation Medicine, Zhejiang Provincial People’s Hospital (Affiliated People’s Hospital), Hangzhou Medical College, Hangzhou, Zhejiang, China
- Department of Neurology, Brain Medical Centre, The First Affiliated Hospital of Zhejiang University School of Medicine, Hangzhou, Zhejiang, China
- Wellcome Centre for Human Neuroimaging, Department of Imaging Neuroscience, Institute of Neurology, University College London, London, UK
- Wellcome Centre for Integrative Neuroimaging, FMRIB, Medical Research Council Brain Network Dynamics Unit, Nuffield Department of Clinical Neurosciences, University of Oxford, Oxford, UK
- Department for Clinical and Movement Neurosciences, Institute of Neurology, University College London, London, UK
Abstract
Background and purpose: Lacunar stroke is a complex, multifactorial disease with significant genetic underpinnings. However, the mechanisms through which genetic predispositions and risk factors contribute to its pathogenesis remain poorly understood. We investigated whether genetically predicted white matter (WM) microstructure mediates causal relationships between risk factors and lacunar stroke.
Methods: Data from genome-wide association studies were used to perform two-sample Mendelian randomisation (MR) analyses. Genetic variants associated with risk factors (n=
Results: Hypertension was identified as the strongest risk factor for lacunar stroke (OR=
Conclusions: Hypertension may contribute to lacunar stroke pathogenesis in part through WM microstructure alterations, particularly in the ALIC. MD and ISOVF in the ALIC may serve as structural brain reserves and early biomarkers of hypertension-induced pathophysiology associated with lacunar stroke.
Reproduced under the paper's license (CC BY-NC), from the paper cited above.
Repository
Its files are read in the Code ↔ Paper reader above, with 5 matches between paragraphs and lines of code.
jzhang-neuro/MR_WM_LS
811cc4ed790bdc6dc98307d0dbf28a68fe9769c7, 22 September 2024Availability: 1 check, the latest on 30 September 2026: the link answers
- 30 September 2026: the link answers
8 files
- 1_MR-Preprocessing_Risk_
Factors.R , R, 234 lines, 1 match - 2_MR-Preprocessing_Media
tor_dMRI.R , R, 120 lines - 3-MR-Analysis_Risk_Facto
rs_on_Lacunar.R , R, 215 lines, 1 match - 4-MR-Analysis_dMRI_on_La
cunar.R , R, 212 lines, 1 match - 5-MR-Analysis_Risk_Facto
rs_on_dMRI.R , R, 235 lines, 2 matches - 6-MR-TwoStep_Mediation.R
, R, 98 lines - calculate_R2_F.R, R, 14 lines
- README.md, Text, 33 lines
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;
- 5 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 statement
Data are available in a public, open access repository.
Reproduced under the paper's license (CC BY-NC), 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, 5 keywords, 16 MeSH terms, 3 funders, 43 references.
Cite
This paper
Zhang, J., Wu, M., Neville, D., Zou, Y., Ren, K., Ye, Q., Zhong, S., Xiang, H., Wang, W., Ye, X., Luo, B., & Zhang, L. (2026). Genetically predicted white matter microstructure mediates the relationship between risk factors and lacunar stroke. Stroke and vascular neurology, 11(1), e004208. https://
BibTeX
@article{zhang2026geneti
author = {Zhang, Jie and Wu, Min and Neville, Douglas and Zou, Yue and Ren, Kaisi and Ye, Qing and Zhong, Shuchang and Xiang, Haiying and Wang, Wenshi and Ye, Xiangming and Luo, Benyan and Zhang, Li},
title = {{Genetically predicted white matter microstructure mediates the relationship between risk factors and lacunar stroke}},
journal = {Stroke and vascular neurology},
year = {2026},
month = mar,
volume = {11},
number = {1},
pages = {e004208},
publisher = {BMJ Publishing Group},
issn = {2059-8688},
doi = {10.1136/
url = {https://
pmid = {40571410},
pmcid = {PMC13019051}
}
RIS
TY - JOUR
AU - Zhang, Jie
AU - Wu, Min
AU - Neville, Douglas
AU - Zou, Yue
AU - Ren, Kaisi
AU - Ye, Qing
AU - Zhong, Shuchang
AU - Xiang, Haiying
AU - Wang, Wenshi
AU - Ye, Xiangming
AU - Luo, Benyan
AU - Zhang, Li
TI - Genetically predicted white matter microstructure mediates the relationship between risk factors and lacunar stroke
T2 - Stroke and vascular neurology
J2 - Stroke Vasc Neurol
PY - 2026
DA - 2026/
VL - 11
IS - 1
SP - e004208
SN - 2059-8688
PB - BMJ Publishing Group
DO - 10.1136/
UR - https://
LA - en
ER -
CSL-JSON
{
"id": "10.1136/
"type": "article-journal",
"title": "Genetically predicted white matter microstructure mediates the relationship between risk factors and lacunar stroke",
"container-title": "Stroke and vascular neurology",
"author": [
{
"family": "Zhang",
"given": "Jie"
},
{
"family": "Wu",
"given": "Min"
},
{
"family": "Neville",
"given": "Douglas"
},
{
"family": "Zou",
"given": "Yue"
},
{
"family": "Ren",
"given": "Kaisi"
},
{
"family": "Ye",
"given": "Qing"
},
{
"family": "Zhong",
"given": "Shuchang"
},
{
"family": "Xiang",
"given": "Haiying"
},
{
"family": "Wang",
"given": "Wenshi"
},
{
"family": "Ye",
"given": "Xiangming"
},
{
"family": "Luo",
"given": "Benyan"
},
{
"family": "Zhang",
"given": "Li"
}
],
"container-title-short":
"volume": "11",
"issue": "1",
"page": "e004208",
"DOI": "10.1136/
"PMID": "40571410",
"PMCID": "PMC13019051",
"ISSN": "2059-8688",
"publisher": "BMJ Publishing Group",
"URL": "https://
"language": "en",
"issued": {
"date-parts": [
[
2026,
3,
4
]
]
}
}
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.64898/2026.08.12.26360241
- Diffusion kurtosis imaging (gen)omics unravels mechanisms of cerebral small vessel diseaseJournal: medRxiv (preprint)In common: stroke, structural MRI / diffusion, genetics / omics, 5 references
- [2] doi:10.1038/s41467-026-75799-8 [code]
- Behaviourally driven closed-loop beta-tACS enhances beta activity and motor behaviour.Journal: Nature communicationsIn common: ggplot2, tidyverse, author Min Wu
- [3] doi:10.1093/braincomms/fcag080 [code]
- Synergistic effects of cerebral small vessel disease burden and plasma phosphorylated tau 181 on white matter microstructure and cognition in a Chinese cohort.Journal: Brain communicationsIn common: tidyverse, stroke, structural MRI / diffusion, 3 references
- [4] doi:10.1186/s13024-026-00942-4 [code]
- Regional diffusion imaging measures to disentangle SVD-related hypertensive arteriopathy versus cerebral amyloid angiopathy.Journal: Molecular neurodegenerationIn common: stroke, structural MRI / diffusion, other condition, 3 references
- [5] doi:10.1186/s12967-026-08108-y [code]
- An explainable multimodal machine learning model for diagnosing disorders of consciousness: evidence from a large multicenter Chinese cohort.Journal: Journal of translational medicineIn common: ggplot2, other condition, author Benyan Luo
- [6] doi:10.1038/s43587-026-01106-1 [code]
- Repurposing drugs for the prevention of vascular dementia using evidence from drug target Mendelian randomization.Journal: Nature agingIn common: tidyverse, stroke, structural MRI / diffusion, genetics / omics, 2 references
- [7] doi:10.1038/s41467-026-73996-z [code]
- Genetic architecture of white matter microstructure captured by unsupervised deep representation learning of fractional anisotropy maps.Journal: Nature communicationsIn common: ggplot2, tidyverse, structural MRI / diffusion, genetics / omics, 2 references
- [8] doi:10.1038/s41467-026-73878-4 [code]
- Neural Response to Familiar Names Predicts Outcome of Comatose ICU Patients: A Prospective Observational Cohort Study.Journal: Nature communicationsIn common: clinical / translational, other condition, author Benyan Luo
- [9] doi:10.21203/rs.3.rs-9499814/v1 [code]
- Plasma proteomics link menopause timing to brain aging and dementia riskJournal: Research Square (preprint)In common: ggplot2, tidyverse, genetics / omics, 2 references
- [10] doi:10.64898/2026.04.23.26351500 [code]
- Plasma proteomics link menopause timing to brain aging and dementia riskJournal: medRxiv (preprint)In common: ggplot2, tidyverse, genetics / omics, 2 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: 1 repository of the authors' code, each at its verified commit and with its license, 7 scripts, and 5 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:b9c0978862fd7717…
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.
