OSCR

Correlation of thalamic functional organization disturbances and genetic architecture in motor subtypes of Parkinson's disease.

Code ↔ Paper

The paper beside its authors' code: matches between them have not been computed for this paper yet.

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

  1. %%step1
  2. %individual matrix
  3. clc;clear;
  4. Timepoints=200; % change based on your data
  5. inputall=[uigetdir(pwd,'please choose analysis file') filesep];
  6. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  7. pathdata=['F:\FunImgTARWDCF_PPMI\20240807\PPMI\TD' filesep]; % input data
  8. outputpath_affinity=[inputall 'affinity_matrix' filesep];%path of output for affinity_matrix
  9. outputpath_others=[inputall 'intermediate_files' filesep];% intermediate_files
  10. outputpath_emb=[inputall 'emb' filesep];%path of output for emb
  11. outputpath_res=[inputall 'res' filesep];%path of output for res
  12. outputpath_res_exp=[inputall 'exp' filesep];%path of output for exp
  13. outputpath_nii=[inputall 'result_nii' filesep];%path of output for nii
  14. outputpath_aligned=[inputall 'alignedgradient' filesep];%path of output for aligned
  15. outputpath_groupresults=[inputall 'groupresults' filesep];%path of output for aligned
  16. mask_A=[inputall 'mask' filesep 'Tha.nii'];% A mask
  17. mask_B=[inputall 'mask' filesep 'Tha_without.nii'];% B mask
  18. mkdir(outputpath_affinity,'A_B');% to store affinity matrix of A_B
  19. filenames=dir(pathdata);
  20. filenames(1:2,:)=[];
  21. %connectivity
  22. V_A=spm_vol(mask_A);
  23. Y_A=spm_read_vols(V_A);
  24. V_B=spm_vol(mask_B);
  25. Y_B=spm_read_vols(V_B);
  26. all_subjects_A_timeseries=zeros(Timepoints*size(filenames,1),size(find(Y_A>0),1));
  27. all_subjects_B_timeseries=zeros(Timepoints*size(filenames,1),size(find(Y_B>0),1));
  28. % affinity matrix for single subject
  29. for m=1:size(filenames,1)
  30. filenames11=[pathdata filenames(m).name filesep filenames(m).name 'F.nii'];
  31. V1=spm_vol(filenames11);
  32. Y1=spm_read_vols(V1);
  33. data_R=reshape(Y1,size(Y1,1)*size(Y1,2)*size(Y1,3),size(V1,1));
  34. clear filenames11 V1 Y1;
  35. data_A=data_R(Y_A>0,:)';
  36. data_B=data_R(Y_B>0,:)';
  37. clear data data_R;
  38. data_N_A=zscore(data_A);
  39. data_N_B=zscore(data_B);
  40. all_subjects_A_timeseries(((m-m)*size(data_A,1)+1):1*size(data_A,1),:)=data_N_A;
  41. all_subjects_B_timeseries(((m-m)*size(data_B,1)+1):1*size(data_B,1),:)=data_N_B;
  42. ['finished_affnity' num2str((m)) '/' num2str(size(filenames,1))]
  43. %% find zeros
  44. number_of_nan0_A=zeros(1,size(all_subjects_A_timeseries,2));
  45. for i=1:size((all_subjects_A_timeseries),2);
  46. number_of_nan0A=length(find(all_subjects_A_timeseries(:,i)~=0));
  47. number_of_nan0_A(1,i)=number_of_nan0A;
  48. end
  49. number_of_nan0_B=zeros(1,size(all_subjects_B_timeseries,2));
  50. for k=1:size((all_subjects_B_timeseries),2);
  51. number_of_nan0B=length(find(all_subjects_B_timeseries(:,k)~=0));
  52. number_of_nan0_B(1,k)=number_of_nan0B;
  53. end
  54. if length(find(number_of_nan0_A==0))==0 && length(find(number_of_nan0_B==0))==0;
  55. ['there is no all zero data']
  56. else
  57. ['there has all zero data']
  58. end
  59. clear k i number_of_nan0_A number_of_nan0_B number_of_nan0A number_of_nan0B
  60. con_w3=corr(all_subjects_A_timeseries, all_subjects_B_timeseries);
  61. con_w3= atanh(con_w3);
  62. %con_w3= fisherz(con_w3);
  63. con_w3=reshape(con_w3,size(find(Y_A>0),1),size(find(Y_B>0),1));
  64. bb=prctile(con_w3',90);% top 10%
  65. for kk=1:size(con_w3,1)
  66. con_w3(kk,con_w3(kk,:)<bb(1,kk))=0;
  67. end
  68. con_w3(con_w3<0)=0;
  69. clear kk bb;
  70. Cosine_w=1-pdist(con_w3,'cosine');
  71. index = 1:size(con_w3,1)*size(con_w3,1);
  72. index = reshape(index,size(con_w3,1),size(con_w3,1))';
  73. index = triu(index,1);
  74. index=index';
  75. index=index(:)';
  76. index(index==0)=[];
  77. Cosine_w_F = zeros(size(con_w3,1),size(con_w3,1));
  78. Cosine_w_F(index) = Cosine_w;
  79. Cosine_w_F=Cosine_w_F+Cosine_w_F';
  80. for kk=1:size(con_w3,1)
  81. Cosine_w_F(kk,kk)=1;
  82. end
  83. clear kk;
  84. save([outputpath_affinity 'A_B' filesep filenames(m).name 'Ave_A_B'],'Cosine_w_F');
  85. clear index con_w3 Cosine_w Cosine_w_F;
  86. clear all_subjects_A_timeseries all_subjects_B_timeseries;
  87. end
  88. %%Éú³Éÿ¸ö±»ÊÔµÄÌݶȾØÕó
  89. root_dir = 'E:\tha_gradient\Gradient_thalamus\TD1\affinity_matrix\A_B';
  90. out_path = 'E:\tha_gradient\Gradient_thalamus\TD1\gradients';
  91. %%
  92. if ~exist(out_path,'dir')
  93. mkdir(out_path);
  94. end
  95. data_all = dir([root_dir filesep '*.mat']);
  96. for sub = 1:numel(data_all)
  97. sub_func = load([root_dir filesep data_all(sub).name]);
  98. %
  99. %GrandientMaps
  100. gm = GradientMaps('kernel','normalizedAngle','approach','diffusionEmbedding');
  101. gm = gm.fit(sub_func.Cosine_w_F);
  102. out_name = [out_path filesep data_all(sub).name];
  103. mkdir(out_name);
  104. save([out_name '/gredient.mat'],'gm');
  105. %if~exist(out_name,'dir')
  106. %mkdir(out_name);
  107. %end
  108. sub %command windows
  109. end
  110. %%step2
  111. %labeling = load('D:\4BNTG_day4\scheafer_400_7network_order\label.mat');
  112. root_dir = 'E:\tha_gradient\Gradient_thalamus\top5\local\gradients';
  113. out_path = 'E:\tha_gradient\Gradient_thalamus\top5\local\gradients_allign';
  114. %%
  115. if ~exist(out_path,'dir')
  116. mkdir(out_path);
  117. end
  118. data_all = dir([root_dir filesep '*.mat']);%sub-*
  119. %
  120. n_sub= numel(data_all);
  121. for sub = 1:n_sub
  122. sub_func = load([root_dir filesep data_all(sub).name '\gredient.mat']);
  123. all_sub_gradients{sub} = sub_func.gm.gradients{1};
  124. sub
  125. end
  126. %
  127. [aligned, xfms] = procrustes_alignment(all_sub_gradients,'nIterations', 100);
  128. for sub = 1:n_sub
  129. aligned_gradient = aligned{sub};
  130. aligned_gradient_all(:,:,sub)=aligned_gradient;
  131. out_name = [out_path filesep data_all(sub).name];
  132. if ~exist(out_name,'dir')
  133. mkdir(out_name)
  134. end
  135. save([out_name,'/aligned_gradient.mat'],'aligned_gradient');
  136. sub
  137. end
  138. %%
  139. group_dir = 'E:\tha_gradient\Gradient_thalamus\top5\local\group_results';
  140. if ~exist(group_dir,'dir')
  141. mkdir(group_dir);
  142. end
  143. group1_gradient= mean(aligned_gradient_all(:,:,1:46),3); %HC
  144. group2_gradient= mean(aligned_gradient_all(:,:,47:118),3); %PIGD
  145. group3_gradient= mean(aligned_gradient_all(:,:,119:189),3);%TD
  146. save([group_dir '\group1_mean_gradient.mat'],'group1_gradient');
  147. save([group_dir '\group2_mean_gradient.mat'],'group2_gradient');
  148. save([group_dir '\group3_mean_gradient.mat'],'group3_gradient');
  149. save([group_dir '\all_subjects_aligned_gradient.mat'],'aligned_gradient_all');
  150. %
  151. figure;h1=histfit(group1_gradient(:,1),[],'kernel');hold on; h2=histfit(group2_gradient(:,1),[],'kernel');h3=histfit(group3_gradient(:,1),[],'kernel');
  152. 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];
  153. figure;h1=histfit(group1_gradient(:,2),[],'kernel');hold on; h2=histfit(group2_gradient(:,2),[],'kernel');
  154. h1(1).FaceAlpha = 0.2;h2(1).FaceAlpha = 0.2;h1(2).Color = [.2 .2 .2];h2(2).Color = [.2 .2 .2];
  155. figure;h1=histfit(group1_gradient(:,3),[],'kernel');hold on; h2=histfit(group2_gradient(:,3),[],'kernel');
  156. h1(1).FaceAlpha = 0.2;h2(1).FaceAlpha = 0.2;h1(2).Color = [.2 .2 .2];h2(2).Color = [.2 .2 .2];
  157. %% range and std
  158. emb_range = zeros(n_sub,3);%emb_range
  159. for i = 1:3
  160. for j = 1:n_sub
  161. emb_range(j,i) = max(aligned_gradient_all(:,i,j)) - min(aligned_gradient_all(:,i,j));
  162. end
  163. end
  164. save([group_dir,'/emb_range.mat'],'emb_range');
  165. % calculate variation
  166. emb_std = zeros(n_sub,3);%emb_std
  167. for i = 1:3
  168. for j = 1:n_sub
  169. emb_std(j,i) = std(aligned_gradient_all(:,i,j));
  170. end
  171. end
  172. save([group_dir,'/emb_std.mat'],'emb_std');

