OSCR

Structural connectome architecture and biological vulnerability shape cortical atrophy in cocaine use disorder.

Code ↔ Paper

11 matches between paragraphs of the paper and lines of its authors' code, computed by the harvester (lexical-v1). Click a colored paragraph or line to see its counterpart.

The 11 matches · 3 of them tie a paragraph to a whole file, not to given lines: weak matches, whose lines are not tinted
  1. [1] § Results › Normative model identifies cortical atrophy in CUD ↔ Codes/S1_Network_atrophy_stats.ipynb, lines 32–59 · score 0.75 · ventral attention, secondary sensory, primary sensory, dorsal attention, primary motor, somatomotor
  2. [2] § Results › Normative model identifies cortical atrophy in CUD ↔ Codes/S2_System_level_stats.ipynb, lines 22–49 · score 0.75 · ventral attention, secondary sensory, primary sensory, dorsal attention, primary motor, somatomotor
  3. [3] § Results › Normative model identifies cortical atrophy in CUD ↔ Codes/S1_Network_atrophy_stats.ipynb, lines 32–59 · score 0.74 · ventral attention, secondary sensory, primary sensory, primary motor, limbic, dorsal
  4. [4] § Results › Normative model identifies cortical atrophy in CUD ↔ Codes/S2_System_level_stats.ipynb, lines 22–49 · score 0.74 · ventral attention, secondary sensory, primary sensory, primary motor, limbic, dorsal
  5. [5] § Methods › Multivariate associations between individual epicenters and behaviors ↔ Codes/S9_Behavioral_PLS_analysis.ipynb, lines 41–79 · score 0.74 · bootstrap resampling, cross validation, latent variable, behavioural, permutation, PLS
  6. [6] § Methods › Gene enrichment analysis ↔ Codes/S5_AHBA_analyses.m, lines 7–25 · score 0.67 · predictor variable, response variables, gene expression, AHBA, scores, epicenter
  7. [7] § Methods › MRI data preprocessing ↔ Codes/S1_Wscore_calculation.m, the whole file · a weak match · score 0.61 · HCP YA, SUDMEX CONN, preprocessed, MRI, cortical
  8. [8] § Methods › Normative modelling for cortical atrophy and CUD deviations ↔ Codes/utilities/parcelwise_Wscore.m, the whole file · a weak match · score 0.58 · model trained, cortical thickness, residual, deviations, linear, score
  9. [9] § Methods › Normative modelling for cortical atrophy and CUD deviations ↔ Codes/S1_Wscore_calculation.m, the whole file · a weak match · score 0.57 · HCP YA, cortical thickness, sex, age, covariates, score
  10. [10] § Methods › rTMS-induced symptom-response mapping ↔ Codes/S7_TMS_response_epicenter_regression.ipynb, lines 10–31 · score 0.55 · stimulation site, response maps, active, regression, TMS, epicenter
  11. [11] § Results › Epicenters associate with clinical responses and psychopathology in CUD ↔ Codes/S7_TMS_response_epicenter_regression.ipynb, lines 10–31 · score 0.52 · stimulation site, response map, VAS, treatment, clinical, behavioural

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

