Characterizing spatiotemporal white matter hyperintensity pathophysiology in vivo to disentangle vascular and neurodegenerative contributions.
The 25 matches · 5 of them tie a paragraph to a whole file without given lines: weak matches, whose lines are not tinted
- [1] § Methods › Associations with vascular and neurodegenerative disorders ↔ analyses/5_WMH_across_disorders/5g_pred_ad_stroke.py, lines 336 to 438 · score 0.97 · Lasso logistic regression, class imbalances, fold cross validation, class weights, max_iter, L1 · Report a mismatch
- [2] § Results › WMH pathophysiology in vascular and neurodegenerative disorders ↔ analyses/5_WMH_across_disorders/5g_pred_ad_stroke.py, lines 336 to 438 · score 0.84 · Lasso logistic regression, fold cross validation, balanced accuracy, F1 score, trained, predictors · Report a mismatch
- [3] § Methods › Associations with vascular and neurodegenerative disorders ↔ analyses/5_WMH_across_disorders/5b_UKB_disorders.R, lines 43 to 81 · score 0.68 · ischemic heart disease, metabolic disease, lifetime, circulatory, endocrine, nervous · Report a mismatch
- [4] § Methods › Spatial clustering ↔ analyses/2_spatial_clust/2j_clust_all_voxels_viz.R, lines 126 to 187 · score 0.67 · variance explained, microstructural metric, ANOVAs, spatial cluster, R2, Voxels · Report a mismatch
- [5] § Methods › Spatial clustering ↔ analyses/3_temporal_sustain/3f_clean_wmh_data.R, the whole file · a weak match · score 0.67 · log transformed, common space, spatial cluster, WMH volumes, WMH pathophysiology, median · Report a mismatch
- [6] § Methods › Associations with vascular and neurodegenerative disorders ↔ analyses/5_WMH_across_disorders/5a_describe_UKB_ICD10_categ.R, lines 56 to 102 · score 0.67 · ischemic heart disease, metabolic disease, lifetime, circulatory, endocrine, nervous · Report a mismatch
- [7] § Results › Estimates of WMH pathophysiology ↔ analyses/3_temporal_sustain/3e_WMHpatho_with_volume.R, lines 54 to 117 · score 0.66 · fluid sensitive, iron sensitive, biological sensitivity, fiber sensitive, myelin, scored · Report a mismatch
- [8] § Results › Defining temporal pathophysiological cascades ↔ analyses/3_temporal_sustain/3d_sustain_viz.R, lines 293 to 334 · score 0.66 · Positional variance diagrams, cross validated, curves, SuStaIn, temporal, QSM · Report a mismatch
- [9] § Methods › Temporal modeling ↔ analyses/3_temporal_sustain/3f_clean_wmh_data.R, the whole file · a weak match · score 0.64 · log transformed WMH, SuStaIn, WMH volume, WMH pathophysiological, temporal, cluster · Report a mismatch
- [10] § Methods › Spatial clustering ↔ analyses/2_spatial_clust/2d_assign_excluded_voxels.R, lines 2 to 61 · score 0.64 · NAWM prevalence, excluded voxel, UKB template, surrounding, iteratively, clusters · Report a mismatch
- [11] § Results › Spatial regions of pathophysiologically similar WMHs ↔ analyses/2_spatial_clust/2e_overlap_other_parc.R, lines 2 to 47 · score 0.64 · driven cluster, commissural, parietal, frontal, quantify, lobar · Report a mismatch
- [12] § Results › Image processing and microstructural MRI ↔ analyses/3_temporal_sustain/3e_WMHpatho_with_volume.R, lines 54 to 117 · score 0.63 · fluid sensitive, iron sensitive, fiber sensitive, myelin, biological, volume · Report a mismatch
- [13] § Results › Posterior WMHs connect cortical regions prone to tau pathology ↔ analyses/6_grey_matter/6b_connected_gm_viz.R, the whole file · a weak match · score 0.63 · Pearson correlations, Bonferroni corrected, Tau PET, connecting, amyloid, Posterior · Report a mismatch
- [14] § Methods › Associations with vascular and neurodegenerative disorders ↔ analyses/5_WMH_across_disorders/5e_correlate_patterns.R, lines 117 to 179 · score 0.61 · correlation matrix, Hierarchical clustering, hclust, Pearson, ADNI, disorders · Report a mismatch
- [15] § Methods › Associations with vascular and neurodegenerative disorders ↔ analyses/5_WMH_across_disorders/parcnofill_correlate_patterns.R, lines 118 to 180 · score 0.61 · correlation matrix, Hierarchical clustering, hclust, Pearson, ADNI, disorders · Report a mismatch
- [16] § Results › Spatial regions of pathophysiologically similar WMHs ↔ analyses/2_spatial_clust/2d_assign_excluded_voxels.R, lines 2 to 61 · score 0.57 · closest spatial cluster, WMH prevalence, dimensionality, voxels · Report a mismatch
- [17] § Methods › Associations with vascular and neurodegenerative disorders ↔ analyses/3_temporal_sustain/3c_sustain_bind_CV.py, lines 112 to 125 · score 0.56 · cross validation, scikit-learn, sklearn, train, fold, models · Report a mismatch
- [18] § Results › WMH pathophysiology in vascular and neurodegenerative disorders ↔ analyses/5_WMH_across_disorders/5h_pred_ad_stroke_viz.R, lines 49 to 105 · score 0.56 · balanced accuracy, AUROC, Wilcoxon, Bonferroni, SD, fold · Report a mismatch
- [19] § Methods › Spatial clustering ↔ analyses/2_spatial_clust/2h_roi_avg.R, the whole file · a weak match · score 0.56 · common space, WMH voxels, WMH volumes, WMH pathophysiology, median, ICVF · Report a mismatch
- [20] § Results › Spatial regions of pathophysiologically similar WMHs ↔ analyses/2_spatial_clust/2f_clust_by_WMH_volume.R, lines 167 to 206 · score 0.53 · spectral clustering, cluster solution, severity, NAWM, prevalence, QSM · Report a mismatch
- [21] § Results › WMH pathophysiology in vascular and neurodegenerative disorders ↔ analyses/5_WMH_across_disorders/5e_correlate_patterns.R, lines 2 to 73 · score 0.52 · ischemic heart disease, cardiovascular disease, correlated, Alzheimer, PRS, stroke · Report a mismatch
- [22] § Results › WMH pathophysiology in vascular and neurodegenerative disorders ↔ analyses/5_WMH_across_disorders/parcnofill_correlate_patterns.R, lines 2 to 74 · score 0.52 · ischemic heart disease, cardiovascular disease, correlated, Alzheimer, PRS, stroke · Report a mismatch
- [23] § Methods › Image processing ↔ analyses/1_norm_mod/1d_zscore_ADNI.R, lines 2 to 58 · score 0.52 · UKB space, WMH masks, BISON, tIssue, microstructural, ADNI · Report a mismatch
- [24] § Results › Spatial regions of pathophysiologically similar WMHs ↔ analyses/2_spatial_clust/2i_spectral_clust_all_voxels.R, the whole file · a weak match · score 0.52 · spectral clustering, WMH pathophysiology maps, NAWM, prevalence, QSM, ISOVF · Report a mismatch
- [25] § Methods › Temporal modeling ↔ analyses/3_temporal_sustain/3b_sustain_run.py, lines 62 to 125 · score 0.50 · pySuStaIn, startpoints, fold, temporal, model, WMH · 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
Python · 480 lines · 20 KB · no license · 2 matches
- import numpy as np
- import pandas as pd
- import matplotlib.pyplot as plt
- import seaborn as sns
- from sklearn.model_selection import StratifiedKFold, cross_validate, train_test_split
- from sklearn.linear_model import LogisticRegression
- from sklearn.preprocessing import StandardScaler
- from sklearn.metrics import (
- classification_report, confusion_matrix, roc_auc_score,
- roc_curve, precision_recall_curve, average_precision_score,
- make_scorer, f1_score
- )
- from sklearn.utils.class_weight import compute_class_weight
- import warnings
- import datatable as dt
- from neuroHarmonize import harmonizationLearn, harmonizationApply
- from sklearn.metrics import accuracy_score, precision_score, recall_score, balanced_accuracy_score
- warnings.filterwarnings('ignore')
- # Set random seed for reproducibility
- np.random.seed(42)
- #region Load data for spect_clust_k3 and ComBat harmonization with ADNI
- # Load UKB stroke data
- df_ukb = pd.read_csv(f"../3_temporal_sustain/results/3f_clean_wmh_data/wmh_combined.tsv", delimiter="\t")
- df_ukb = df_ukb.drop(columns=['stage_c1', 'stage_c2', 'stage_c3', 'post_ant_subtype', 'post_ant_stage', 'T2star_c1', 'T2star_c2', 'T2star_c3', 'QSM_c1', 'QSM_c2', 'QSM_c3'])
- df_dx = dt.fread("../../../UKB/Analyses/clean_firstocc/results/firstocc_categ.tsv").to_pandas()
- df_dx = df_dx[df_dx["chapter"].isin([
- "Endocrine, nutritional and metabolic diseases",
- "Mental, Behavioral and Neurodevelopmental disorders",
- "Diseases of the circulatory system",
- "Diseases of the nervous system"
- ])]
- df_dx = df_dx.merge(df_ukb['ID'], how="right")
- controls = df_dx[df_dx.isna().any(axis=1)]["ID"].unique()
- df_ukb_combat = df_ukb[df_ukb["ID"].isin(controls)].reset_index(drop=True)
- stroke_cases = (df_dx.loc[df_dx["icd_code"].isin(["I60", "I61", "I63", "I64"]), ["ID"]].drop_duplicates().reset_index(drop=True))
- dementia_cases = (df_dx.loc[df_dx["icd_code"].isin(["F00","F03","G30"]), ["ID"]].drop_duplicates().reset_index(drop=True))
- overlap_ids = set(stroke_cases['ID']).intersection(dementia_cases['ID'])
- stroke_cases = stroke_cases[~stroke_cases['ID'].isin(overlap_ids)].reset_index(drop=True)
- dementia_cases = dementia_cases[~dementia_cases['ID'].isin(overlap_ids)].reset_index(drop=True)
- df_stroke = pd.merge(stroke_cases, df_ukb)
- df_stroke = df_stroke.drop(columns=['ID'])
- df_stroke['Group'] = 'Stroke'
- df_stroke['SITE'] = 'UKB'
- df_dementia_ukb = pd.merge(dementia_cases, df_ukb)
- df_dementia_ukb = df_dementia_ukb.drop(columns=['ID'])
- df_dementia_ukb['Group'] = 'cog_imp'
- df_dementia_ukb['SITE'] = 'UKB'
- # Load ADNI data
- df_adni = pd.read_csv(f"../clean_wmh_data/results/spect_clust_k3/wmh_combined_ADNI.tsv", delimiter="\t")
- df_adni = df_adni.rename(columns={"Age": "age", "Sex": "sex"})
- df_demo = pd.read_csv("../../../ADNI/Analyses/clean_data/results/df_demo.tsv", delimiter="\t")
- df_demo = df_demo.rename(columns={"PTID": "ID", "EXAMDATE": "date"})
- # Keep last timepoint only
- df_demo = (
- df_demo
- .sort_values(['ID']) # optional unless order matters within ID
- .groupby('ID', as_index=False)
- .tail(1)
- .reset_index(drop=True)
- )
- # Remove CI due to non AD
- df_demo = df_demo[
- (df_demo['dx_mci_cause'].isna() | (df_demo['dx_mci_cause'] != "Due to other")) &
- (df_demo['dx_dementia_cause'].isna() | (df_demo['dx_dementia_cause'] != "Due to other"))
- ]
- # Merge with WMH data
- df_demo_merge = df_demo.loc[:,['ID', 'date']]
- df_adni = pd.merge(df_demo_merge, df_adni, on=['ID', 'date'])
- df_adni = df_adni.dropna().reset_index(drop=True)
- df_demo = pd.merge(df_demo, df_adni.loc[:,['ID', 'date']], on=['ID', 'date'])
- # Keep only MCI or dementia
- df_demo_merge = df_demo[df_demo['dx'].isin(['MCI', 'Dementia'])].reset_index(drop=True)
- df_demo_merge = df_demo_merge.loc[:,["ID", "date"]]
- df_ci_adni = pd.merge(df_demo_merge, df_adni, how="left", on=['ID', 'date'])
- df_ci_adni['Group'] = 'cog_imp'
- df_ci_adni['SITE'] = 'ADNI'
- df_ci_adni = df_ci_adni.loc[:,df_stroke.columns]
- # Select healthy IDs from ADNI
- hc_ids = df_demo[(df_demo["dx"] == "CN")]['ID']
- df_adni_combat = df_adni[df_adni["ID"].isin(hc_ids)].reset_index(drop=True)
- df_adni_combat = df_adni_combat.drop(columns=["date", "Year"])
- # ComBat harmonization
- df_adni_combat['SITE'] = 'ADNI'
- df_ukb_combat['SITE'] = 'UKB'
- df_combat = pd.concat([df_adni_combat, df_ukb_combat], ignore_index=True)
- df_combat['sex'] = df_combat['sex'].map({'Male': 1, 'Female': 0}).values
- exclude_cols = ["ID", "age", "sex", "SITE"]
- feature_cols = [c for c in df_combat.columns if c not in exclude_cols]
- X_combat = df_combat[feature_cols].to_numpy()
- covars = df_combat.loc[:,['SITE', 'age', 'sex']]
- # Train
- combat_model, df_combat_adj = harmonizationLearn(X_combat, covars, ref_batch="UKB")
- # Predict
- df_all = pd.concat([df_stroke, df_dementia_ukb, df_ci_adni], axis=0, ignore_index=True)
- df_all['sex'] = df_all['sex'].map({'Male': 1, 'Female': 0}).values
- exclude_cols = ["age", "sex", 'Group', "SITE"]
- feature_cols = [c for c in df_all.columns if c not in exclude_cols]
- X_combat = df_all[feature_cols].to_numpy()
- covars = df_all.loc[:,['SITE', 'age', 'sex']]
- X_clust = harmonizationApply(X_combat, covars, combat_model)
- X_clust_vol = X_clust[:,0:3]
- y_clust = df_all['Group'].map({'Stroke': 0, 'cog_imp': 1}).values
- #endregion
- #region Load data for PV/deep and ComBat harmonization with ADNI
- # Load UKB stroke data
- df_ukb = pd.read_csv(f"../clean_wmh_data/results/pv_deep/wmh_combined.tsv", delimiter="\t")
- df_ukb = df_ukb.drop(columns=['pv_deep_T2star_c1', 'pv_deep_T2star_c2', 'pv_deep_QSM_c1', 'pv_deep_QSM_c2'])
- df_dx = dt.fread("../../../UKB/Analyses/clean_firstocc/results/firstocc_categ.tsv").to_pandas()
- df_dx = df_dx[df_dx["chapter"].isin([
- "Endocrine, nutritional and metabolic diseases",
- "Mental, Behavioral and Neurodevelopmental disorders",
- "Diseases of the circulatory system",
- "Diseases of the nervous system"
- ])]
- df_dx = df_dx.merge(df_ukb['ID'], how="right")
- controls = df_dx[df_dx.isna().any(axis=1)]["ID"].unique()
- df_ukb_combat = df_ukb[df_ukb["ID"].isin(controls)].reset_index(drop=True)
- stroke_cases = (df_dx.loc[df_dx["icd_code"].isin(["I60", "I61", "I63", "I64"]), ["ID"]].drop_duplicates().reset_index(drop=True))
- dementia_cases = (df_dx.loc[df_dx["icd_code"].isin(["F00","F03","G30"]), ["ID"]].drop_duplicates().reset_index(drop=True))
- overlap_ids = set(stroke_cases['ID']).intersection(dementia_cases['ID'])
- stroke_cases = stroke_cases[~stroke_cases['ID'].isin(overlap_ids)].reset_index(drop=True)
- dementia_cases = dementia_cases[~dementia_cases['ID'].isin(overlap_ids)].reset_index(drop=True)
- df_stroke = pd.merge(stroke_cases, df_ukb)
- df_stroke = df_stroke.drop(columns=['ID'])
- df_stroke['Group'] = 'Stroke'
- df_stroke['SITE'] = 'UKB'
- df_dementia_ukb = pd.merge(dementia_cases, df_ukb)
- df_dementia_ukb = df_dementia_ukb.drop(columns=['ID'])
- df_dementia_ukb['Group'] = 'cog_imp'
- df_dementia_ukb['SITE'] = 'UKB'
- # Load ADNI data
- df_adni = pd.read_csv(f"../clean_wmh_data/results/pv_deep/wmh_combined_ADNI.tsv", delimiter="\t")
- df_adni = df_adni.rename(columns={"Age": "age", "Sex": "sex"})
- df_demo = pd.read_csv("../../../ADNI/Analyses/clean_data/results/df_demo.tsv", delimiter="\t")
- df_demo = df_demo.rename(columns={"PTID": "ID", "EXAMDATE": "date"})
- # Keep last timepoint only
- df_demo = (
- df_demo
- .sort_values(['ID']) # optional unless order matters within ID
- .groupby('ID', as_index=False)
- .tail(1)
- .reset_index(drop=True)
- )
- # Remove CI due to non AD
- df_demo = df_demo[
- (df_demo['dx_mci_cause'].isna() | (df_demo['dx_mci_cause'] != "Due to other")) &
- (df_demo['dx_dementia_cause'].isna() | (df_demo['dx_dementia_cause'] != "Due to other"))
- ]
- # Merge with WMH data
- df_demo_merge = df_demo.loc[:,['ID', 'date']]
- df_adni = pd.merge(df_demo_merge, df_adni, on=['ID', 'date'])
- df_adni = df_adni.dropna().reset_index(drop=True)
- df_demo = pd.merge(df_demo, df_adni.loc[:,['ID', 'date']], on=['ID', 'date'])
- # Keep only MCI or dementia
- df_demo_merge = df_demo[df_demo['dx'].isin(['MCI', 'Dementia'])].reset_index(drop=True)
- df_demo_merge = df_demo_merge.loc[:,["ID", "date"]]
- df_ci_adni = pd.merge(df_demo_merge, df_adni, how="left", on=['ID', 'date'])
- df_ci_adni['Group'] = 'cog_imp'
- df_ci_adni['SITE'] = 'ADNI'
- df_ci_adni = df_ci_adni.loc[:,df_stroke.columns]
- # Select healthy IDs from ADNI
- hc_ids = df_demo[(df_demo["dx"] == "CN")]['ID']
- df_adni_combat = df_adni[df_adni["ID"].isin(hc_ids)].reset_index(drop=True)
- df_adni_combat = df_adni_combat.drop(columns=["date", "Year"])
- # ComBat harmonization
- df_adni_combat['SITE'] = 'ADNI'
- df_ukb_combat['SITE'] = 'UKB'
- df_combat = pd.concat([df_adni_combat, df_ukb_combat], ignore_index=True)
- df_combat['sex'] = df_combat['sex'].map({'Male': 1, 'Female': 0}).values
- exclude_cols = ["ID", "age", "sex", "SITE"]
- feature_cols = [c for c in df_combat.columns if c not in exclude_cols]
- X_combat = df_combat[feature_cols].to_numpy()
- covars = df_combat.loc[:,['SITE', 'age', 'sex']]
- # Train
- combat_model, df_combat_adj = harmonizationLearn(X_combat, covars, ref_batch="UKB")
- # Predict
- df_all = pd.concat([df_stroke, df_dementia_ukb, df_ci_adni], axis=0, ignore_index=True)
- df_all['sex'] = df_all['sex'].map({'Male': 1, 'Female': 0}).values
- exclude_cols = ["age", "sex", 'Group', "SITE"]
- feature_cols = [c for c in df_all.columns if c not in exclude_cols]
- X_combat = df_all[feature_cols].to_numpy()
- covars = df_all.loc[:,['SITE', 'age', 'sex']]
- X_pvdeep = harmonizationApply(X_combat, covars, combat_model)
- X_pvdeep_vol = X_pvdeep[:,0:2]
- y_pvdeep = df_all['Group'].map({'Stroke': 0, 'cog_imp': 1}).values
- #endregion
- #region Load data for no parcellation and ComBat harmonization with ADNI
- # Load UKB stroke data
- df_ukb = pd.read_csv(f"../clean_wmh_data/results/no_clust/wmh_combined.tsv", delimiter="\t")
- df_ukb = df_ukb.drop(columns=['stage_c1', 'T2star_c1', 'QSM_c1'])
- df_dx = dt.fread("../../../UKB/Analyses/clean_firstocc/results/firstocc_categ.tsv").to_pandas()
- df_dx = df_dx[df_dx["chapter"].isin([
- "Endocrine, nutritional and metabolic diseases",
- "Mental, Behavioral and Neurodevelopmental disorders",
- "Diseases of the circulatory system",
- "Diseases of the nervous system"
- ])]
- df_dx = df_dx.merge(df_ukb['ID'], how="right")
- controls = df_dx[df_dx.isna().any(axis=1)]["ID"].unique()
- df_ukb_combat = df_ukb[df_ukb["ID"].isin(controls)].reset_index(drop=True)
- stroke_cases = (df_dx.loc[df_dx["icd_code"].isin(["I60", "I61", "I63", "I64"]), ["ID"]].drop_duplicates().reset_index(drop=True))
- dementia_cases = (df_dx.loc[df_dx["icd_code"].isin(["F00","F03","G30"]), ["ID"]].drop_duplicates().reset_index(drop=True))
- overlap_ids = set(stroke_cases['ID']).intersection(dementia_cases['ID'])
- stroke_cases = stroke_cases[~stroke_cases['ID'].isin(overlap_ids)].reset_index(drop=True)
- dementia_cases = dementia_cases[~dementia_cases['ID'].isin(overlap_ids)].reset_index(drop=True)
- df_stroke = pd.merge(stroke_cases, df_ukb)
- df_stroke = df_stroke.drop(columns=['ID'])
- df_stroke['Group'] = 'Stroke'
- df_stroke['SITE'] = 'UKB'
- df_dementia_ukb = pd.merge(dementia_cases, df_ukb)
- df_dementia_ukb = df_dementia_ukb.drop(columns=['ID'])
- df_dementia_ukb['Group'] = 'cog_imp'
- df_dementia_ukb['SITE'] = 'UKB'
- # Load ADNI data
- df_adni = pd.read_csv(f"../clean_wmh_data/results/no_clust/wmh_combined_ADNI.tsv", delimiter="\t")
- df_adni = df_adni.rename(columns={"Age": "age", "Sex": "sex", "region_vol[, seq(2, ncol(region_vol))]": "WMHvol_c1"})
- df_demo = pd.read_csv("../../../ADNI/Analyses/clean_data/results/df_demo.tsv", delimiter="\t")
- df_demo = df_demo.rename(columns={"PTID": "ID", "EXAMDATE": "date"})
- # Keep last timepoint only
- df_demo = (
- df_demo
- .sort_values(['ID']) # optional unless order matters within ID
- .groupby('ID', as_index=False)
- .tail(1)
- .reset_index(drop=True)
- )
- # Remove CI due to non AD
- df_demo = df_demo[
- (df_demo['dx_mci_cause'].isna() | (df_demo['dx_mci_cause'] != "Due to other")) &
- (df_demo['dx_dementia_cause'].isna() | (df_demo['dx_dementia_cause'] != "Due to other"))
- ]
- # Merge with WMH data
- df_demo_merge = df_demo.loc[:,['ID', 'date']]
- df_adni = pd.merge(df_demo_merge, df_adni, on=['ID', 'date'])
- df_adni = df_adni.dropna().reset_index(drop=True)
- df_demo = pd.merge(df_demo, df_adni.loc[:,['ID', 'date']], on=['ID', 'date'])
- # Keep only MCI or dementia
- df_demo_merge = df_demo[df_demo['dx'].isin(['MCI', 'Dementia'])].reset_index(drop=True)
- df_demo_merge = df_demo_merge.loc[:,["ID", "date"]]
- df_ci_adni = pd.merge(df_demo_merge, df_adni, how="left", on=['ID', 'date'])
- df_ci_adni['Group'] = 'cog_imp'
- df_ci_adni['SITE'] = 'ADNI'
- df_ci_adni = df_ci_adni.loc[:,df_stroke.columns]
- # Select healthy IDs from ADNI
- hc_ids = df_demo[(df_demo["dx"] == "CN")]['ID']
- df_adni_combat = df_adni[df_adni["ID"].isin(hc_ids)].reset_index(drop=True)
- df_adni_combat = df_adni_combat.drop(columns=["date", "Year"])
- # ComBat harmonization
- df_adni_combat['SITE'] = 'ADNI'
- df_ukb_combat['SITE'] = 'UKB'
- df_combat = pd.concat([df_adni_combat, df_ukb_combat], ignore_index=True)
- df_combat['sex'] = df_combat['sex'].map({'Male': 1, 'Female': 0}).values
- exclude_cols = ["ID", "age", "sex", "SITE"]
- feature_cols = [c for c in df_combat.columns if c not in exclude_cols]
- X_combat = df_combat[feature_cols].to_numpy()
- covars = df_combat.loc[:,['SITE', 'age', 'sex']]
- # Train
- combat_model, df_combat_adj = harmonizationLearn(X_combat, covars, ref_batch="UKB")
- # Predict
- df_all = pd.concat([df_stroke, df_dementia_ukb, df_ci_adni], axis=0, ignore_index=True)
- df_all['sex'] = df_all['sex'].map({'Male': 1, 'Female': 0}).values
- exclude_cols = ["age", "sex", 'Group', "SITE"]
- feature_cols = [c for c in df_all.columns if c not in exclude_cols]
- X_combat = df_all[feature_cols].to_numpy()
- covars = df_all.loc[:,['SITE', 'age', 'sex']]
- X_noparc = harmonizationApply(X_combat, covars, combat_model)
- X_noparc_vol = X_noparc[:,0]
- y_noparc = df_all['Group'].map({'Stroke': 0, 'cog_imp': 1}).values
- #endregion
- #region Function to do model fit and CV
- def fit_repeated_cv(X, y, n_repeats=100, cv=5):
- """
- Perform repeated stratified k-fold cross-validation
- Parameters:
- -----------
- X : numpy array
- Feature matrix
- y : numpy array
- Target vector
- n_repeats : int
- Number of times to repeat cross-validation
- cv : int
- Number of folds per repeat
- model_type : str
- 'lasso' for Lasso Logistic Regression or 'rf' for Random Forest
- """
- from sklearn.metrics import accuracy_score, precision_score, recall_score, balanced_accuracy_score
- from sklearn.ensemble import RandomForestClassifier
- # Store metrics from all repeats
- all_repeat_metrics = {
- 'balanced_accuracy': [],
- 'f1': [], 'roc_auc': []
- }
- # Store predictions from first repeat only (for visualization)
- first_repeat_y_true = []
- first_repeat_y_pred = []
- first_repeat_y_pred_proba = []
- print("\n" + "="*60)
- model_name = "LASSO LOGISTIC REGRESSION"
- print(f"REPEATED CROSS-VALIDATION - {model_name}")
- print(f"({n_repeats} x {cv}-Fold Stratified)")
- print("="*60)
- print(f"Total model fits: {n_repeats * cv} = {n_repeats * cv}")
- # Compute class weights
- class_weights = compute_class_weight('balanced',
- classes=np.unique(y),
- y=y)
- class_weight_dict = {0: class_weights[0], 1: class_weights[1]}
- print(f"Class weights for imbalance: {class_weight_dict}")
- for repeat in range(n_repeats):
- # Use different random state for each repeat
- skf = StratifiedKFold(n_splits=cv, shuffle=True, random_state=repeat)
- repeat_metrics = {
- 'balanced_accuracy': [],
- 'accuracy': [], 'precision': [], 'recall': [],
- 'f1': [], 'roc_auc': []
- }
- for fold, (train_idx, test_idx) in enumerate(skf.split(X, y), 1):
- # Split data
- X_train_fold, X_test_fold = X[train_idx], X[test_idx]
- y_train_fold, y_test_fold = y[train_idx], y[test_idx]
- # Standardize features (fit on train, transform both)
- scaler = StandardScaler()
- X_train_scaled = scaler.fit_transform(X_train_fold)
- X_test_scaled = scaler.transform(X_test_fold)
- # Train model
- model = LogisticRegression(
- penalty='l1',
- C=1.0,
- solver='saga',
- class_weight='balanced', # HANDLES CLASS IMBALANCE
- max_iter=1000,
- random_state=42,
- n_jobs=-1
- )
- model.fit(X_train_scaled, y_train_fold)
- # Predict
- y_pred = model.predict(X_test_scaled)
- y_pred_proba = model.predict_proba(X_test_scaled)[:, 1]
- # Store predictions from first repeat only
- if repeat == 0:
- first_repeat_y_true.extend(y_test_fold)
- first_repeat_y_pred.extend(y_pred)
- first_repeat_y_pred_proba.extend(y_pred_proba)
- # Calculate metrics for this fold
- repeat_metrics['balanced_accuracy'].append(balanced_accuracy_score(y_test_fold, y_pred))
- repeat_metrics['f1'].append(f1_score(y_test_fold, y_pred, zero_division=0))
- repeat_metrics['roc_auc'].append(roc_auc_score(y_test_fold, y_pred_proba))
- # Store mean metrics for this repeat
- for metric in repeat_metrics:
- all_repeat_metrics[metric].append(np.mean(repeat_metrics[metric]))
- # Progress update every 10 repeats
- if (repeat + 1) % 10 == 0:
- current_auc = np.mean(all_repeat_metrics['roc_auc'])
- print(f" Completed {repeat + 1}/{n_repeats} repeats... "
- f"Mean ROC-AUC: {current_auc:.3f}")
- # Convert first repeat predictions to arrays
- first_repeat_y_true = np.array(first_repeat_y_true)
- first_repeat_y_pred = np.array(first_repeat_y_pred)
- first_repeat_y_pred_proba = np.array(first_repeat_y_pred_proba)
- # Print summary statistics across all repeats
- print("\n" + "-"*60)
- print(f"SUMMARY ACROSS {n_repeats} REPEATS")
- print("-"*60)
- for metric in ['balanced_accuracy', 'f1', 'roc_auc']:
- scores = all_repeat_metrics[metric]
- print(f"{metric.upper()}:")
- print(f" Mean: {np.mean(scores):.4f}")
- print(f" Std: {np.std(scores):.4f}")
- print(f" 95% CI: [{np.percentile(scores, 2.5):.4f}, {np.percentile(scores, 97.5):.4f}]")
- return (first_repeat_y_true, first_repeat_y_pred, first_repeat_y_pred_proba,
- all_repeat_metrics)
- #endregion
- #region Run
- ################# Spect_clust_k3
- # Volumes + micro
- y_true, y_pred, y_pred_proba, fold_metrics = fit_repeated_cv(X_clust, y_clust, cv=5, model_type='lasso')
- df_metrics = pd.DataFrame(fold_metrics)
- df_metrics.to_csv("./results/5g_pred_ad_stroke/spect_clust_k3_micro_metrics.csv", index=False)
- # Volumes only
- y_true, y_pred, y_pred_proba, fold_metrics = fit_repeated_cv(X_clust_vol, y_clust, cv=5, model_type='lasso')
- df_metrics = pd.DataFrame(fold_metrics)
- df_metrics.to_csv("./results/5g_pred_ad_stroke/spect_clust_k3_vol_metrics.csv", index=False)
- ################# PV/deep
- # Volumes + micro
- y_true, y_pred, y_pred_proba, fold_metrics = fit_repeated_cv(X_pvdeep, y_pvdeep, cv=5, model_type='lasso')
- df_metrics = pd.DataFrame(fold_metrics)
- df_metrics.to_csv("./results/5g_pred_ad_stroke/pv_deep_micro_metrics.csv", index=False)
- # Volumes only
- y_true, y_pred, y_pred_proba, fold_metrics = fit_repeated_cv(X_pvdeep_vol, y_pvdeep, cv=5, model_type='lasso')
- df_metrics = pd.DataFrame(fold_metrics)
- df_metrics.to_csv("./results/5g_pred_ad_stroke/pv_deep_vol_metrics.csv", index=False)
- ################# No parcellation
- # Volumes + micro
- y_true, y_pred, y_pred_proba, fold_metrics = fit_repeated_cv(X_noparc, y_noparc, cv=5, model_type='lasso')
- df_metrics = pd.DataFrame(fold_metrics)
- df_metrics.to_csv("./results/5g_pred_ad_stroke/noparc_micro_metrics.csv", index=False)
- # Volumes only
- y_true, y_pred, y_pred_proba, fold_metrics = fit_repeated_cv(X_noparc_vol.reshape(-1,1), y_noparc, cv=5)
- df_metrics = pd.DataFrame(fold_metrics)
- df_metrics.to_csv("./results/5g_pred_ad_stroke/noparc_vol_metrics.csv", index=False)
- #endregion
5g_pred_ad_stroke.py at commit ad83218, no license · at the source
Overview
14 affiliations
- Cerebral Imaging Centre, Douglas Mental Health University Institute, Montreal, Canada
- Integrated Program in Neuroscience, McGill University, Montreal, Canada
- Center for the Studies in the Prevention of Alzheimer’s Disease, Douglas Mental Health University Institute, Montreal, Canada
- Centre d’études avancées en médecine du sommeil, Université de Montréal, Montreal, Canada
- Département de pharmacologie et physiologie, Université de Montréal, Montreal, Canada
- Centre de recherche de l’Institut universitaire de gériatrie de Montréal, Montreal, Canada
- Department of Anatomy and Cell Biology, McGill University, Montreal, Canada
- Département d’Anatomie, Université du Québec à Trois-Rivières, Trois-Rivières, Canada
- Department of Neurology and Neurosurgery, McGill University, Montreal, Canada
- Department of Psychiatry, McGill University, Montreal, Canada
- Department of Psychology, Concordia University, Montreal, Canada
- Department of Neurology, Max Planck Institute for Human Cognitive and Brain Sciences, Leipzig, Germany
- McConnell Brain Imaging Centre, Montreal Neurological Institute, Montreal, Canada
- Department of Biomedical Engineering, McGill University, Montreal, Canada
Abstract
White matter hyperintensities (WMHs) are neuroimaging markers widely interpreted as caused by cerebral small vessel disease, yet emerging evidence suggests that a subset may have a neurodegenerative etiology. Current imaging methods have lacked the specificity to disentangle biological processes underlying WMHs in vivo. Here, we used voxel-level normative modeling and seven microstructural MRI markers with complementary biophysical sensitivities to generate single-subject high-resolution WMH pathophysiology maps in a large cohort (n = 32,526). We calculated data-driven spatial patterns of similar WMHs, revealing distinct periventricular, posterior, and anterior clusters. We identified a reproducible WMH signature linked to dementia and Alzheimer’s disease, characterized by a posterior predominance and a pathophysiological pattern indicative of selective fiber degeneration. Posterior WMHs connected cortical regions vulnerable to tau pathology. Our framework helps parsing vascular and neurodegenerative contributions of WMHs in vivo, which could alter the course of treatment strategies and provide nuanced interpretations of research findings.
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 25 matches between paragraphs and lines of code.
CoBrALab/WMH_patho_UKB
ad8321861538cb467f4388729847222963f9067f, 11 February 2026Availability: 1 check, the latest on 30 September 2026: the link answers
- 30 September 2026: the link answers
37 files
- analyses/
1_norm_mod/ , Python, 320 lines1a_norm_models_BLR.py - analyses/
1_norm_mod/ , R, 163 lines1b_viz_norm_models.R - analyses/
1_norm_mod/ , R, 98 lines1c_zscore_UKB.R - analyses/
1_norm_mod/ , R, 99 lines, 1 match1d_zscore_ADNI.R - analyses/
1_norm_mod/ , R, 204 lines1e_viz_zscores_subjects. R - analyses/
2_spatial_clust/ , R, 273 lines2a_make_averages.R - analyses/
2_spatial_clust/ , R, 74 lines2b_spectral_clust.R - analyses/
2_spatial_clust/ , R, 183 lines2c_viz_clust.R - analyses/
2_spatial_clust/ , R, 191 lines, 2 matches2d_assign_excluded_voxel s.R - analyses/
2_spatial_clust/ , R, 134 lines, 1 match2e_overlap_other_parc.R - analyses/
2_spatial_clust/ , R, 409 lines, 1 match2f_clust_by_WMH_volume.R - analyses/
2_spatial_clust/ , R, 404 lines2g_clust_by_sex.R - analyses/
2_spatial_clust/ , R, 75 lines, 1 match2h_roi_avg.R - analyses/
2_spatial_clust/ , R, 78 lines, 1 match2i_spectral_clust_all_vo xels.R - analyses/
2_spatial_clust/ , R, 188 lines, 1 match2j_clust_all_voxels_viz. R - analyses/
3_temporal_sustain/ , R, 95 lines3a_sustain_prep.R - analyses/
3_temporal_sustain/ , Python, 129 lines, 1 match3b_sustain_run.py - analyses/
3_temporal_sustain/ , Python, 141 lines, 1 match3c_sustain_bind_CV.py - analyses/
3_temporal_sustain/ , R, 337 lines, 1 match3d_sustain_viz.R - analyses/
3_temporal_sustain/ , R, 244 lines, 2 matches3e_WMHpatho_with_volume. R - analyses/
3_temporal_sustain/ , R, 56 lines, 2 matches3f_clean_wmh_data.R - analyses/
4_sex_differences/ , R, 204 lines4a_sex_differences.R - analyses/
5_WMH_across_disorders/ , R, 177 lines, 1 match5a_describe_UKB_ICD10_ca teg.R - analyses/
5_WMH_across_disorders/ , R, 234 lines, 1 match5b_UKB_disorders.R - analyses/
5_WMH_across_disorders/ , R, 216 lines5c_UKB_PRS.R - analyses/
5_WMH_across_disorders/ , R, 316 lines5d_ADNI_dx.R - analyses/
5_WMH_across_disorders/ , R, 179 lines, 2 matches5e_correlate_patterns.R - analyses/
5_WMH_across_disorders/ , R, 538 lines5f_sex_interactions.R - analyses/
5_WMH_across_disorders/ , Python, 480 lines, 2 matches5g_pred_ad_stroke.py - analyses/
5_WMH_across_disorders/ , R, 106 lines, 1 match5h_pred_ad_stroke_viz.R - analyses/
5_WMH_across_disorders/ , R, 316 linesparcnofill_ADNI_dx.R - analyses/
5_WMH_across_disorders/ , R, 219 linesparcnofill_UKB_PRS.R - analyses/
5_WMH_across_disorders/ , R, 233 linesparcnofill_UKB_disorders .R - analyses/
5_WMH_across_disorders/ , R, 180 lines, 2 matchesparcnofill_correlate_pat terns.R - analyses/
6_grey_matter/ , Python, 216 lines6a_connected_gm_ab_tau.p y - analyses/
6_grey_matter/ , R, 65 lines, 1 match6b_connected_gm_viz.R - README.md, Text, 51 lines
cobralab/documentation
1c7422abf8ac42c2796381a4c2c0b568f1bbf8c1, 15 January 2026Availability: 2 checks, the latest on 31 October 2026: the link answers
- 31 October 2026: the link answers
- 29 September 2026: the link answers
1 file
- README.md, Text, 11 lines
Zenodo 18613580
Availability: 1 check, the latest on 30 September 2026: the link answers (HTTP 200)
- 30 September 2026: the link answers (HTTP 200)
Code availability
We share all analysis code, results, and figures in raw form, and our derived UKB template space and WMH parcellation based on pathophysiology on 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:
- 3 repositories of the authors' code, each at its verified commit, with its license and how the link was found in the paper;
- 36 scripts, each with its path and the digest of its content;
- 25 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”register
Data availability
Data from the UK Biobank is publicly available via material transfer agreements (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, 30 September 2026: the first record
Recorded: type, language, journal, volume, issue, pages, dates, 19 authors, 2 keywords, 11 MeSH terms, 2 funders, 93 references.
Cite
This paper
Parent, O., Alasmar, Z., Osborne, S., Bussy, A., Costantino, M., Fouquet, J. P., Quesada, D., Pastor-Bernier, A., Fajardo-Valdez, A., Pichet-Binette, A., McQuarrie, A., Maranzano, J., Devenyi, G. A., Steele, C. J., Villeneuve, S., the PREVENT-AD Research Group, the Alzheimer’s Disease Neuroimaging Initiative (ADNI), Dadar, M., & Chakravarty, M. M. (2026). Characterizing spatiotemporal white matter hyperintensity pathophysiology in vivo to disentangle vascular and neurodegenerative contributions. Nature communications, 17(1), 4623. https://
BibTeX
@article{parent2026chara
author = {Parent, Olivier and Alasmar, Zaki and Osborne, Sophia and Bussy, Aurélie and Costantino, Manuela and Fouquet, Jérémie P and Quesada, Daniela and Pastor-Bernier, Alexandre and Fajardo-Valdez, Alfonso and Pichet-Binette, Alexa and McQuarrie, Ann and Maranzano, Josefina and Devenyi, Gabriel A and Steele, Christopher J and Villeneuve, Sylvia and {the PREVENT-AD Research Group} and {the Alzheimer’s Disease Neuroimaging Initiative (ADNI)} and Dadar, Mahsa and Chakravarty, M Mallar},
title = {{Characterizing spatiotemporal white matter hyperintensity pathophysiology in vivo to disentangle vascular and neurodegenerative contributions}},
journal = {Nature communications},
year = {2026},
month = mar,
volume = {17},
number = {1},
pages = {4623},
publisher = {Nature Publishing Group},
issn = {2041-1723},
doi = {10.1038/
url = {https://
pmid = {41916976},
pmcid = {PMC13199390}
}
RIS
TY - JOUR
AU - Parent, Olivier
AU - Alasmar, Zaki
AU - Osborne, Sophia
AU - Bussy, Aurélie
AU - Costantino, Manuela
AU - Fouquet, Jérémie P
AU - Quesada, Daniela
AU - Pastor-Bernier, Alexandre
AU - Fajardo-Valdez, Alfonso
AU - Pichet-Binette, Alexa
AU - McQuarrie, Ann
AU - Maranzano, Josefina
AU - Devenyi, Gabriel A
AU - Steele, Christopher J
AU - Villeneuve, Sylvia
AU - the PREVENT-AD Research Group
AU - the Alzheimer’s Disease Neuroimaging Initiative (ADNI)
AU - Dadar, Mahsa
AU - Chakravarty, M Mallar
TI - Characterizing spatiotemporal white matter hyperintensity pathophysiology in vivo to disentangle vascular and neurodegenerative contributions
T2 - Nature communications
J2 - Nat Commun
PY - 2026
DA - 2026/
VL - 17
IS - 1
SP - 4623
SN - 2041-1723
PB - Nature Publishing Group
DO - 10.1038/
UR - https://
LA - en
ER -
CSL-JSON
{
"id": "10.1038/
"type": "article-journal",
"title": "Characterizing spatiotemporal white matter hyperintensity pathophysiology in vivo to disentangle vascular and neurodegenerative contributions",
"container-title": "Nature communications",
"author": [
{
"family": "Parent",
"given": "Olivier"
},
{
"family": "Alasmar",
"given": "Zaki"
},
{
"family": "Osborne",
"given": "Sophia"
},
{
"family": "Bussy",
"given": "Aurélie"
},
{
"family": "Costantino",
"given": "Manuela"
},
{
"family": "Fouquet",
"given": "Jérémie P"
},
{
"family": "Quesada",
"given": "Daniela"
},
{
"family": "Pastor-Bernier",
"given": "Alexandre"
},
{
"family": "Fajardo-Valdez",
"given": "Alfonso"
},
{
"family": "Pichet-Binette",
"given": "Alexa"
},
{
"family": "McQuarrie",
"given": "Ann"
},
{
"family": "Maranzano",
"given": "Josefina"
},
{
"family": "Devenyi",
"given": "Gabriel A"
},
{
"family": "Steele",
"given": "Christopher J"
},
{
"family": "Villeneuve",
"given": "Sylvia"
},
{
"literal": "the PREVENT-AD Research Group"
},
{
"literal": "the Alzheimer’s Disease Neuroimaging Initiative (ADNI)"
},
{
"family": "Dadar",
"given": "Mahsa"
},
{
"family": "Chakravarty",
"given": "M Mallar"
}
],
"container-title-short":
"volume": "17",
"issue": "1",
"page": "4623",
"DOI": "10.1038/
"PMID": "41916976",
"PMCID": "PMC13199390",
"ISSN": "2041-1723",
"publisher": "Nature Publishing Group",
"URL": "https://
"language": "en",
"issued": {
"date-parts": [
[
2026,
3,
31
]
]
}
}
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.1093/braincomms/fcad279 [code]
- Assessment of white matter hyperintensity severity using multimodal magnetic resonance imaging.Journal: Brain communicationsIn common: multcomp, broom, ggplot2, 7 other tools, stroke, Alzheimer's / dementia, structural MRI / diffusion, 18 references, 3 authors
- [2] doi:10.1093/braincomms/fcaf475 [code]
- Investigating links between white matter hyperintensities and menopausal status using robust age-correction methods in UK Biobank.Journal: Brain communicationsIn common: lmerTest, lme4, data.table, 2 other tools, ukbiobank.ac.uk/enable-your-research/register, stroke, structural MRI / diffusion, 9 references, 2 authors
- [3] doi:10.1038/s41593-024-01763-8 [code]
- Synergistic association of Aβ and tau pathology with cortical neurophysiology and cognitive decline in asymptomatic older adults.Journal: Nature neuroscienceIn common: multcomp, broom, rstatix, 7 other tools, Alzheimer's / dementia, 3 references, 2 authors
- [4] doi:10.1038/s41598-025-21596-0 [code]
- Longitudinal functional connectivity during rest and task is differentially related to Alzheimer's pathology and episodic memory in older adults.Journal: Scientific reportsIn common: rstatix, lmerTest, Plotly, 8 other tools, Alzheimer's / dementia, 2 references, 2 authors
- [5] doi:10.1523/jneurosci.1408-24.2024 [code]
- Precuneus Activity during Retrieval Is Positively Associated with Amyloid Burden in Cognitively Normal Older &
lt;i& gt;APOE& lt;/ i& gt;4 Carriers. Journal: The Journal of neuroscience : the official journal of the Society for NeuroscienceIn common: emmeans, lmerTest, Plotly, 8 other tools, Alzheimer's / dementia, 2 references, 2 authors - [6] doi:10.1093/braincomms/fcaf432 [code]
- The effect of chronic stress and chronic alcohol intake on behaviour, brain volume, and functional connectivity in a longitudinal rat model.Journal: Brain communicationsIn common: multcomp, broom, rstatix, 11 other tools, structural MRI / diffusion, other condition, author Gabriel A. Devenyi
- [7] doi:10.1212/wnl.0000000000218472 [code]
- Lesion-Level Subtypes of White Matter Hyperintensity Evolution Beyond Spatial Location.Journal: NeurologyIn common: Nilearn, Plotly, statsmodels, 6 other tools, stroke, Alzheimer's / dementia, structural MRI / diffusion, 10 references
- [8] doi:10.1002/hbm.26259 [code]
- High spatial overlap but diverging age-related trajectories of cortical magnetic resonance imaging markers aiming to represent intracortical myelin and microstructure.Journal: Human brain mappingIn common: reshape2, ggplot2, structural MRI / diffusion, 5 references, 3 authors
- [9] doi:10.1002/alz.70196 [code]
- Cognitive implications and associated transcriptomic signatures of distinct regional iron depositions in cerebral small vessel disease.Journal: Alzheimer's & dementia : the journal of the Alzheimer's AssociationIn common: neuromaps, Nilearn, Plotly, 13 other tools, stroke, Alzheimer's / dementia, structural MRI / diffusion, 3 references
- [10] doi:10.1038/s42003-026-10066-6 [code]
- Morphological and anatomical variations in subcortical anatomy between humans and chimpanzees associated with heritability patterns related to human behavioral traits.Journal: Communications biologyIn common: seaborn, scikit-learn, pandas, 2 other tools, 2 references, 3 authors
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: 3 repositories of the authors' code, each at its verified commit and with its license, 36 scripts, and 25 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:863d006578dc0ac2…
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.1038/s41467-026-70832-2)
<!-- oscr-badge:end -->reStructuredText
.. oscr-badge:start
.. image:: https://openscicode.org/badge/doi/10.1038/s41467-026-70832-2.svg
:target: https://openscicode.org/badge/doi/10.1038/s41467-026-70832-2
:alt: OSCR
.. oscr-badge:endHTML
<!-- oscr-badge:start -->
<a href="https://openscicode.org/badge/doi/10.1038/s41467-026-70832-2"><img src="https://openscicode.org/badge/doi/10.1038/s41467-026-70832-2.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.