Untitled.m, no license · at the source

Overview

Authors: Shuting Bu1, Huize Pang1, Xiaolu Li1, Yu Liu1, Mengwan Zhao1, Juzhou Wang1, Lina Huang1, Qin Niu1, Le Liang1, Hongmei Yu2, Guoguang Fan1
  1. Department of Radiology, The First Hospital of China Medical University, Shenyang, China
  2. Department of Neurology, The First Hospital of China Medical University, Shenyang, China
Journal: NPJ Parkinson's disease, volume 12, issue 1, article 210
Dates: received 18 June 2025; accepted 21 May 2026; published online 3 June 2026
Type: Research article · Language: English
License: CC BY-NC-ND
Identifiers: DOI 10.1038/s41531-026-01417-5 · PMID 42230632 · PMCID PMC13534686 · OpenAlex W7163265416
Open access: gold, a free copy (OpenAlex)
Status: code verified (how the code is found and verified)
Categories: genetics / omics (modality), human (organism), Parkinson's (population), systems (subfield)
Methods: Spectral & time-frequency, Connectivity, Statistics, Preprocessing, fMRI & imaging, Smoothing, state filtering, decompositions
Keywords: Parkinson's disease, Neural decoding, Motor control
Topic: Deep Brain Stimulation and Movement Disorders (Clinical Neurology, Medicine), according to OpenAlex
Funding: Liaoning Revitalization Talents Program (XLYC2412010); National Natural Science Foundation of China (no. 82071909)
Citations: cited by 1 paper (Europe PMC); 87 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.