Jupyter notebook · 186 lines · 6.7 KB · no license · 2 matches

  1. # %%
  2. import os, sys
  3. import scipy.io
  4. import numpy as np
  5. import matplotlib.pyplot as plt
  6. from neuromaps.images import load_data
  7. from neuromaps.images import dlabel_to_gifti
  8. from netneurotools import datasets as nntdata
  9. from nilearn.datasets import fetch_atlas_schaefer_2018
  10. from statsmodels.stats.multitest import multipletests
  11. from scipy.io import loadmat, savemat
  12. from neuromaps import images, nulls
  13. ref_path = r"D:\OneDrive\References\Farahani_ALS-main\codes" ## https://github.com/netneurolab/Farahani_ALS/tree/main/codes
  14. sys.path.append(ref_path)
  15. from functions import (parcel2fsLR,
  16. save_gifti,
  17. vasa_null_Schaefer)
  18. from globals import path_results, path_fig, nnodes, path_atlas, path_surface, path_wb_command
  19. # %%
  20. nspins = 1000 # number of null realizations for the spin test
  21. #------------------------------------------------------------------------------
  22. # Load group-averegd W-score data of SUDMEX_TMS
  23. #------------------------------------------------------------------------------
  24. tmp = loadmat(f'D:\\5_TMS_response\\CT_Wscore53avg_S400_7Net_vHCP2.mat')
  25. disease_profile = tmp['Wscore_s400_7Net'].squeeze()
  26. # %%
  27. #------------------------------------------------------------------------------
  28. # Load von-economo atlas information
  29. #------------------------------------------------------------------------------
  30. def load_von_economo_atlas(path_in, nnodes):
  31. atlas_data = np.squeeze(scipy.io.loadmat(path_in + 'economo_Schaefer400.mat')['pdata'])
  32. return atlas_data - 1, ['primary motor',
  33. 'association',
  34. 'association',
  35. 'primary/secondary sensory',
  36. 'primary sensory',
  37. 'limbic',
  38. 'insular']
  39. def load_Yeo7_atlas(path_in, nnodes):
  40. atlas_data = np.squeeze(scipy.io.loadmat(path_in + 'Yeo7_Schaefer400.mat')['yeodata'])
  41. return atlas_data - 1, ['visual',
  42. 'somatomotor',
  43. 'dorsal attention',
  44. 'salience/ventral attention',
  45. 'limbic',
  46. 'control',
  47. 'default']
  48. atlas_7Network_von, label_von_networks = load_von_economo_atlas(path_atlas, nnodes)
  49. atlas_7Network_yeo, label_yeo_networks = load_Yeo7_atlas(path_atlas, nnodes)
  50. num_labels = len(label_von_networks)
  51. # %%
  52. import numpy as np
  53. from scipy.stats import ttest_1samp
  54. from statsmodels.stats.multitest import multipletests
  55. def compute_network_ttest_vs_zero(disease_profile, atlas_labels_array, atlas_label_names):
  56. """
  57. Within each network, a two-tailed one-sample t-test was performed to
  58. determine whether its W-score significantly deviated from zero (indicating cortical thinning or thickening)
  59. inputs:
  60. disease_profile : array, shape (nnodes,)
  61. atlas_labels_array : array, shape (nnodes,)
  62. atlas_label_names : list of str
  63. outputs:
  64. result_dict :
  65. - "network": list of network names
  66. - "mean_value": mean W-score for each network
  67. - "p_value": raw p-value from the two-tailed test
  68. - "p_fdr": FDR-corrected p-value
  69. """
  70. num_labels = len(atlas_label_names)
  71. mean_values = []
  72. p_values = []
  73. for i in range(num_labels):
  74. # extract the W-score
  75. mask = atlas_labels_array == i
  76. scores = disease_profile[mask]
  77. scores = scores[~np.isnan(scores)] # remove NaN
  78. mean_values.append(np.mean(scores))
  79. # two-tailed one-sample t-test: H0: μ == 0
  80. t_stat, p = ttest_1samp(scores, popmean=0)
  81. p_values.append(p)
  82. # FDR correction
  83. p_fdr = multipletests(p_values, method='fdr_bh')[1]
  84. result_dict = {
  85. "network": atlas_label_names,
  86. "mean_value": mean_values,
  87. "p_value": p_values,
  88. "p_fdr": p_fdr
  89. }
  90. return result_dict
  91. # %%
  92. result = compute_network_ttest_vs_zero(
  93. disease_profile=disease_profile,
  94. atlas_labels_array=atlas_7Network_yeo,
  95. atlas_label_names=label_yeo_networks
  96. )
  97. for name, mean, p, pfdr in zip(result["network"], result["mean_value"], result["p_value"], result["p_fdr"]):
  98. print(f"{name:<20} | Mean = {mean:.4f} | p = {p:.4f} | pFDR = {pfdr:.4f}")
  99. # %%
  100. result = compute_network_ttest_vs_zero(
  101. disease_profile=disease_profile,
  102. atlas_labels_array=atlas_7Network_von,
  103. atlas_label_names=label_von_networks
  104. )
  105. for name, mean, p, pfdr in zip(result["network"], result["mean_value"], result["p_value"], result["p_fdr"]):
  106. print(f"{name:<20} | Mean = {mean:.4f} | p = {p:.4f} | pFDR = {pfdr:.4f}")
  107. # %%
  108. ##visualization the results
  109. def plot_boxplot(nulls,path_fig=None, name_to_save=None):
  110. """
  111. Create a box plot for the null distribution
  112. and visualize the actual value on top
  113. """
  114. fig, axes = plt.subplots(figsize = (7, 4))
  115. axes.boxplot(nulls, vert=True,flierprops=dict(markersize=6))
  116. axes.spines['top'].set_visible(False)
  117. axes.spines['right'].set_visible(False)
  118. axes.spines['bottom'].set_visible(False)
  119. plt.tight_layout()
  120. if name_to_save:
  121. plt.savefig(os.path.join(path_fig, name_to_save + '.pdf'),dpi=300)
  122. plt.show()
  123. # Get actual/real values for each network YEO
  124. network_specific_disease_measure_yeo = []
  125. for label_ind in range(num_labels):
  126. temp = []
  127. for roi_ind in range(nnodes):
  128. if atlas_7Network_yeo[roi_ind] == label_ind:
  129. temp.append(disease_profile[roi_ind])
  130. print(np.array(temp).shape)
  131. network_specific_disease_measure_yeo.append(np.array(temp))
  132. # %%
  133. ## sort the data YEO
  134. row_medians = [np.nanmedian(arr) for arr in network_specific_disease_measure_yeo]
  135. sorted_indices_Yeo = np.argsort(row_medians)[::-1]
  136. sorted_Yeo_data_TMS = [network_specific_disease_measure_yeo[i] for i in sorted_indices_Yeo]
  137. plot_boxplot(sorted_Yeo_data_TMS,path_fig='D:\\OneDrive\\5_TMS_response\\',
  138. name_to_save='CT_Wscore53avg_S400_7Net_vHCP2_Yeo_hor')
  139. # %%
  140. # Get actual/real values for each network VON
  141. network_specific_disease_measure_von = []
  142. for label_ind in range(num_labels):
  143. temp = []
  144. for roi_ind in range(nnodes):
  145. if atlas_7Network_von[roi_ind] == label_ind:
  146. temp.append(disease_profile[roi_ind])
  147. print(np.array(temp).shape)
  148. network_specific_disease_measure_von.append(np.array(temp))
  149. # %%
  150. ## sort the data VON
  151. row_medians = [np.nanmedian(arr) for arr in network_specific_disease_measure_von]
  152. sorted_indices_von = np.argsort(row_medians)[::-1]
  153. sorted_von_data_TMS = [network_specific_disease_measure_von[i] for i in sorted_indices_von]
  154. plot_boxplot(sorted_von_data_TMS,path_fig='D:\\OneDrive\\5_TMS_response\\',
  155. name_to_save='CT_Wscore53avg_S400_7Net_vHCP2_von_hor')

