Correlation of thalamic functional organization disturbances and genetic architecture in motor subtypes of Parkinson's disease.
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
MATLAB · 181 lines · 7.2 KB · no license
- %%step1
- %individual matrix
- clc;clear;
- Timepoints=200; % change based on your data
- inputall=[uigetdir(pwd,'please choose analysis file') filesep];
- %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
- pathdata=['F:\FunImgTARWDCF_PPMI\20240807\PPMI\TD' filesep]; % input data
- outputpath_affinity=[inputall 'affinity_matrix' filesep];%path of output for affinity_matrix
- outputpath_others=[inputall 'intermediate_files' filesep];% intermediate_files
- outputpath_emb=[inputall 'emb' filesep];%path of output for emb
- outputpath_res=[inputall 'res' filesep];%path of output for res
- outputpath_res_exp=[inputall 'exp' filesep];%path of output for exp
- outputpath_nii=[inputall 'result_nii' filesep];%path of output for nii
- outputpath_aligned=[inputall 'alignedgradient' filesep];%path of output for aligned
- outputpath_groupresults=[inputall 'groupresults' filesep];%path of output for aligned
- mask_A=[inputall 'mask' filesep 'Tha.nii'];% A mask
- mask_B=[inputall 'mask' filesep 'Tha_without.nii'];% B mask
- mkdir(outputpath_affinity,'A_B');% to store affinity matrix of A_B
- filenames=dir(pathdata);
- filenames(1:2,:)=[];
- %connectivity
- V_A=spm_vol(mask_A);
- Y_A=spm_read_vols(V_A);
- V_B=spm_vol(mask_B);
- Y_B=spm_read_vols(V_B);
- all_subjects_A_timeseries=zeros(Timepoints*size(filenames,1),size(find(Y_A>0),1));
- all_subjects_B_timeseries=zeros(Timepoints*size(filenames,1),size(find(Y_B>0),1));
- % affinity matrix for single subject
- for m=1:size(filenames,1)
- filenames11=[pathdata filenames(m).name filesep filenames(m).name 'F.nii'];
- V1=spm_vol(filenames11);
- Y1=spm_read_vols(V1);
- data_R=reshape(Y1,size(Y1,1)*size(Y1,2)*size(Y1,3),size(V1,1));
- clear filenames11 V1 Y1;
- data_A=data_R(Y_A>0,:)';
- data_B=data_R(Y_B>0,:)';
- clear data data_R;
- data_N_A=zscore(data_A);
- data_N_B=zscore(data_B);
- all_subjects_A_timeseries(((m-m)*size(data_A,1)+1):1*size(data_A,1),:)=data_N_A;
- all_subjects_B_timeseries(((m-m)*size(data_B,1)+1):1*size(data_B,1),:)=data_N_B;
- ['finished_affnity' num2str((m)) '/' num2str(size(filenames,1))]
- %% find zeros
- number_of_nan0_A=zeros(1,size(all_subjects_A_timeseries,2));
- for i=1:size((all_subjects_A_timeseries),2);
- number_of_nan0A=length(find(all_subjects_A_timeseries(:,i)~=0));
- number_of_nan0_A(1,i)=number_of_nan0A;
- end
- number_of_nan0_B=zeros(1,size(all_subjects_B_timeseries,2));
- for k=1:size((all_subjects_B_timeseries),2);
- number_of_nan0B=length(find(all_subjects_B_timeseries(:,k)~=0));
- number_of_nan0_B(1,k)=number_of_nan0B;
- end
- if length(find(number_of_nan0_A==0))==0 && length(find(number_of_nan0_B==0))==0;
- ['there is no all zero data']
- else
- ['there has all zero data']
- end
- clear k i number_of_nan0_A number_of_nan0_B number_of_nan0A number_of_nan0B
- con_w3=corr(all_subjects_A_timeseries, all_subjects_B_timeseries);
- con_w3= atanh(con_w3);
- %con_w3= fisherz(con_w3);
- con_w3=reshape(con_w3,size(find(Y_A>0),1),size(find(Y_B>0),1));
- bb=prctile(con_w3',90);% top 10%
- for kk=1:size(con_w3,1)
- con_w3(kk,con_w3(kk,:)<bb(1,kk))=0;
- end
- con_w3(con_w3<0)=0;
- clear kk bb;
- Cosine_w=1-pdist(con_w3,'cosine');
- index = 1:size(con_w3,1)*size(con_w3,1);
- index = reshape(index,size(con_w3,1),size(con_w3,1))';
- index = triu(index,1);
- index=index';
- index=index(:)';
- index(index==0)=[];
- Cosine_w_F = zeros(size(con_w3,1),size(con_w3,1));
- Cosine_w_F(index) = Cosine_w;
- Cosine_w_F=Cosine_w_F+Cosine_w_F';
- for kk=1:size(con_w3,1)
- Cosine_w_F(kk,kk)=1;
- end
- clear kk;
- save([outputpath_affinity 'A_B' filesep filenames(m).name 'Ave_A_B'],'Cosine_w_F');
- clear index con_w3 Cosine_w Cosine_w_F;
- clear all_subjects_A_timeseries all_subjects_B_timeseries;
- end
- %%Éú³Éÿ¸ö±»ÊÔµÄÌݶȾØÕó
- root_dir = 'E:\tha_gradient\Gradient_thalamus\TD1\affinity_matrix\A_B';
- out_path = 'E:\tha_gradient\Gradient_thalamus\TD1\gradients';
- %%
- if ~exist(out_path,'dir')
- mkdir(out_path);
- end
- data_all = dir([root_dir filesep '*.mat']);
- for sub = 1:numel(data_all)
- sub_func = load([root_dir filesep data_all(sub).name]);
- %
- %GrandientMaps
- gm = GradientMaps('kernel','normalizedAngle','approach','diffusionEmbedding');
- gm = gm.fit(sub_func.Cosine_w_F);
- out_name = [out_path filesep data_all(sub).name];
- mkdir(out_name);
- save([out_name '/gredient.mat'],'gm');
- %if~exist(out_name,'dir')
- %mkdir(out_name);
- %end
- sub %command windows
- end
- %%step2
- %labeling = load('D:\4BNTG_day4\scheafer_400_7network_order\label.mat');
- root_dir = 'E:\tha_gradient\Gradient_thalamus\top5\local\gradients';
- out_path = 'E:\tha_gradient\Gradient_thalamus\top5\local\gradients_allign';
- %%
- if ~exist(out_path,'dir')
- mkdir(out_path);
- end
- data_all = dir([root_dir filesep '*.mat']);%sub-*
- %
- n_sub= numel(data_all);
- for sub = 1:n_sub
- sub_func = load([root_dir filesep data_all(sub).name '\gredient.mat']);
- all_sub_gradients{sub} = sub_func.gm.gradients{1};
- sub
- end
- %
- [aligned, xfms] = procrustes_alignment(all_sub_gradients,'nIterations', 100);
- for sub = 1:n_sub
- aligned_gradient = aligned{sub};
- aligned_gradient_all(:,:,sub)=aligned_gradient;
- out_name = [out_path filesep data_all(sub).name];
- if ~exist(out_name,'dir')
- mkdir(out_name)
- end
- save([out_name,'/aligned_gradient.mat'],'aligned_gradient');
- sub
- end
- %%
- group_dir = 'E:\tha_gradient\Gradient_thalamus\top5\local\group_results';
- if ~exist(group_dir,'dir')
- mkdir(group_dir);
- end
- group1_gradient= mean(aligned_gradient_all(:,:,1:46),3); %HC
- group2_gradient= mean(aligned_gradient_all(:,:,47:118),3); %PIGD
- group3_gradient= mean(aligned_gradient_all(:,:,119:189),3);%TD
- save([group_dir '\group1_mean_gradient.mat'],'group1_gradient');
- save([group_dir '\group2_mean_gradient.mat'],'group2_gradient');
- save([group_dir '\group3_mean_gradient.mat'],'group3_gradient');
- save([group_dir '\all_subjects_aligned_gradient.mat'],'aligned_gradient_all');
- %
- figure;h1=histfit(group1_gradient(:,1),[],'kernel');hold on; h2=histfit(group2_gradient(:,1),[],'kernel');h3=histfit(group3_gradient(:,1),[],'kernel');
- h1(1).FaceAlpha = 0.3;h2(1).FaceAlpha = 0.3;h3(1).FaceAlpha = 0.3;h1(2).Color = [.9 .0 .0];h2(2).Color = [0.2 0.2 0.5];h3(2).Color = [.4 .2 .3];
- figure;h1=histfit(group1_gradient(:,2),[],'kernel');hold on; h2=histfit(group2_gradient(:,2),[],'kernel');
- h1(1).FaceAlpha = 0.2;h2(1).FaceAlpha = 0.2;h1(2).Color = [.2 .2 .2];h2(2).Color = [.2 .2 .2];
- figure;h1=histfit(group1_gradient(:,3),[],'kernel');hold on; h2=histfit(group2_gradient(:,3),[],'kernel');
- h1(1).FaceAlpha = 0.2;h2(1).FaceAlpha = 0.2;h1(2).Color = [.2 .2 .2];h2(2).Color = [.2 .2 .2];
- %% range and std
- emb_range = zeros(n_sub,3);%emb_range
- for i = 1:3
- for j = 1:n_sub
- emb_range(j,i) = max(aligned_gradient_all(:,i,j)) - min(aligned_gradient_all(:,i,j));
- end
- end
- save([group_dir,'/emb_range.mat'],'emb_range');
- % calculate variation
- emb_std = zeros(n_sub,3);%emb_std
- for i = 1:3
- for j = 1:n_sub
- emb_std(j,i) = std(aligned_gradient_all(:,i,j));
- end
- end
- save([group_dir,'/emb_std.mat'],'emb_std');
Untitled.m, no license · at the source
Overview
- Department of Radiology, The First Hospital of China Medical University, Shenyang, China
- Department of Neurology, The First Hospital of China Medical University, Shenyang, 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.
OSF gwzhe
Availability: 1 check, the latest on 27 September 2026: the link answers (HTTP 200)
- 27 September 2026: the link answers (HTTP 200)
1 file
- Untitled.m, MATLAB, 181 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;
- 1 script, each with its path and the digest of its content;
- no match between paragraphs and code yet;
- 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.
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 the authors' code: OSF gwzhe
- it says that the data are available on request
Read it in the paper: doi.org/10.1038/s41531-026-01417-5.
Versions
The history of this record: each version stored by the harvester or made by a correction of its authors or of the maintainers of its code, and what changed in its facts. The texts of the paper (its abstract, its availability statements) are not part of it; versions that changed only those are not listed.
Version 1, 27 September 2026: the first record
Recorded: type, language, journal, volume, issue, pages, dates, 11 authors, 3 keywords, 2 funders, 86 references.
Cite
This paper
Bu, S., Pang, H., Li, X., Liu, Y., Zhao, M., Wang, J., Huang, L., Niu, Q., Liang, L., Yu, H., & Fan, G. (2026). Correlation of thalamic functional organization disturbances and genetic architecture in motor subtypes of Parkinson's disease. NPJ Parkinson's disease, 12(1), 210. https://
BibTeX
@article{bu2026correlati
author = {Bu, Shuting and Pang, Huize and Li, Xiaolu and Liu, Yu and Zhao, Mengwan and Wang, Juzhou and Huang, Lina and Niu, Qin and Liang, Le and Yu, Hongmei and Fan, Guoguang},
title = {{Correlation of thalamic functional organization disturbances and genetic architecture in motor subtypes of Parkinson's disease}},
journal = {NPJ Parkinson's disease},
year = {2026},
month = jun,
volume = {12},
number = {1},
pages = {210},
publisher = {Nature Publishing Group},
issn = {2373-8057},
doi = {10.1038/
url = {https://
pmid = {42230632},
pmcid = {PMC13534686}
}
RIS
TY - JOUR
AU - Bu, Shuting
AU - Pang, Huize
AU - Li, Xiaolu
AU - Liu, Yu
AU - Zhao, Mengwan
AU - Wang, Juzhou
AU - Huang, Lina
AU - Niu, Qin
AU - Liang, Le
AU - Yu, Hongmei
AU - Fan, Guoguang
TI - Correlation of thalamic functional organization disturbances and genetic architecture in motor subtypes of Parkinson's disease
T2 - NPJ Parkinson's disease
J2 - NPJ Parkinsons Dis
PY - 2026
DA - 2026/
VL - 12
IS - 1
SP - 210
SN - 2373-8057
PB - Nature Publishing Group
DO - 10.1038/
UR - https://
LA - en
ER -
CSL-JSON
{
"id": "10.1038/
"type": "article-journal",
"title": "Correlation of thalamic functional organization disturbances and genetic architecture in motor subtypes of Parkinson's disease",
"container-title": "NPJ Parkinson's disease",
"author": [
{
"family": "Bu",
"given": "Shuting"
},
{
"family": "Pang",
"given": "Huize"
},
{
"family": "Li",
"given": "Xiaolu"
},
{
"family": "Liu",
"given": "Yu"
},
{
"family": "Zhao",
"given": "Mengwan"
},
{
"family": "Wang",
"given": "Juzhou"
},
{
"family": "Huang",
"given": "Lina"
},
{
"family": "Niu",
"given": "Qin"
},
{
"family": "Liang",
"given": "Le"
},
{
"family": "Yu",
"given": "Hongmei"
},
{
"family": "Fan",
"given": "Guoguang"
}
],
"container-title-short":
"volume": "12",
"issue": "1",
"page": "210",
"DOI": "10.1038/
"PMID": "42230632",
"PMCID": "PMC13534686",
"ISSN": "2373-8057",
"publisher": "Nature Publishing Group",
"URL": "https://
"language": "en",
"issued": {
"date-parts": [
[
2026,
6,
3
]
]
}
}
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.1017/s0033291725102705 [code]
- Cortical morphometric gradients reveal molecular and cognitive underpinnings of bipolar disorder.Journal: Psychological medicineIn common: BrainSpace, Statistics and Machine Learning Toolbox, genetics / omics, 14 references
- [2] doi:10.1038/s42003-024-06877-0 [code]
- Abnormal structural‒functional coupling patterning in progressive supranuclear palsy is associated with diverse gradients and histological features.Journal: Communications biologyIn common: BrainSpace, SPM, Statistics and Machine Learning Toolbox, Parkinson's, 12 references
- [3] doi:10.1038/s41531-025-01002-2 [code]
- Mapping striatal functional gradients and associated gene expression in Parkinson's disease with continuous cognitive impairment.Journal: NPJ Parkinson's diseaseIn common: BrainSpace, SPM, Statistics and Machine Learning Toolbox, Parkinson's, 10 references
- [4] doi:10.1017/s0033291724001739 [code]
- Functional gradient dysfunction in drug-naïve first-episode schizophrenia and its correlation with specific transcriptional patterns and treatment predictions.Journal: Psychological medicineIn common: BrainSpace, SPM, Statistics and Machine Learning Toolbox, genetics / omics, 10 references
- [5] doi:10.1002/hbm.26678 [code]
- Functional gradients reveal cortical hierarchy changes in multiple sclerosis.Journal: Human brain mappingIn common: BrainSpace, systems, 11 references
- [6] doi:10.1162/imag_a_00564 [code]
- Dopamine alters functional gradients in Parkinson's disease.Journal: Imaging neuroscience (Cambridge, Mass.)In common: BrainSpace, Statistics and Machine Learning Toolbox, Parkinson's, 12 references
- [7] doi:10.1038/s41398-025-03748-y [code]
- Abnormal cortical topographic patterns associated with auditory verbal hallucination in first-episode schizophrenia.Journal: Translational psychiatryIn common: SPM, Statistics and Machine Learning Toolbox, 13 references
- [8] doi:10.1002/hbm.26247 [code]
- Functional hierarchy of the angular gyrus and its underlying genetic architecture.Journal: Human brain mappingIn common: Statistics and Machine Learning Toolbox, genetics / omics, 12 references
- [9] doi:10.1016/j.neuroimage.2022.119807 [code]
- BrainStat: A toolbox for brain-wide statistics and multimodal feature associations.Journal: NeuroImageIn common: BrainSpace, 12 references
- [10] 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: BrainSpace, SPM, Statistics and Machine Learning Toolbox, genetics / omics, 10 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, 1 script, and 0 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:cbbc7473f6cb5c80…
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/s41531-026-01417-5)
<!-- oscr-badge:end -->reStructuredText
.. oscr-badge:start
.. image:: https://openscicode.org/badge/doi/10.1038/s41531-026-01417-5.svg
:target: https://openscicode.org/badge/doi/10.1038/s41531-026-01417-5
:alt: OSCR
.. oscr-badge:endHTML
<!-- oscr-badge:start -->
<a href="https://openscicode.org/badge/doi/10.1038/s41531-026-01417-5"><img src="https://openscicode.org/badge/doi/10.1038/s41531-026-01417-5.svg" alt="OSCR"></a>
<!-- oscr-badge:end -->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)
Activity: what happens around this paper: new versions of its record, its map's validation, discussions and reproductions. It opens with sign-in.
