Functional connectivity predictors and mechanisms of symptom change in functional neurological disorder.
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 · 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.1093/braincomms/fcaf195 [code]
- Delineating network integration and segregation in the pathophysiology of functional neurological disorder.Journal: Brain communicationsIn common: Tools for NIfTI and ANALYZE image (MATLAB), fMRI, 23 references, 3 authors
- [2] 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
- [3] doi:10.1016/j.nicl.2025.103936
- Structural brain alterations and predictors of clinical improvement in functional cognitive disorder after concussion.Journal: NeuroImage. ClinicalIn common: clinical / translational, 7 references, 2 authors
- [4] doi:10.1016/j.nicl.2024.103583 [code]
- Transient resting-state salience-limbic co-activation patterns in functional neurological disorders.Journal: NeuroImage. ClinicalIn common: fMRI, clinical / translational, 11 references
- [5] doi:10.1016/j.nicl.2022.102981
- Symptom-severity-related
brain connectivity alterations in functional movement disorders. Journal: NeuroImage. ClinicalIn common: fMRI, clinical / translational, 9 references - [6] doi:10.1038/s41398-025-03385-5 [code]
- Altered brain network dynamics in motor functional neurological disorders: the role of the right temporo-parietal junction.Journal: Translational psychiatryIn common: Tools for NIfTI and ANALYZE image (MATLAB), 8 references
- [7] doi:10.1016/j.nicl.2025.103791 [code]
- Reduced microstructural white matter integrity is associated with the severity of physical symptoms in functional neurological disorder.Journal: NeuroImage. ClinicalIn common: Tools for NIfTI and ANALYZE image (MATLAB), epilepsy, clinical / translational, 7 references
- [8] doi:10.1002/brb3.2576
- Bridging structural and functional biomarkers in functional movement disorder using network mapping.Journal: Brain and behaviorIn common: clinical / translational, 4 references, author David L Perez
- [9] doi:10.1002/epi4.13050 [code]
- Locus coeruleus co-activation patterns at rest show higher state persistence in patients with dissociative seizures: A Pilot Study.Journal: Epilepsia openIn common: Tools for NIfTI and ANALYZE image (MATLAB), epilepsy, fMRI, clinical / translational, 5 references
- [10] doi:10.1093/braincomms/fcae455 [code]
- Salivary oxytocin and amygdalar alterations in functional neurological disorders.Journal: Brain communicationsIn common: 5 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, 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:9838b40b288e4a64…
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.1093/braincomms/fcag290)
<!-- oscr-badge:end -->reStructuredText
.. oscr-badge:start
.. image:: https://openscicode.org/badge/doi/10.1093/braincomms/fcag290.svg
:target: https://openscicode.org/badge/doi/10.1093/braincomms/fcag290
:alt: OSCR
.. oscr-badge:endHTML
<!-- oscr-badge:start -->
<a href="https://openscicode.org/badge/doi/10.1093/braincomms/fcag290"><img src="https://openscicode.org/badge/doi/10.1093/braincomms/fcag290.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.
