Functional connectivity predictors and mechanisms of symptom change in functional neurological disorder.
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
MATLAB · 103 lines · 2.8 KB · no license
- clear;clc;
- addpath( 'scripts_matlab');
- subjects_file_list='subjects.txt'; %txt file with subject IDs (1 per line)
- mask_file='GM_mask_3mm.nii.gz'; %grey matter mask in the resolution of your data
- atlas_file='Yeo7_3mm.nii.gz'; %network parcellation map
- data_path='data3mm'; % a folder with processed fmri files (one per individual)
- out_path='results/intgr_segr_3mm/'; %output folder
- apply_fisher=0;
- block_sz=10000;
- %%%%%%%%%%%%%%% Code starts here %%%%%%%%%%%%%%%%%%
- %Read subjects filenames from txt file
- fid = fopen(subjects_file_list);
- tline = fgetl(fid);
- subjects={}; num_subjects=0;
- while ischar(tline)
- num_subjects=num_subjects+1;
- subjects{num_subjects}=tline;
- tline = fgetl(fid);
- end
- fclose(fid);
- %Read mask
- [hdr mask]=read_nii(mask_file);
- %Read atlas
- [hdra atlas]=read_nii(atlas_file);
- atlas=atlas.*(mask>0); %apply mask to atlas
- atlas=reshape(atlas,[],1); %reshape to 1d
- indx_mask=find(atlas>0); %find gm voxels
- num_voxels=length(indx_mask);
- atlas=atlas(indx_mask);
- num_rois_atlas=max(atlas(:));
- %Create output directories
- if exist([out_path '/segregation'])==0
- mkdir([out_path '/segregation']);
- end
- if exist([out_path '/integration'])==0
- mkdir([out_path '/integration']);
- end
- %For each file
- files=strsplit(ls([data_path '/*.nii.gz'])); files(end)=[];
- seg_all = zeros(1,num_voxels,num_subjects);
- int_all = zeros(1,num_voxels,num_subjects);
- for i=1:num_subjects %length(files)
- %read fmri
- fprintf('[%.3d/%.3d] %s\n',i,num_subjects,subjects{i});
- [hdri fmri]=read_nii([ data_path '/' subjects{i} '.nii.gz']);
- fmri=reshape(fmri,[],size(fmri,4)); % convert fmri to 2d matrix
- fmri=fmri(indx_mask,:); %apply mask
- %Comptue integration, segregation
- segregation=zeros(1,num_voxels);
- integration=zeros(1,num_voxels);
- %for each roi
- for a=1:num_rois_atlas
- fprintf(' Network %d\n',a);
- sgr=find(atlas==a);
- intr=setdiff(1:num_voxels,sgr);
- num_blocks=ceil(length(sgr)./block_sz);
- for b=1:num_blocks
- sv=((b-1)*block_sz)+1;
- ev=sv+block_sz-1;
- if ev>length(sgr)
- ev=length(sgr);
- end
- fc=corr(fmri(sgr(sv:ev),:)',fmri');
- fc(find(fc<0))=0;
- if (apply_fisher==1)
- fc= 0.5 * log( ( 1 + fc)./( 1 - fc) ); %fisher
- end
- segregation(sgr(sv:ev))=nansum(fc(:,sgr)')-1;
- integration(sgr(sv:ev))=nansum(fc(:,intr)');
- clear fc;
- end
- clear sgr intr;
- end
- int_all(:,:,i) = integration;
- seg_all(:,:,i) = segregation;
- img=zeros(size(mask));
- img(indx_mask)=segregation;
- save_nii(hdr,img,[out_path '/segregation/' subjects{i} '.nii.gz']);
- img=zeros(size(mask));
- img(indx_mask)=integration;
- save_nii(hdr,img,[out_path '/integration/' subjects{i} '.nii.gz']);
- end
- save([out_path '/integration_voxelLevel.mat'],'int_all');
- save([out_path '/segregation_voxelLevel.mat'],'seg_all');
IntegrationSegregation.m at commit e78dbd4, no license · at the source
Overview
- Mass General Brigham Department of Neurology, Massachusetts General Hospital, Harvard Medical School, Boston, MA 02114, USA
- Mass General Brigham Department of Psychiatry, Massachusetts General Hospital, Harvard Medical School, Boston, MA 02114, USA
- Athinoula A. Martinos Center for Biomedical Imaging, Massachusetts General Hospital, Harvard Medical School, Boston, MA 02129, USA
- Department of Physical Therapy, Massachusetts General Hospital, Boston, MA 02114, USA
- Department of Occupational Therapy, Massachusetts General Hospital, Boston, MA 02114, USA
- Department of Speech, Language, and Swallowing Disorders, Massachusetts General Hospital, Harvard Medical School, Boston, MA 02114, USA
- Computational Neuroimaging Lab, Biobizkaia Health Research Institute, Barakaldo 48903, Spain
- Ikerbasque Basque Foundation for Science, Bilbao 48903, Spain
- Center for Inflammation Imaging, Department of Radiology, Massachusetts General Hospital, Harvard Medical School, Boston, MA 20114, USA
- Mass General Brigham Departments of Neurology and Psychiatry, Brigham and Women’s Hospital, Harvard Medical School, Boston, MA 20115, USA
Abstract
Clinical trajectories in patients with functional neurological disorder (FND) are variable, and the neural mechanisms underlying this heterogeneity remain poorly understood. This longitudinal brain imaging study examined resting-state functional connectivity predictors and mechanisms of symptom change in FND. Thirty-two adults with FND (motor and/
Reproduced under the paper's license (CC BY), from the paper cited above.
Repository
Its files are read in the Code ↔ Paper reader above.
FND-RG-Lab/NetworkIntegrationSegregation
e78dbd4edb187de5f1cb5493f437c51846049c46, 28 March 2025Availability: 1 check, the latest on 27 September 2026: the link answers
- 27 September 2026: the link answers
5 files
- IntegrationSegregation.m
, MATLAB, 103 lines - WeightedDegree.m, MATLAB, 63 lines
- scripts_matlab/
read_hdr.m , MATLAB, 136 lines - scripts_matlab/
read_nii.m , MATLAB, 561 lines - scripts_matlab/
save_nii.m , MATLAB, 255 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;
- 5 scripts, 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.
Data availability
For qualified researchers, de-identified data pertaining only to study results can be made available following local IRB approval upon reasonable request. Analysis code can be found in the following GitHub repository: 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, 27 September 2026: the first record
Recorded: type, language, journal, volume, issue, pages, dates, 14 authors, 5 keywords, 1 funder, 65 references.
Cite
This paper
Westlin, C., Bleier, C., Guthrie, A. J., Finkelstein, S. A., Maggio, J., Ranford, J., MacLean, J., Godena, E., Millstein, D., Freeburn, J., Adams, C., Stephen, C. D., Diez, I., & Perez, D. L. (2026). Functional connectivity predictors and mechanisms of symptom change in functional neurological disorder. Brain communications, 8(4), fcag290. https://
BibTeX
@article{westlin2026func
author = {Westlin, Christiana and Bleier, Cristina and Guthrie, Andrew J and Finkelstein, Sara A and Maggio, Julie and Ranford, Jessica and MacLean, Julie and Godena, Ellen and Millstein, Daniel and Freeburn, Jennifer and Adams, Caitlin and Stephen, Christopher D and Diez, Ibai and Perez, David L},
title = {{Functional connectivity predictors and mechanisms of symptom change in functional neurological disorder}},
journal = {Brain communications},
year = {2026},
month = jul,
volume = {8},
number = {4},
pages = {fcag290},
publisher = {Oxford University Press},
issn = {2632-1297},
doi = {10.1093/
url = {https://
pmid = {42553752},
pmcid = {PMC13435623}
}
RIS
TY - JOUR
AU - Westlin, Christiana
AU - Bleier, Cristina
AU - Guthrie, Andrew J
AU - Finkelstein, Sara A
AU - Maggio, Julie
AU - Ranford, Jessica
AU - MacLean, Julie
AU - Godena, Ellen
AU - Millstein, Daniel
AU - Freeburn, Jennifer
AU - Adams, Caitlin
AU - Stephen, Christopher D
AU - Diez, Ibai
AU - Perez, David L
TI - Functional connectivity predictors and mechanisms of symptom change in functional neurological disorder
T2 - Brain communications
J2 - Brain Commun
PY - 2026
DA - 2026/
VL - 8
IS - 4
SP - fcag290
SN - 2632-1297
PB - Oxford University Press
DO - 10.1093/
UR - https://
LA - en
ER -
CSL-JSON
{
"id": "10.1093/
"type": "article-journal",
"title": "Functional connectivity predictors and mechanisms of symptom change in functional neurological disorder",
"container-title": "Brain communications",
"author": [
{
"family": "Westlin",
"given": "Christiana"
},
{
"family": "Bleier",
"given": "Cristina"
},
{
"family": "Guthrie",
"given": "Andrew J"
},
{
"family": "Finkelstein",
"given": "Sara A"
},
{
"family": "Maggio",
"given": "Julie"
},
{
"family": "Ranford",
"given": "Jessica"
},
{
"family": "MacLean",
"given": "Julie"
},
{
"family": "Godena",
"given": "Ellen"
},
{
"family": "Millstein",
"given": "Daniel"
},
{
"family": "Freeburn",
"given": "Jennifer"
},
{
"family": "Adams",
"given": "Caitlin"
},
{
"family": "Stephen",
"given": "Christopher D"
},
{
"family": "Diez",
"given": "Ibai"
},
{
"family": "Perez",
"given": "David L"
}
],
"container-title-short":
"volume": "8",
"issue": "4",
"page": "fcag290",
"DOI": "10.1093/
"PMID": "42553752",
"PMCID": "PMC13435623",
"ISSN": "2632-1297",
"publisher": "Oxford University Press",
"URL": "https://
"language": "en",
"issued": {
"date-parts": [
[
2026,
7,
22
]
]
}
}
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.1016/j.nicl.2026.103996
- Relationships between brain functional connectivity and resting cardiac autonomic profiles in functional neurological disorder: A pilot study.Journal: NeuroImage. ClinicalIn common: fMRI, 21 references, author David L Perez
- [2] doi:10.1002/hbm.70483 [code]
- Untamed: Unconstrained Tensor Decomposition and Graph Node Embedding for Cortical Parcellation.Journal: Human brain mappingIn common: Tools for NIfTI and ANALYZE image (MATLAB), fMRI, 2 references
- [3] doi:10.7554/elife.106070 [code]
- Dynamic fMRI networks of human emotion.Journal: eLifeIn common: fMRI, 3 references
- [4] doi:10.1038/s41467-026-72605-3 [code]
- Resolving mesoscale brainstem-prefrontal-str
iatal pathways underlying decisions upon salient events using submillimeter-resolution fMRI. Journal: Nature communicationsIn common: fMRI, 3 references - [5] doi:10.1371/journal.pbio.3003684 [code]
- The retrieval of previously learned motor memories is facilitated by the reinstatement of default mode network manifold structures.Journal: PLoS biologyIn common: fMRI, 3 references
- [6] doi:10.1002/epi.70323 [code]
- Individual-specific resting-state networks predict language dominance in drug-resistant epilepsy.Journal: EpilepsiaIn common: Tools for NIfTI and ANALYZE image (MATLAB), epilepsy, fMRI, 1 reference
- [7] doi:10.1016/j.celrep.2026.117404 [code]
- Action and rest tremor map to distinct networks within the primary motor cortex.Journal: Cell reportsIn common: Tools for NIfTI and ANALYZE image (MATLAB), 2 references
- [8] doi:10.1038/s41398-026-04025-2 [code]
- Brain energetic landscapes shape state dysregulation in major depressive disorder: a morphological network controllability perspective.Journal: Translational psychiatryIn common: Tools for NIfTI and ANALYZE image (MATLAB), 2 references
- [9] doi:10.7554/elife.104684 [code]
- Regime shift detection and neurocomputational substrates for under and overreactions to change.Journal: eLifeIn common: fMRI, 3 references
- [10] doi:10.1016/j.bbih.2026.101299 [code]
- Multimodal approach to identify neuropsychophysiological
subgroups in myalgic encephalomyelitis/ chronic fatigue syndrome and their relevance for rehabilitation: protocol for a mechanistic cross-sectional and longitudinal study. Journal: Brain, behavior, & immunity - healthIn common: Tools for NIfTI and ANALYZE image (MATLAB), clinical / translational, 1 reference
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, 5 scripts, 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:f5b842d61a57c66b…
Add the badge to its README
The badge links the code to this page. Copy one of these into the README of the paper's code: only you decide where it goes, and nothing is changed for you.
Markdown
[, paste the snippet at the top, then “Commit changes…” and, to review it first, “Create a new branch and start a pull request”. You open the pull request; OSCR asks for no permission.
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.
