Structural connectome architecture and biological vulnerability shape cortical atrophy in cocaine use disorder.
3 blocks of code here have a permanent identifier (oscr:b:…), listed with the matches below: citable for good, with a page of its own. Select a match and press Cite to copy it. What a block identifier is.
The 11 matches · 3 of them tie a paragraph to a whole file without given lines: weak matches, whose lines are not tinted
- [1] § Results › Normative model identifies cortical atrophy in CUD ↔ Codes/S1_Network_atrophy_stats.ipynb, lines 32 to 59 · score 0.75 · ventral attention, secondary sensory, primary sensory, dorsal attention, primary motor, somatomotor · Report a mismatch
- [2] § Results › Normative model identifies cortical atrophy in CUD ↔ Codes/S2_System_level_stats.ipynb, lines 22 to 49 · score 0.75 · ventral attention, secondary sensory, primary sensory, dorsal attention, primary motor, somatomotor · Report a mismatch
- [3] § Results › Normative model identifies cortical atrophy in CUD ↔ Codes/S1_Network_atrophy_stats.ipynb, lines 32 to 59 · score 0.74 · ventral attention, secondary sensory, primary sensory, primary motor, limbic, dorsal · Report a mismatch
- [4] § Results › Normative model identifies cortical atrophy in CUD ↔ Codes/S2_System_level_stats.ipynb, lines 22 to 49 · score 0.74 · ventral attention, secondary sensory, primary sensory, primary motor, limbic, dorsal · Report a mismatch
- [5] § Methods › Multivariate associations between individual epicenters and behaviors ↔ Codes/S9_Behavioral_PLS_analysis.ipynb, lines 41 to 79 · score 0.74 · bootstrap resampling, cross validation, latent variable, behavioural, permutation, PLS · Report a mismatch
- [6] § Methods › Gene enrichment analysis ↔ Codes/S5_AHBA_analyses.m, lines 7 to 25 · score 0.67 · predictor variable, response variables, gene expression, AHBA, scores, epicenter · block
oscr:b:00YV06EB2YPME-G· Report a mismatch - [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 · block
oscr:b:BZC6AP5Q2JK2F-0· Report a mismatch - [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 · block
oscr:b:0WEZR2MC5FQKT-C· Report a mismatch - [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 · block
oscr:b:BZC6AP5Q2JK2F-0· Report a mismatch - [10] § Methods › rTMS-induced symptom-response mapping ↔ Codes/S7_TMS_response_epicenter_regression.ipynb, lines 10 to 31 · score 0.55 · stimulation site, response maps, active, regression, TMS, epicenter · Report a mismatch
- [11] § Results › Epicenters associate with clinical responses and psychopathology in CUD ↔ Codes/S7_TMS_response_epicenter_regression.ipynb, lines 10 to 31 · score 0.52 · stimulation site, response map, VAS, treatment, clinical, behavioural · 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
Jupyter notebook · 186 lines · 6.7 KB · no license · 2 matches
- # %%
- import os, sys
- import scipy.io
- import numpy as np
- import matplotlib.pyplot as plt
- from neuromaps.images import load_data
- from neuromaps.images import dlabel_to_gifti
- from netneurotools import datasets as nntdata
- from nilearn.datasets import fetch_atlas_schaefer_2018
- from statsmodels.stats.multitest import multipletests
- from scipy.io import loadmat, savemat
- from neuromaps import images, nulls
- ref_path = r"D:\OneDrive\References\Farahani_ALS-main\codes" ## https://github.com/netneurolab/Farahani_ALS/tree/main/codes
- sys.path.append(ref_path)
- from functions import (parcel2fsLR,
- save_gifti,
- vasa_null_Schaefer)
- from globals import path_results, path_fig, nnodes, path_atlas, path_surface, path_wb_command
- # %%
- nspins = 1000 # number of null realizations for the spin test
- #------------------------------------------------------------------------------
- # Load group-averegd W-score data of SUDMEX_TMS
- #------------------------------------------------------------------------------
- tmp = loadmat(f'D:\\5_TMS_response\\CT_Wscore53avg_S400_7Net_vHCP2.mat')
- disease_profile = tmp['Wscore_s400_7Net'].squeeze()
- # %%
- #------------------------------------------------------------------------------
- # Load von-economo atlas information
- #------------------------------------------------------------------------------
- def load_von_economo_atlas(path_in, nnodes):
- atlas_data = np.squeeze(scipy.io.loadmat(path_in + 'economo_Schaefer400.mat')['pdata'])
- return atlas_data - 1, ['primary motor',
- 'association',
- 'association',
- 'primary/secondary sensory',
- 'primary sensory',
- 'limbic',
- 'insular']
- def load_Yeo7_atlas(path_in, nnodes):
- atlas_data = np.squeeze(scipy.io.loadmat(path_in + 'Yeo7_Schaefer400.mat')['yeodata'])
- return atlas_data - 1, ['visual',
- 'somatomotor',
- 'dorsal attention',
- 'salience/ventral attention',
- 'limbic',
- 'control',
- 'default']
- atlas_7Network_von, label_von_networks = load_von_economo_atlas(path_atlas, nnodes)
- atlas_7Network_yeo, label_yeo_networks = load_Yeo7_atlas(path_atlas, nnodes)
- num_labels = len(label_von_networks)
- # %%
- import numpy as np
- from scipy.stats import ttest_1samp
- from statsmodels.stats.multitest import multipletests
- def compute_network_ttest_vs_zero(disease_profile, atlas_labels_array, atlas_label_names):
- """
- Within each network, a two-tailed one-sample t-test was performed to
- determine whether its W-score significantly deviated from zero (indicating cortical thinning or thickening)
- inputs:
- disease_profile : array, shape (nnodes,)
- atlas_labels_array : array, shape (nnodes,)
- atlas_label_names : list of str
- outputs:
- result_dict :
- - "network": list of network names
- - "mean_value": mean W-score for each network
- - "p_value": raw p-value from the two-tailed test
- - "p_fdr": FDR-corrected p-value
- """
- num_labels = len(atlas_label_names)
- mean_values = []
- p_values = []
- for i in range(num_labels):
- # extract the W-score
- mask = atlas_labels_array == i
- scores = disease_profile[mask]
- scores = scores[~np.isnan(scores)] # remove NaN
- mean_values.append(np.mean(scores))
- # two-tailed one-sample t-test: H0: μ == 0
- t_stat, p = ttest_1samp(scores, popmean=0)
- p_values.append(p)
- # FDR correction
- p_fdr = multipletests(p_values, method='fdr_bh')[1]
- result_dict = {
- "network": atlas_label_names,
- "mean_value": mean_values,
- "p_value": p_values,
- "p_fdr": p_fdr
- }
- return result_dict
- # %%
- result = compute_network_ttest_vs_zero(
- disease_profile=disease_profile,
- atlas_labels_array=atlas_7Network_yeo,
- atlas_label_names=label_yeo_networks
- )
- for name, mean, p, pfdr in zip(result["network"], result["mean_value"], result["p_value"], result["p_fdr"]):
- print(f"{name:<20} | Mean = {mean:.4f} | p = {p:.4f} | pFDR = {pfdr:.4f}")
- # %%
- result = compute_network_ttest_vs_zero(
- disease_profile=disease_profile,
- atlas_labels_array=atlas_7Network_von,
- atlas_label_names=label_von_networks
- )
- for name, mean, p, pfdr in zip(result["network"], result["mean_value"], result["p_value"], result["p_fdr"]):
- print(f"{name:<20} | Mean = {mean:.4f} | p = {p:.4f} | pFDR = {pfdr:.4f}")
- # %%
- ##visualization the results
- def plot_boxplot(nulls,path_fig=None, name_to_save=None):
- """
- Create a box plot for the null distribution
- and visualize the actual value on top
- """
- fig, axes = plt.subplots(figsize = (7, 4))
- axes.boxplot(nulls, vert=True,flierprops=dict(markersize=6))
- axes.spines['top'].set_visible(False)
- axes.spines['right'].set_visible(False)
- axes.spines['bottom'].set_visible(False)
- plt.tight_layout()
- if name_to_save:
- plt.savefig(os.path.join(path_fig, name_to_save + '.pdf'),dpi=300)
- plt.show()
- # Get actual/real values for each network YEO
- network_specific_disease_measure_yeo = []
- for label_ind in range(num_labels):
- temp = []
- for roi_ind in range(nnodes):
- if atlas_7Network_yeo[roi_ind] == label_ind:
- temp.append(disease_profile[roi_ind])
- print(np.array(temp).shape)
- network_specific_disease_measure_yeo.append(np.array(temp))
- # %%
- ## sort the data YEO
- row_medians = [np.nanmedian(arr) for arr in network_specific_disease_measure_yeo]
- sorted_indices_Yeo = np.argsort(row_medians)[::-1]
- sorted_Yeo_data_TMS = [network_specific_disease_measure_yeo[i] for i in sorted_indices_Yeo]
- plot_boxplot(sorted_Yeo_data_TMS,path_fig='D:\\OneDrive\\5_TMS_response\\',
- name_to_save='CT_Wscore53avg_S400_7Net_vHCP2_Yeo_hor')
- # %%
- # Get actual/real values for each network VON
- network_specific_disease_measure_von = []
- for label_ind in range(num_labels):
- temp = []
- for roi_ind in range(nnodes):
- if atlas_7Network_von[roi_ind] == label_ind:
- temp.append(disease_profile[roi_ind])
- print(np.array(temp).shape)
- network_specific_disease_measure_von.append(np.array(temp))
- # %%
- ## sort the data VON
- row_medians = [np.nanmedian(arr) for arr in network_specific_disease_measure_von]
- sorted_indices_von = np.argsort(row_medians)[::-1]
- sorted_von_data_TMS = [network_specific_disease_measure_von[i] for i in sorted_indices_von]
- plot_boxplot(sorted_von_data_TMS,path_fig='D:\\OneDrive\\5_TMS_response\\',
- name_to_save='CT_Wscore53avg_S400_7Net_vHCP2_von_hor')
S1_Network_atrophy_stats.ipynb at commit 9e32f25, no license · at the source
Overview
- School of Medical Science and Engineering, Beijing Institute of Technology,Beijing, China
- Beijing Key Laboratory of Brain-inspired Neural Engineering, Beijing Institute of Technology,Beijing, China
- School of Interdisciplinary Science, Beijing Institute of Technology,Beijing, China
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
9e32f25eb519a209cb0eba6db9a73820d9a9d4e3, 13 August 2025Availability: 1 check, the latest on 28 September 2026: the link answers
- 28 September 2026: the link answers
15 files
- Codes/
S10_SIR_modelling.ipynb , Jupyter, 191 lines - Codes/
S1_Network_atrophy_stats , Jupyter, 186 lines, 2 matches.ipynb - Codes/
S1_Wscore_calculation.m , MATLAB, 48 lines, 2 matches - Codes/
S2_S3_Region_to_neighbou , Jupyter, 187 linesr_atrophy_association.ip ynb - Codes/
S2_System_level_stats.ip , Jupyter, 194 lines, 2 matchesynb - Codes/
S4_Epicenter_ranking_ide , Jupyter, 161 linesntification.ipynb - Codes/
S5_AHBA_analyses.m , MATLAB, 168 lines, 1 match - Codes/
S6_Cell_type_analysis.ip , Jupyter, 221 linesynb - Codes/
S7_TMS_response_epicente , Jupyter, 102 lines, 2 matchesr_regression.ipynb - Codes/
S8_Individualized_epicen , Jupyter, 128 linester_identification.ipynb - Codes/
S9_Behavioral_PLS_analys , Jupyter, 351 lines, 1 matchis.ipynb - Codes/
S9_PLS_input_preparation , MATLAB, 44 lines.m - Codes/
utilities/ , MATLAB, 70 linesCBIG_regress_X_from_y_tr ain.m - Codes/
utilities/ , MATLAB, 31 lines, 1 matchparcelwise_Wscore.m - README.md, Text, 55 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;
- 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
- github.com/
netneurolab/ , at github.com; found in “Data Availability”hansen_receptors - humanconnectome.org/
study/ , at Human Connectome Project; found in “Data Availability”hcp-young-adult - openneuro:ds003037, at OpenNeuro; found in “Data Availability”
- openneuro:ds003346, at OpenNeuro; found in “Data Availability”
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:
- it points to 4 datasets: github.com/
netneurolab/ , humanconnectome.org/hansen_receptors study/ , OpenNeuro ds003037, OpenNeuro ds003346hcp-young-adult - it points to the authors' code: TianyiYanLab/
CUD_Pathology_Modelling - it says that the data are available on request
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://
BibTeX
@article{han2026structur
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 = {BMC},
issn = {1741-7015},
doi = {10.1186/
url = {https://
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/
VL - 24
IS - 1
SP - 374
SN - 1741-7015
PB - BMC
DO - 10.1186/
UR - https://
LA - en
ER -
CSL-JSON
{
"id": "10.1186/
"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":
"volume": "24",
"issue": "1",
"page": "374",
"DOI": "10.1186/
"PMID": "42106690",
"PMCID": "PMC13326153",
"ISSN": "1741-7015",
"publisher": "BMC",
"URL": "https://
"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/s42003-025-08561-3 [code]
- Network spreading and local biological vulnerability in amyotrophic lateral sclerosis.Journal: Communications biologyIn common: netneurotools, neuromaps, Nilearn, 8 other tools, structural MRI / diffusion, other condition, 21 references
- [2] doi:10.1038/s41467-022-32420-y [code]
- Local molecular and global connectomic contributions to cross-disorder cortical abnormalities.Journal: Nature communicationsIn common: netneurotools, neuromaps, Nilearn, 7 other tools, structural MRI / diffusion, 21 references
- [3] doi:10.1371/journal.pbio.3002314 [code]
- Integrating multimodal and multiscale connectivity blueprints of the human cerebral cortex in health and disease.Journal: PLoS biologyIn common: netneurotools, neuromaps, Nilearn, 7 other tools, structural MRI / diffusion, 19 references
- [4] doi:10.1371/journal.pbio.3003619 [code]
- Five energy metabolism pathways show distinct regional distributions and lifespan trajectories in the human brain.Journal: PLoS biologyIn common: netneurotools, neuromaps, Nilearn, 8 other tools, 16 references
- [5] doi:10.34133/research.1143 [code]
- Lifestyle and Transcriptional Signatures Associated with Ethnicity/
Race-Related Variations in the Functional Connectome. Journal: Research (Washington, D.C.)In common: Nilearn, Statistics and Machine Learning Toolbox, scikit-learn, 4 other tools, humanconnectome.org/study/hcp-young-adult, 13 references, author Ziteng Han - [6] doi:10.1038/s41467-023-41689-6 [code]
- Neurophysiological signatures of cortical micro-architecture.Journal: Nature communicationsIn common: netneurotools, neuromaps, Nilearn, 8 other tools, 14 references
- [7] doi:10.1371/journal.pbio.3003277 [code]
- Mapping cerebral blood perfusion and its links to multi-scale brain organization across the human lifespan.Journal: PLoS biologyIn common: netneurotools, neuromaps, Nilearn, 8 other tools, structural MRI / diffusion, 13 references
- [8] doi:10.1038/s41467-025-63000-5 [code]
- Gene transcription, neurotransmitter, and neurocognition signatures of brain structural-functional coupling variability.Journal: Nature communicationsIn common: netneurotools, neuromaps, Nilearn, 8 other tools, 12 references
- [9] doi:10.1186/s12916-025-04099-7 [code]
- Normative structural connectome constrains spreading transient brain activity in generalized epilepsy.Journal: BMC medicineIn common: Nilearn, Statistics and Machine Learning Toolbox, scikit-learn, 4 other tools, structural MRI / diffusion, 17 references
- [10] doi:10.1038/s41467-025-60556-0 [code]
- Cell-specific mechanisms drive connectivity across the time course of Huntington's disease.Journal: Nature communicationsIn common: netneurotools, Nilearn, statsmodels, 7 other tools, structural MRI / diffusion, other condition, 13 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, 14 scripts, and 11 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:7837042f5cd7e771…
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.1186/s12916-026-04903-y)
<!-- oscr-badge:end -->reStructuredText
.. oscr-badge:start
.. image:: https://openscicode.org/badge/doi/10.1186/s12916-026-04903-y.svg
:target: https://openscicode.org/badge/doi/10.1186/s12916-026-04903-y
:alt: OSCR
.. oscr-badge:endHTML
<!-- oscr-badge:start -->
<a href="https://openscicode.org/badge/doi/10.1186/s12916-026-04903-y"><img src="https://openscicode.org/badge/doi/10.1186/s12916-026-04903-y.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.
