OSCR

Declined connectivity of thalamus and dorsomedial prefrontal cortex in post-stroke cognitive impairment delineated by lesion network mapping.

Code ↔ Paper

2 matches between paragraphs of the paper and lines of its authors' code, computed by the harvester (lexical-v1). Click a colored paragraph or line to see its counterpart.

The 2 matches
  1. [1] § Materials and methods › MRI acquisition ↔ code/peripheralFunctions/freesurfer/load_dicom_fl.m, lines 118 to 184 · score 0.58 · flip angle, echo, repetition, GE, Medical, position · Report a mismatch
  2. [2] § Materials and methods › MRI acquisition ↔ code/peripheralFunctions/freesurfer/MRIwrite.m, lines 29 to 115 · score 0.55 · flip angle, TE, eyes, TR, MRI, Hospital · 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

MATLAB · 197 lines · 5.4 KB · no license · 1 match

  1. function [vol, M, dcminfo, mr_parms] = load_dicom_fl(flist)
  2. % [vol, M, dcminfo, mr_parms] = load_dicom_fl(flist)
  3. %
  4. % Loads a volume from the dicom files in flist.
  5. %
  6. % The volume dimensions are arranged such that the
  7. % readout dimension is first, followed by the phase-encode,
  8. % followed by the slices (this is not implemented yet)
  9. %
  10. % M is the 4x4 vox2ras transform such that
  11. % vol(i1,i2,i3), xyz1 = M*[i1 i2 i3 1] where the
  12. % indicies are 0-based.
  13. %
  14. % mr_parms = [tr flipangle te ti]
  15. %
  16. % Does not handle multiple frames correctly yet.
  17. %
  18. %
  19. % load_dicom_fl.m
  20. %
  21. % Original Author: Doug Greve
  22. % CVS Revision Info:
  23. % $Author: nicks $
  24. % $Date: 2011/03/02 00:04:12 $
  25. % $Revision$
  26. %
  27. % Copyright ?? 2011 The General Hospital Corporation (Boston, MA) "MGH"
  28. %
  29. % Terms and conditions for use, reproduction, distribution and contribution
  30. % are found in the 'FreeSurfer Software License Agreement' contained
  31. % in the file 'LICENSE' found in the FreeSurfer distribution, and here:
  32. %
  33. % https://surfer.nmr.mgh.harvard.edu/fswiki/FreeSurferSoftwareLicense
  34. %
  35. % Reporting: [email hidden]
  36. %
  37. vol=[];
  38. M=[];
  39. if(nargin ~= 1)
  40. fprintf('[vol, M] = load_dicom_fl(flist)\n');
  41. return;
  42. end
  43. nfiles = size(flist,1);
  44. tic
  45. fprintf('Loading dicom info foreach file \n');
  46. for n = 1:nfiles
  47. fname = deblank(flist(n,:));
  48. % fprintf('n = %d/%d, %s %g\n',n,nfiles,fname,toc);
  49. tmpinfo = dicominfo(fname);
  50. if(isempty(tmpinfo))
  51. fprintf('ERROR: reading %s\n',fname);
  52. return;
  53. end
  54. if(n > 1)
  55. % Check that the nth series number agrees with the first
  56. if(tmpinfo.SeriesNumber ~= dcminfo0(1).SeriesNumber)
  57. fprintf('ERROR: series number inconsistency (%s)\n',fname);
  58. return;
  59. end
  60. end
  61. tmpinfo.fname = fname;
  62. dcminfo0(n) = tmpinfo;
  63. end
  64. % Sort by slice location %
  65. dcminfo = sort_by_sliceloc(dcminfo0);
  66. % Slice direction cosine %
  67. sdc = dcminfo(nfiles).ImagePositionPatient-dcminfo(1).ImagePositionPatient;
  68. sdc = sdc /sqrt(sum(sdc.^2));
  69. % Distance between slices %
  70. dslice = sqrt(sum((dcminfo(2).ImagePositionPatient-dcminfo(1).ImagePositionPatient).^2));
  71. % Matrix of direction cosines %
  72. Mdc = zeros(3,3);
  73. Mdc(:,1) = dcminfo(1).ImageOrientationPatient(1:3);
  74. Mdc(:,2) = dcminfo(1).ImageOrientationPatient(4:6);
  75. Mdc(:,3) = sdc;
  76. % Voxel resolution %
  77. delta = [dcminfo(1).PixelSpacing; dslice];
  78. D = diag(delta);
  79. % XYZ of first voxel in first slice %
  80. P0 = dcminfo(1).ImagePositionPatient;
  81. % Change Siemens to be RAS %
  82. % GE is also LPS - change it to be RAS, too - ebeth %
  83. try
  84. Manufacturer = dcminfo(1).Manufacturer;
  85. catch
  86. Manufacturer = 'unknown';
  87. end
  88. if(strcmpi(Manufacturer,'Siemens') | strcmpi(Manufacturer,'ge medical systems'))
  89. % Change to RAS
  90. Mdc(1,:) = -Mdc(1,:);
  91. Mdc(2,:) = -Mdc(2,:);
  92. P0(1) = -P0(1);
  93. P0(2) = -P0(2);
  94. end
  95. % Compute vox2ras transform %
  96. M = [Mdc*D P0; 0 0 0 1];
  97. if (0&strcmpi(Manufacturer,'Siemens'))
  98. % Correcting for P0 being at corner of
  99. % the first voxel instead of at the center
  100. M = M*[[eye(3) [0.5 0.5 0]']; 0 0 0 1]; %'
  101. end
  102. % Pre-allocate vol. Note: column and row designations do
  103. % not really mean anything. The "column" is the fastest
  104. % dimension. The "row" is the next fastest, etc.
  105. ndim1 = dcminfo(1).Columns;
  106. ndim2 = dcminfo(1).Rows;
  107. ndim3 = nfiles;
  108. vol = zeros(ndim1,ndim2,ndim3);
  109. fprintf('Loading data from each file.\n');
  110. for n = 1:nfiles
  111. %fprintf('n = %d, %g\n',n,toc);
  112. fname = dcminfo(n).fname;
  113. x = dicomread(fname);
  114. if(isempty(x))
  115. fprintf('ERROR: could not load pixel data from %s\n',fname);
  116. return;
  117. end
  118. % Note: dicomread will transposed the image. This is supposed
  119. % to help. Anyway, to make the vox2ras transform agree with
  120. % the volume, the image is transposed back.
  121. vol(:,:,n) = x'; %'
  122. end
  123. % Reorder dimensions so that ReadOut dim is first %
  124. if(0 & ~strcmpi(dcminfo(1).PhaseEncodingDirection,'ROW'))
  125. % This does not work
  126. fprintf('INFO: permuting vol so that ReadOut is first dim\n');
  127. vol = permute(vol,[2 1 3]);
  128. Mtmp = M;
  129. M(:,1) = Mtmp(:,2);
  130. M(:,2) = Mtmp(:,1);
  131. end
  132. % Lines below correct for the Z-offset in GE machines - ebeth %
  133. % We're told ge machines recenter along superior/inferior axis but
  134. % don't update c_ras - but now c_s should be zero.
  135. if(strcmpi(Manufacturer,'ge medical systems'))
  136. % Lines below correct for the Z-offset in GE machines
  137. firstZ = dcminfo(1).ImagePositionPatient(3);
  138. lastXYZ = M*[size(vol)';1]; %'
  139. % size(imvol) = number of slices in all 3 dirs
  140. lastZ = lastXYZ(3);
  141. offsetZ = (lastZ + firstZ)/2.0;
  142. % Z0 = Z + offsetZ; [XYZ1]' = M*[CRS1]', need to add to M(3,4)(?)
  143. M(3,4) = M(3,4) - offsetZ;
  144. end
  145. % if(strcmpi(Manufacturer,'ge medical systems'))
  146. % M(3,4) = 0; % Wow - that was actually completely wrong!
  147. % end
  148. % Pull out some info from the header %
  149. if(isfield(dcminfo(1),'FlipAngle')) FlipAngle = pi*dcminfo(1).FlipAngle/180;
  150. else FlipAngle = 0;
  151. end
  152. if(isfield(dcminfo(1),'EchoTime')) EchoTime = dcminfo(1).EchoTime;
  153. else EchoTime = 0;
  154. end
  155. if(isfield(dcminfo(1),'RepetitionTime')) RepetitionTime = dcminfo(1).RepetitionTime;
  156. else RepetitionTime = 0;
  157. end
  158. InversionTime = 0;
  159. mr_parms = [RepetitionTime FlipAngle EchoTime InversionTime];
  160. return;
  161. %----------------------------------------------------------%
  162. function dcminfo2 = sort_by_sliceloc(dcminfo)
  163. nslices = length(dcminfo);
  164. sliceloc = zeros(nslices,1);
  165. for n = 1:nslices
  166. sliceloc(n) = dcminfo(n).SliceLocation;
  167. end
  168. [tmp ind] = sort(sliceloc);
  169. dcminfo2 = dcminfo(ind);
  170. return;
  171. %----------------------------------------------------------%

load_dicom_fl.m at commit 464553a, no license · at the source

Overview

Authors: Ting Liu1,2, Yingjie Tang3, Yu Wang3, Sisi Jiang3, Junxia Chen3, Lin Ma1,2, Lijuan Li1,2, Cheng Luo1,3,4, Qifu Li1,2
ORCID iDs: Cheng Luo, Qifu Li
  1. Department of Neurology, The First Affiliated Hospital of Hainan Medical University, Haikou 570100, Hainan Province, China
  2. Key Laboratory of Brain Science Research & Transformation in Tropical Environment of Hainan Province, Hainan Medical University, Haikou 570100, China
  3. The Clinical Hospital of Chengdu Brain Science Institute, MOE Key Lab for Neuroinformation, Center for Information in Medicine, School of Life Science and Technology, University of Electronic Science and Technology of China, Chengdu 610054, China
  4. Research Unit of NeuroInformation, Chinese Academy of Medical Sciences, Chengdu 2019RU035, P. R. China
Journal: Brain communications, volume 8, issue 2, article fcag112
Dates: received 20 April 2025; accepted 26 March 2025; published online 28 March 2026
Type: Research article · Language: English
License: CC BY
Identifiers: DOI 10.1093/braincomms/fcag112 · PMID 41971052 · PMCID PMC13062370 · OpenAlex W7141877059
Open access: gold, a free copy (OpenAlex)
Status: code verified (how the code is found and verified)
Categories: Alzheimer's / dementia (population), stroke (population), systems (subfield)
Methods: Connectivity, Statistics, Preprocessing, fMRI & imaging, Machine learning, Smoothing, state filtering, decompositions
Keywords: post-stroke cognitive impairment, lesion network mapping, thalamus, memory, dorsomedial prefrontal cortex
Topic: Functional Brain Connectivity Studies (Cognitive Neuroscience, Neuroscience), according to OpenAlex
Citations: not cited yet (Europe PMC); 57 references in the paper

Abstract

Post-stroke cognitive impairment (PSCI) is a common complication of stroke. Stroke events can often cause functional changes in distant brain regions beyond the lesion, which may be the underlying cause of PSCI. However, there are still no consistent imaging features with specificity for PSCI. In the present study, we utilized lesion network mapping analysis to address this question. The left thalamus was the only lesion of interest that we converged on, and it mapped the cognitive impairment circuit of PSCI. Patients with severe cognitive impairment had a higher proportion of lesions falling into the cognitive impairment circuit than those with mild cognitive impairment. From the perspectives of brain function, neurotransmitters and molecular genetics, we found that spatial regions of the circuit are strongly associated with memory-related functions. Interestingly, the cognitive impairment circuit from PSCI does share high spatial similarity with the published memory circuit. Besides, reduced functional connectivity in the left thalamus and left dorsomedial prefrontal cortex may be a crucial reason for cognitive decline in PSCI. Overall, our study identifies a cognitive impairment circuit in PSCI, which impairment may be an important mechanism for memory disorders in PSCI. Connectivity of the left thalamus and dorsomedial prefrontal cortex is expected to serve as a biomarker and new target of neuromodulation therapy.

Reproduced under the paper's license (CC BY), from the paper cited above.

Repository

Its files are read in the Code ↔ Paper reader above, with 2 matches between paragraphs and lines of code.

BMHLab/AHBAprocessing

License: none: the authors keep all their rights
State: the link answers, verified on 27 October 2026
Evidence: files inventoried
Commit: 464553aa7882a260547f14d26e869ff314c7dfa5, 23 November 2021
Languages: MATLAB (238), C/C++ (89), C++ (50), C (7), Shell (1)
Size: 450 files, 385 scripts
Software Heritage: not archived
Found in: the text, “Gene expression data processing”
Holds: README, tests
Not found: license file, CITATION.cff, environment file, continuous integration, documentation
Availability: 2 checks, the latest on 27 October 2026: the link answers
  • 27 October 2026: the link answers
  • 26 September 2026: the link answers
386 files

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;
  • 385 scripts, each with its path and the digest of its content;
  • 2 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

No dataset and no data link were found in the paper.

Data availability

Due to privacy and ethical constraints, they are not available to the public. The data for this study are available from the corresponding authors upon reasonable request. The codes for Lesion Network Mapping and Dominance Analysis in this manuscript can be found in the Supplementary methods 3–4. The codes for other methods are clearly stated in the methods section of the manuscript.

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, 30 September 2026: the first record

Recorded: type, language, journal, volume, issue, pages, dates, 9 authors, 5 keywords, 4 funders, 56 references.

Cite

This paper

Liu, T., Tang, Y., Wang, Y., Jiang, S., Chen, J., Ma, L., Li, L., Luo, C., & Li, Q. (2026). Declined connectivity of thalamus and dorsomedial prefrontal cortex in post-stroke cognitive impairment delineated by lesion network mapping. Brain communications, 8(2), fcag112. https://doi.org/10.1093/braincomms/fcag112

BibTeX

@article{liu2026declined,
author = {Liu, Ting and Tang, Yingjie and Wang, Yu and Jiang, Sisi and Chen, Junxia and Ma, Lin and Li, Lijuan and Luo, Cheng and Li, Qifu},
title = {{Declined connectivity of thalamus and dorsomedial prefrontal cortex in post-stroke cognitive impairment delineated by lesion network mapping}},
journal = {Brain communications},
year = {2026},
month = mar,
volume = {8},
number = {2},
pages = {fcag112},
publisher = {Oxford University Press},
issn = {2632-1297},
doi = {10.1093/braincomms/fcag112},
url = {https://doi.org/10.1093/braincomms/fcag112},
pmid = {41971052},
pmcid = {PMC13062370}
}

RIS

TY - JOUR
AU - Liu, Ting
AU - Tang, Yingjie
AU - Wang, Yu
AU - Jiang, Sisi
AU - Chen, Junxia
AU - Ma, Lin
AU - Li, Lijuan
AU - Luo, Cheng
AU - Li, Qifu
TI - Declined connectivity of thalamus and dorsomedial prefrontal cortex in post-stroke cognitive impairment delineated by lesion network mapping
T2 - Brain communications
J2 - Brain Commun
PY - 2026
DA - 2026/03/28
VL - 8
IS - 2
SP - fcag112
SN - 2632-1297
PB - Oxford University Press
DO - 10.1093/braincomms/fcag112
UR - https://doi.org/10.1093/braincomms/fcag112
LA - en
ER -

CSL-JSON

{
"id": "10.1093/braincomms/fcag112",
"type": "article-journal",
"title": "Declined connectivity of thalamus and dorsomedial prefrontal cortex in post-stroke cognitive impairment delineated by lesion network mapping",
"container-title": "Brain communications",
"author": [
{
"family": "Liu",
"given": "Ting"
},
{
"family": "Tang",
"given": "Yingjie"
},
{
"family": "Wang",
"given": "Yu"
},
{
"family": "Jiang",
"given": "Sisi"
},
{
"family": "Chen",
"given": "Junxia"
},
{
"family": "Ma",
"given": "Lin"
},
{
"family": "Li",
"given": "Lijuan"
},
{
"family": "Luo",
"given": "Cheng"
},
{
"family": "Li",
"given": "Qifu"
}
],
"container-title-short": "Brain Commun",
"volume": "8",
"issue": "2",
"page": "fcag112",
"DOI": "10.1093/braincomms/fcag112",
"PMID": "41971052",
"PMCID": "PMC13062370",
"ISSN": "2632-1297",
"publisher": "Oxford University Press",
"URL": "https://doi.org/10.1093/braincomms/fcag112",
"language": "en",
"issued": {
"date-parts": [
[
2026,
3,
28
]
]
}
}

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/s41593-025-02196-7 [code]
Investigating the methodological foundation of lesion network mapping.
Journal: Nature neuroscience
In common: FreeSurfer, Image Processing Toolbox, Statistics and Machine Learning Toolbox, systems, 6 references
[2] doi:10.1186/s12916-023-02935-2 [code]
Progressive trajectories of schizophrenia across symptoms, genes, and the brain.
Journal: BMC medicine
In common: Curve Fitting Toolbox, FreeSurfer, Image Processing Toolbox, 1 other tool, 2 references, author Cheng Luo
[3] doi:10.1038/s41586-026-10631-3 [code]
A prognostic human brain network for diffuse midline glioma.
Journal: Nature
In common: Curve Fitting Toolbox, FreeSurfer, Image Processing Toolbox, 1 other tool, 5 references
[4] doi:10.1002/hbm.70183 [code]
Cerebral Blood Flow Changes and Their Spatial Correlations With GABAa and Dopamine-D1 Receptor Explaining Individual Differences in Chronic Insomnia and the Therapeutic Effects of Acupuncture.
Journal: Human brain mapping
In common: FreeSurfer, Image Processing Toolbox, Statistics and Machine Learning Toolbox, stroke, 4 references
[5] doi:10.1038/s42003-025-08053-4 [code]
Fronto-occipital dyscommunication associates with brain hierarchy in schizophrenia.
Journal: Communications biology
In common: Image Processing Toolbox, Statistics and Machine Learning Toolbox, 2 references, author Cheng Luo
[6] doi:10.1038/s41467-025-63000-5 [code]
Gene transcription, neurotransmitter, and neurocognition signatures of brain structural-functional coupling variability.
Journal: Nature communications
In common: Curve Fitting Toolbox, FreeSurfer, Image Processing Toolbox, 1 other tool, 3 references
[7] doi:10.1017/s0033291725101992 [code]
Network localization of genetic risk for schizophrenia and bipolar disorder.
Journal: Psychological medicine
In common: Image Processing Toolbox, Statistics and Machine Learning Toolbox, 5 references
[8] doi:10.1093/brain/awae315 [code]
Enhancing cognitive performance prediction by white matter hyperintensity connectivity assessment.
Journal: Brain : a journal of neurology
In common: FreeSurfer, Image Processing Toolbox, Statistics and Machine Learning Toolbox, stroke, Alzheimer's / dementia, 3 references
[9] doi:10.1126/sciadv.adk6063 [code]
Neuroimaging epicenters as potential sites of onset of the neuroanatomical pathology in schizophrenia.
Journal: Science advances
In common: FreeSurfer, 2 references, author Cheng Luo
[10] doi:10.1093/nsr/nwag076 [code]
Lifespan development of EEG alpha and aperiodic component sources is shaped by the connectome and axonal delays.
Journal: National science review
In common: FreeSurfer, Image Processing Toolbox, Statistics and Machine Learning Toolbox, author Cheng Luo

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.1093/braincomms/fcag112.svg)](https://openscicode.org/badge/doi/10.1093/braincomms/fcag112)
<!-- oscr-badge:end -->
reStructuredText
.. oscr-badge:start

.. image:: https://openscicode.org/badge/doi/10.1093/braincomms/fcag112.svg
   :target: https://openscicode.org/badge/doi/10.1093/braincomms/fcag112
   :alt: OSCR

.. oscr-badge:end
HTML
<!-- oscr-badge:start -->
<a href="https://openscicode.org/badge/doi/10.1093/braincomms/fcag112"><img src="https://openscicode.org/badge/doi/10.1093/braincomms/fcag112.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.