S1_Network_atrophy_stats.ipynb at commit 9e32f25, no license · at the source

Overview

Authors: Ziteng Han1,2, Tiantian Liu1,2, Kexin Wang1,2, Guoyuan Yang1,2,3, Tianyi Yan1,2
ORCID iDs: Ziteng Han
  1. School of Medical Science and Engineering, Beijing Institute of Technology,Beijing, China
  2. Beijing Key Laboratory of Brain-inspired Neural Engineering, Beijing Institute of Technology,Beijing, China
  3. School of Interdisciplinary Science, Beijing Institute of Technology,Beijing, China
Institutions: Beijing Institute of Technology (China)
Journal: BMC medicine, volume 24, issue 1, article 374
Dates: received 19 September 2025; accepted 29 April 2026; published online 9 May 2026
Type: Research article · Language: English
License: CC BY-NC-ND
Identifiers: DOI 10.1186/s12916-026-04903-y · PMID 42106690 · PMCID PMC13326153 · OpenAlex W4413378533
Open access: gold, a free copy (OpenAlex)
Status: code verified
Categories: structural MRI / diffusion (modality), human (organism), other condition (population)
Methods: Connectivity, Statistics, Smoothing, state filtering, decompositions, Machine learning, Preprocessing, fMRI & imaging
Keywords: Brain-behaviour relationships, Brain connectome, Cocaine use disorder, Microscale molecular features, Disease epicenter
MeSH: Cerebral Cortex*, Cocaine-Related Disorders*, Connectome*, Adult, Atrophy, Female, Humans, Magnetic Resonance Imaging, Male, Middle Aged, White Matter (* major topic)
Topic: Functional Brain Connectivity Studies (Cognitive Neuroscience, Neuroscience), according to OpenAlex
Citations: not cited yet (Europe PMC); 112 references in the paper