OSF gwzhe

License: none: the authors keep all their rights
State: the link answers, verified on 27 September 2026
Evidence: files inventoried
Languages: MATLAB (1)
Size: 1 file, 1 script
Software Heritage: not checked
Found in: “Data availability”
Not found: README, license file, CITATION.cff, environment file, tests, continuous integration, documentation
Tools: BrainSpace (1 file), Statistics and Machine Learning Toolbox (1 file), SPM (1 file)
Availability: 1 check, the latest on 27 September 2026: the link answers (HTTP 200)
  • 27 September 2026: the link answers (HTTP 200)
1 file
At the source:

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://doi.org/10.1038/s41531-026-01417-5

BibTeX

@article{bu2026correlation,
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/s41531-026-01417-5},
url = {https://doi.org/10.1038/s41531-026-01417-5},
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/06/03
VL - 12
IS - 1
SP - 210
SN - 2373-8057
PB - Nature Publishing Group
DO - 10.1038/s41531-026-01417-5
UR - https://doi.org/10.1038/s41531-026-01417-5
LA - en
ER -

CSL-JSON

{
"id": "10.1038/s41531-026-01417-5",
"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": "NPJ Parkinsons Dis",
"volume": "12",
"issue": "1",
"page": "210",
"DOI": "10.1038/s41531-026-01417-5",
"PMID": "42230632",
"PMCID": "PMC13534686",
"ISSN": "2373-8057",
"publisher": "Nature Publishing Group",
"URL": "https://doi.org/10.1038/s41531-026-01417-5",
"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 medicine
In 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 biology
In 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 disease
In 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 medicine
In 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 mapping
In 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 psychiatry
In 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 mapping
In 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: NeuroImage
In 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 biology
In 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.

Add the badge to the code's README

OSCR: the badge of this paper

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 -->
[![OSCR](https://openscicode.org/badge/doi/10.1038/s41531-026-01417-5.svg)](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:end
HTML
<!-- 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.