Abstract

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

Repository

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

TianyiYanLab/CUD_Pathology_Modelling

License: none: the authors keep all their rights
State: the link answers, verified on 28 September 2026
Evidence: files inventoried
Commit: 9e32f25eb519a209cb0eba6db9a73820d9a9d4e3, 13 August 2025
Languages: Jupyter (9), MATLAB (5)
Size: 34 files, 14 scripts
Software Heritage: not archived
Found in: “Data Availability”
Holds: README, 9 notebooks
Not found: license file, CITATION.cff, environment file, tests, continuous integration, documentation
Tools: Matplotlib (9 files), NumPy (9 files), SciPy (8 files), netneurotools (7 files), neuromaps (7 files), seaborn (6 files), statsmodels (4 files), Statistics and Machine Learning Toolbox (3 files), pandas (3 files), Nilearn (2 files), scikit-learn (1 file)
Availability: 1 check, the latest on 28 September 2026: the link answers
  • 28 September 2026: the link answers
15 files

The paper's code and data availability statement is in the Data section.

Tracing map

Proposed by the machine: these links were found in the paper and verified at the source, without human review. The map will receive a Zenodo DOI once one of the paper's authors has validated it with their ORCID.

What the map holds:

  • 1 repository of the authors' code, each at its verified commit, with its license and how the link was found in the paper;
  • 14 scripts, each with its path and the digest of its content;
  • 11 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

Code and data availability statement

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

Read it in the paper: doi.org/10.1186/s12916-026-04903-y.

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 2, 28 September 2026

  • Authors: added Ziteng Han (0000-0002-2691-6784); removed Ziteng Han

Version 1, 28 September 2026: the first record

Recorded: type, language, journal, volume, issue, pages, dates, 5 authors, 5 keywords, 11 MeSH terms, 1 funder, 110 references.

Cite

This paper

Han, Z., Liu, T., Wang, K., Yang, G., & Yan, T. (2026). Structural connectome architecture and biological vulnerability shape cortical atrophy in cocaine use disorder. BMC medicine, 24(1), 374. https://doi.org/10.1186/s12916-026-04903-y

BibTeX

@article{han2026structural,
author = {Han, Ziteng and Liu, Tiantian and Wang, Kexin and Yang, Guoyuan and Yan, Tianyi},
title = {{Structural connectome architecture and biological vulnerability shape cortical atrophy in cocaine use disorder}},
journal = {BMC medicine},
year = {2026},
month = may,
volume = {24},
number = {1},
pages = {374},
publisher = {BioMed Central},
issn = {1741-7015},
doi = {10.1186/s12916-026-04903-y},
url = {https://doi.org/10.1186/s12916-026-04903-y},
pmid = {42106690},
pmcid = {PMC13326153}
}

RIS

TY - JOUR
AU - Han, Ziteng
AU - Liu, Tiantian
AU - Wang, Kexin
AU - Yang, Guoyuan
AU - Yan, Tianyi
TI - Structural connectome architecture and biological vulnerability shape cortical atrophy in cocaine use disorder
T2 - BMC medicine
J2 - BMC Med
PY - 2026
DA - 2026/05/09
VL - 24
IS - 1
SP - 374
SN - 1741-7015
PB - BioMed Central
DO - 10.1186/s12916-026-04903-y
UR - https://doi.org/10.1186/s12916-026-04903-y
LA - en
ER -

CSL-JSON

{
"id": "10.1186/s12916-026-04903-y",
"type": "article-journal",
"title": "Structural connectome architecture and biological vulnerability shape cortical atrophy in cocaine use disorder",
"container-title": "BMC medicine",
"author": [
{
"family": "Han",
"given": "Ziteng"
},
{
"family": "Liu",
"given": "Tiantian"
},
{
"family": "Wang",
"given": "Kexin"
},
{
"family": "Yang",
"given": "Guoyuan"
},
{
"family": "Yan",
"given": "Tianyi"
}
],
"container-title-short": "BMC Med",
"volume": "24",
"issue": "1",
"page": "374",
"DOI": "10.1186/s12916-026-04903-y",
"PMID": "42106690",
"PMCID": "PMC13326153",
"ISSN": "1741-7015",
"publisher": "BioMed Central",
"URL": "https://doi.org/10.1186/s12916-026-04903-y",
"language": "en",
"issued": {
"date-parts": [
[
2026,
5,
9
]
]
}
}

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-75959-w [code]
Charting higher-order models of brain function beyond pairwise interactions.
Journal: Nature communications
In common: neuromaps, Nilearn, statsmodels, 7 other tools, 12 references
[2] doi:10.1038/s41380-026-03547-x [code]
Multiscale characterization of cortical signatures in positive and negative schizotypy: a worldwide ENIGMA study.
Journal: Molecular psychiatry
In common: github.com/netneurolab/hansen_receptors, structural MRI / diffusion, 12 references
[3] doi:10.1093/brain/awaf432
Global network and local vulnerabilities underlie brain atrophy across Parkinson's disease stages.
Journal: Brain : a journal of neurology
In common: structural MRI / diffusion, 15 references
[4] doi:10.1038/s42003-025-09444-3 [code]
Decoupling of neurophysiological activity from structure mirrors global microarchitectural and neuromodulatory trends.
Journal: Communications biology
In common: netneurotools, neuromaps, Nilearn, 6 other tools, 8 references
[5] doi:10.1038/s41467-026-74153-2 [code]
Regional, functional and transcriptomic decoding of multidimensional brain structure alterations in obsessive-compulsive disorder.
Journal: Nature communications
In common: neuromaps, statsmodels, scikit-learn, 4 other tools, other condition, 9 references
[6] doi:10.1038/s41531-026-01354-3 [code]
Neuromodulation-induced normalization of cortical metastable dynamics signatures in Parkinson's disease.
Journal: NPJ Parkinson's disease
In common: neuromaps, Nilearn, statsmodels, 7 other tools, other condition, 7 references
[7] doi:10.1371/journal.pbio.3003856 [code]
Aging and metabolism contribute separately to brain-body health.
Journal: PLoS biology
In common: netneurotools, neuromaps, Nilearn, 8 other tools, structural MRI / diffusion, 4 references
[8] doi:10.1073/pnas.2531706123 [code]
Metabolism-weighted brain connectome reveals synaptic integration and vulnerability to neurodegeneration.
Journal: Proceedings of the National Academy of Sciences of the United States of America
In common: Nilearn, statsmodels, seaborn, 5 other tools, other condition, 9 references
[9] doi:10.1038/s41586-026-10631-3 [code]
A prognostic human brain network for diffuse midline glioma.
Journal: Nature
In common: neuromaps, Nilearn, Statistics and Machine Learning Toolbox, 6 other tools, other condition, 7 references
[10] doi:10.1186/s12916-026-04978-7 [code]
Mapping shared and specific cortical after-effects of repetitive TMS on brain function.
Journal: BMC medicine
In common: neuromaps, Nilearn, scikit-learn, 4 other tools, 9 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.

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.