OSCR

Individual-specific resting-state networks predict language dominance in drug-resistant epilepsy.

Code ↔ Paper

5 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.

4 blocks of code here have a permanent identifier (oscr:b:…), listed with the matches below: citable for good, with a page of its own. Select a match and press Cite to copy it. What a block identifier is.

The 5 matches · 3 of them tie a paragraph to a whole file without given lines: weak matches, whose lines are not tinted
  1. [1] § MATERIALS AND METHODS › Derivation of group‐average networks and training of MS‐HBM for estimating individual‐specific networks ↔ stable_projects/brain_parcellation/Kong2022_ArealMSHBM/step2_estimate_priors/CBIG_ArealMSHBM_dMSHBM_estimate_group_priors_parent.m, lines 1 to 60 · score 0.69 · von Mises Fisher, connectivity profiles, functional connectivity, clustered, trained · block oscr:b:EQYG6684T86Y4-R · Report a mismatch
  2. [2] § MATERIALS AND METHODS › Derivation of group‐average networks and training of MS‐HBM for estimating individual‐specific networks ↔ stable_projects/brain_parcellation/Kong2022_ArealMSHBM/step2_estimate_priors/CBIG_ArealMSHBM_cMSHBM_estimate_group_priors_parent.m, lines 1 to 60 · score 0.69 · von Mises Fisher, connectivity profiles, functional connectivity, clustered, trained · block oscr:b:2BVE3H178C2QR-A · Report a mismatch
  3. [3] § MATERIALS AND METHODS › Predicting language dominance using individual‐specific network topography ↔ stable_projects/brain_parcellation/Lim2026_MSHBM_epilepsy/CBIG_MSHBM_Epilepsy_LI.m, the whole file · a weak match · score 0.66 · drug resistant epilepsy, right hemispheres, language network, fMRI, laterality, RH · block oscr:b:0J5N2RDP27YS5-T · Report a mismatch
  4. [4] § MATERIALS AND METHODS › Participants and datasets ↔ stable_projects/brain_parcellation/Lim2026_MSHBM_epilepsy/CBIG_MSHBM_Epilepsy_LI.m, the whole file · a weak match · score 0.56 · MS HBM models, drug resistant epilepsy, language networks, fMRI, NIH · block oscr:b:0J5N2RDP27YS5-T · Report a mismatch
  5. [5] § MATERIALS AND METHODS › Participants and datasets ↔ stable_projects/brain_parcellation/Lim2026_MSHBM_epilepsy/examples/CBIG_MSHBM_Epilepsy_wrapper.m, the whole file · a weak match · score 0.53 · MS HBM models, drug resistant epilepsy, Lang, rs, fMRI, NIH · block oscr:b:45ZXQ4MENEE97-I · 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 · 130 lines · 4.9 KB · MIT · 2 matches

  1. function [lh_labels, rh_labels, LI_lang] = CBIG_MSHBM_Epilepsy_LI(params)
  2. % ====================================
  3. %% Help
  4. % ====================================
  5. %
  6. % CBIG_MSHBM_Epilepsy_LI
  7. %
  8. % Estimates an individual-specific 15-network cortical parcellation for a
  9. % patient with drug-resistant epilepsy using the NIH 34-subject MS-HBM
  10. % model, and computes the language laterality index (LI) from the
  11. % individual parcellation. Requires Kong2019_MSHBM scripts as dependencies.
  12. %
  13. % The individual parcellation is saved to:
  14. % params.project_dir/ind_parcellation/test_set/
  15. % Ind_parcellation_MSHBM_sub1_w80_MRF10.mat
  16. % The LI is saved to:
  17. % params.project_dir/LI.mat (variable: LI_lang)
  18. %
  19. % INPUTS:
  20. % params: A structure with the following fields:
  21. % - project_dir (required):
  22. % String. The output directory for this subject. Must be unique per
  23. % subject. The individual parcellation and LI.mat are saved here.
  24. %
  25. % - lh_fMRI_list (required):
  26. % 1xN or Nx1 cell array of strings. Full paths to the left-hemisphere
  27. % fMRI surface files for each session. Can be a string for one
  28. % session.
  29. %
  30. % - rh_fMRI_list (required for fsaverage6/fsaverage5):
  31. % 1xN or Nx1 cell array of strings. Full paths to the right-hemisphere
  32. % fMRI surface files for each session. Can be a string for one
  33. % session.
  34. %
  35. % - censor_list (required):
  36. % 1xN or Nx1 cell array of strings. Full paths to the motion censor
  37. % files for each session (one row per time point: 1=keep, 0=censor).
  38. % Set to 'NONE' if no censoring is required. Can be a string for one
  39. % session.
  40. %
  41. % - target_mesh (optional):
  42. % String. Surface mesh. Default: 'fsaverage6'.
  43. %
  44. % - group_prior (optional):
  45. % String. Full path to the group prior Params_Final.mat. Defaults to
  46. % the NIH 34-subject drug-resistant epilepsy MS-HBM model:
  47. % Lim2026_MSHBM_epilepsy/MSHBM_Epilepsy/Params_Final.mat
  48. %
  49. % - w (optional):
  50. % String. Weight for the group spatial prior. Default: '80'.
  51. %
  52. % - c (optional):
  53. % String. Weight for the MRF smoothness constraint. Default: '10'.
  54. %
  55. % - overwrite_flag (optional):
  56. % 0 or 1. If 1, deletes project_dir before running. Default: 0.
  57. %
  58. % OUTPUTS:
  59. % lh_labels: Vector. Network labels for left hemisphere vertices.
  60. % rh_labels: Vector. Network labels for right hemisphere vertices.
  61. % LI_lang: Scalar. Language laterality index:
  62. % (LH language vertices - RH language vertices) /
  63. % (LH language vertices + RH language vertices)
  64. % Language networks in the NIH model:
  65. % Lang A (primary) = label 8
  66. % Lang B (secondary) = label 11
  67. % Positive LI = left-lateralised; negative = right-lateralised.
  68. %
  69. % EXAMPLE:
  70. % params.project_dir = '/myproject/patient01';
  71. % params.lh_fMRI_list = {'/mydata/lh.sess1.nii.gz', '/mydata/lh.sess2.nii.gz'};
  72. % params.rh_fMRI_list = {'/mydata/rh.sess1.nii.gz', '/mydata/rh.sess2.nii.gz'};
  73. % params.censor_list = {'/mydata/censor1.txt', '/mydata/censor2.txt'};
  74. % [lh_labels, rh_labels, LI_lang] = CBIG_MSHBM_Epilepsy_LI(params);
  75. %
  76. % Written by Mervyn Lim Jun Rui and CBIG under MIT license: https://github.com/ThomasYeoLab/CBIG/blob/master/LICENSE.md
  77. % ====================================
  78. %% Setup
  79. % ====================================
  80. CBIG_CODE_DIR = getenv('CBIG_CODE_DIR');
  81. lim2026_dir = fileparts(mfilename('fullpath'));
  82. addpath(fullfile(CBIG_CODE_DIR, 'stable_projects', 'brain_parcellation', 'Kong2019_MSHBM'));
  83. % Default group prior: NIH 34-subject epilepsy MS-HBM model
  84. if ~isfield(params, 'group_prior')
  85. params.group_prior = fullfile(lim2026_dir, 'MSHBM_Epilepsy', 'Params_Final.mat');
  86. end
  87. % Epilepsy-optimised parcellation parameters
  88. if ~isfield(params, 'target_mesh')
  89. params.target_mesh = 'fsaverage6';
  90. end
  91. if ~isfield(params, 'w')
  92. params.w = '80';
  93. end
  94. if ~isfield(params, 'c')
  95. params.c = '10';
  96. end
  97. % ====================================
  98. %% Estimate Individual Parcellation
  99. % ====================================
  100. [lh_labels, rh_labels] = CBIG_MSHBM_parcellation_single_subject(params);
  101. % ====================================
  102. %% Compute Language Laterality Index
  103. % ====================================
  104. % Language network labels for the NIH 34-subject MS-HBM epilepsy model:
  105. % Lang A (primary language network) = label 8
  106. % Lang B (secondary language network) = label 11
  107. lh_lang = sum(lh_labels == 8 | lh_labels == 11);
  108. rh_lang = sum(rh_labels == 8 | rh_labels == 11);
  109. LI_lang = (lh_lang - rh_lang) / (lh_lang + rh_lang);
  110. fprintf('Language LI (Lang A + B): %.4f\n', LI_lang);
  111. save(fullfile(params.project_dir, 'LI.mat'), 'LI_lang');
  112. fprintf('LI saved to %s\n', fullfile(params.project_dir, 'LI.mat'));
  113. % ====================================
  114. %% Cleanup
  115. % ====================================
  116. rmpath(fullfile(CBIG_CODE_DIR, 'stable_projects', 'brain_parcellation', 'Kong2019_MSHBM'));
  117. end

CBIG_MSHBM_Epilepsy_LI.m at commit 634f676, under MIT · at the source

Overview

  1. Computational Brain Imaging Group, Yong Loo Lin School of Medicine National University of Singapore Singapore Singapore
  2. National Institute of Neurological Disorders and Stroke National Institutes of Health Bethesda Maryland USA
  3. Division of Neurosurgery, Department of Surgery National University Hospital Singapore Singapore
Journal: Epilepsia, volume 67, issue 9, pages 4649-4661
Dates: received 5 March 2026; accepted 19 May 2026; published online 8 June 2026; in print September 2026
Type: Research article · Language: English
License: CC BY-NC
Identifiers: DOI 10.1002/epi.70323 · PMID 42257618 · PMCID PMC13592479 · OpenAlex W7163919583
Open access: hybrid, a free copy (OpenAlex)
Status: code verified (how the code is found and verified)
Categories: fMRI (modality), human (organism), epilepsy (population)
Methods: Statistics, Machine learning, Connectivity, fMRI & imaging
Keywords: functional magnetic resonance imaging, language lateralization, multisession hierarchical Bayesian model, precision functional mapping
MeSH: Drug Resistant Epilepsy*, Language*, Nerve Net*, Adult, Bayes Theorem, Brain Mapping, Connectome, Female, Humans, Magnetic Resonance Imaging, Male, Young Adult (* major topic)
Topic: Functional Brain Connectivity Studies (Cognitive Neuroscience, Neuroscience), according to OpenAlex
Funding: National Institutes of Health (NIH‐DIR ZIA NS009431‐05); NUS Yong Loo Lin School of Medicine (NUHSRO/2020/124/TMR/LOA); Singapore National Medical Research Council (NMRC) LCG (OFLCG19May‐0035); NMRC CTG-IIT (CTGIIT23jan‐0001); NMRC OF-IRG (OFIRG24jan‐0006, OFIRG24jul‐0049); NMRC STaR (STaR20nov‐0003); Singapore Ministry of Health (MOH) Centre Grant (CG21APR1009); United States National Institutes of Health (R01MH133334&2R01MH120080); Singapore National Research Foundation (NRF) Investigatorship (NRFI10‐2024‐0014)
Citations: not cited yet (Europe PMC); 55 references in the paper

Abstract

Objective: This study was undertaken to reliably estimate individual‐specific resting‐state cortical networks and determine whether language network topography can predict task‐based language dominance in drug‐resistant epilepsy.

Methods: We utilized a multisession hierarchical Bayesian model (MS‐HBM) trained on drug‐resistant epilepsy patients to map high‐quality individual‐specific cortical networks in this population (n = 65) with only 6–24 min of resting‐state functional magnetic resonance imaging (fMRI). We compared the quality of networks to MS‐HBM models trained on healthy participants from the human connectome project (n = 40) and tested the generalizability of the model in an independent cohort of drug‐resistant epilepsy participants (n = 26). Resting‐state language network topography was then used to predict task‐based language dominance.

Results: Ninety‐one participants with drug‐resistant epilepsy (National Institutes of Health, n = 65; University of Iowa, n = 26) were included: 61 (67.0%) temporal lobe epilepsy, 29 (31.9%) extratemporal lobe epilepsy, and one (1.1%) undetermined seizure onset zone. The mean age was 33.0 ± 11.4 years, and 50 (54.9%) were male. There were 40 healthy participants with a mean age of 29.0 ± 4.0 years, and 16 (40.0%) were male. MS‐HBM trained on drug‐resistant epilepsy estimated individual‐specific networks that more accurately capture cortical functional organization than group‐average networks or MS‐HBM trained on healthy participants. The trained MS‐HBM model generalized to an independent cohort of drug‐resistant epilepsy participants with concurrent intracranial electrical stimulation and fMRI. Critically, cortical evoked fMRI activity aligned more closely with individual‐specific networks than with group‐average networks. Furthermore, individual‐specific language network topography significantly predicted task‐based language dominance, achieving high accuracy for left (area under the curve [AUC] = .82), bilateral (AUC = .72), and right (AUC = .83) dominance.

Significance: These results demonstrate that MS‐HBM captures functionally meaningful network reorganization in drug‐resistant epilepsy and enables accurate, individual‐level prediction of language lateralization, with direct implications for presurgical functional mapping.

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

Repository

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

thomasyeolab/cbig

License: MIT
State: the link answers, verified on 27 October 2026
Evidence: files inventoried
Commit: 634f676630929a71297852d01dd92a287103e861, 1 October 2026
Languages: MATLAB (2110), Shell (652), Python (589), C (113), C++ (65), C/C++ (62), R (25), Jupyter (5)
Size: 9,316 files, 3,621 scripts
Software Heritage: not archived
Found in: the text, “CONCLUSIONS”
Holds: README, license file, environment (external_packages/python/mapalign-master/requirements.txt, external_packages/python/mapalign-master/setup.py, external_packages/python/yapf-master/setup.cfg, external_packages/python/yapf-master/setup.py), tests, documentation, 2 notebooks
Not found: CITATION.cff, continuous integration
Tools: NumPy (130 files), PyTorch (122 files), FreeSurfer (94 files), SciPy (61 files), FieldTrip (60 files), Statistics and Machine Learning Toolbox (50 files), FSL (44 files), SPM (40 files), GIfTI library for MATLAB (10 files), Image Processing Toolbox (8 files), Connectome Workbench (8 files), scikit-learn (5 files), AFNI (2 files), Matplotlib (2 files), Tools for NIfTI and ANALYZE image (MATLAB) (2 files), ANTs (1 file), NiBabel (1 file), Nilearn (1 file), tedana (1 file)
Availability: 2 checks, the latest on 27 October 2026: the link answers
  • 27 October 2026: the link answers
  • 27 September 2026: the link answers
2,000 files

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

Deidentified data from the National Institutes of Health will be made available upon reasonable request to . All other data used are open source and available at their respective sites.

Reproduced under the paper's license (CC BY-NC), 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 2, 28 September 2026

  • Publisher: n/a → Wiley

Version 1, 27 September 2026: the first record

Recorded: type, language, journal, volume, issue, pages, dates, 8 authors, 4 keywords, 12 MeSH terms, 9 funders, 55 references.

Cite

This paper

Lim, M. J. R., Zhang, S., Pande, S., Xue, A., Kong, R., Zaghloul, K., Inati, S., & Yeo, B. T. T. (2026). Individual-specific resting-state networks predict language dominance in drug-resistant epilepsy. Epilepsia, 67(9), 4649-4661. https://doi.org/10.1002/epi.70323

BibTeX

@article{lim2026individual,
author = {Lim, Mervyn Jun Rui and Zhang, Shaoshi and Pande, Shreya and Xue, Aihuiping and Kong, Ru and Zaghloul, Kareem and Inati, Sara and Yeo, B. T. Thomas},
title = {{Individual-specific resting-state networks predict language dominance in drug-resistant epilepsy}},
journal = {Epilepsia},
year = {2026},
month = jun,
volume = {67},
number = {9},
pages = {4649--4661},
publisher = {Wiley},
issn = {0013-9580},
doi = {10.1002/epi.70323},
url = {https://doi.org/10.1002/epi.70323},
pmid = {42257618},
pmcid = {PMC13592479}
}

RIS

TY - JOUR
AU - Lim, Mervyn Jun Rui
AU - Zhang, Shaoshi
AU - Pande, Shreya
AU - Xue, Aihuiping
AU - Kong, Ru
AU - Zaghloul, Kareem
AU - Inati, Sara
AU - Yeo, B. T. Thomas
TI - Individual-specific resting-state networks predict language dominance in drug-resistant epilepsy
T2 - Epilepsia
J2 - Epilepsia
PY - 2026
DA - 2026/06/08
VL - 67
IS - 9
SP - 4649
EP - 4661
SN - 0013-9580
PB - Wiley
DO - 10.1002/epi.70323
UR - https://doi.org/10.1002/epi.70323
LA - en
ER -

CSL-JSON

{
"id": "10.1002/epi.70323",
"type": "article-journal",
"title": "Individual-specific resting-state networks predict language dominance in drug-resistant epilepsy",
"container-title": "Epilepsia",
"author": [
{
"family": "Lim",
"given": "Mervyn Jun Rui"
},
{
"family": "Zhang",
"given": "Shaoshi"
},
{
"family": "Pande",
"given": "Shreya"
},
{
"family": "Xue",
"given": "Aihuiping"
},
{
"family": "Kong",
"given": "Ru"
},
{
"family": "Zaghloul",
"given": "Kareem"
},
{
"family": "Inati",
"given": "Sara"
},
{
"family": "Yeo",
"given": "B. T. Thomas"
}
],
"container-title-short": "Epilepsia",
"volume": "67",
"issue": "9",
"page": "4649-4661",
"DOI": "10.1002/epi.70323",
"PMID": "42257618",
"PMCID": "PMC13592479",
"ISSN": "0013-9580",
"publisher": "Wiley",
"URL": "https://doi.org/10.1002/epi.70323",
"language": "en",
"issued": {
"date-parts": [
[
2026,
6,
8
]
]
}
}

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.1162/imag.a.1222 [code]
Network-based near-scalp personalized brain stimulation targets.
Journal: Imaging neuroscience (Cambridge, Mass.)
In common: tedana, Connectome Workbench, AFNI, 16 other tools, 8 references, 3 authors
[2] doi:10.1038/s41586-025-09250-1 [code]
Longer scans boost prediction and cut costs in brain-wide association studies.
Journal: Nature
In common: tedana, Connectome Workbench, AFNI, 16 other tools, fMRI, 6 references, 3 authors
[3] doi:10.1038/s41467-026-73668-y [code]
Convergent and divergent brain-cognition development in early adolescence.
Journal: Nature communications
In common: tedana, Connectome Workbench, AFNI, 16 other tools, fMRI, 4 references, 3 authors
[4] doi:10.1073/pnas.2318641121 [code]
In vivo whole-cortex marker of excitation-inhibition ratio indexes cortical maturation and cognitive ability in youth.
Journal: Proceedings of the National Academy of Sciences of the United States of America
In common: tedana, Connectome Workbench, AFNI, 16 other tools, fMRI, 1 reference, 3 authors
[5] doi:10.1038/s41467-021-26704-y [code]
Sensory-motor cortices shape functional connectivity dynamics in the human brain.
Journal: Nature communications
In common: tedana, Connectome Workbench, AFNI, 16 other tools, fMRI, 4 references, 2 authors
[6] doi:10.1152/jn.00308.2023 [code]
Organization of the human cerebral cortex estimated within individuals: networks, global topography, and function.
Journal: Journal of neurophysiology
In common: tedana, Connectome Workbench, AFNI, 16 other tools, fMRI, 8 references, author B T Thomas Yeo
[7] doi:10.1016/j.neuroimage.2023.120115 [code]
Relationship between prediction accuracy and feature importance reliability: An empirical and theoretical study.
Journal: NeuroImage
In common: tedana, Connectome Workbench, AFNI, 16 other tools, 3 references, 2 authors
[8] doi:10.1016/j.neuroimage.2023.120010 [code]
Homotopic local-global parcellation of the human cerebral cortex from resting-state functional connectivity.
Journal: NeuroImage
In common: tedana, Connectome Workbench, AFNI, 16 other tools, fMRI, 7 references, author B T Thomas Yeo
[9] doi:10.1038/s42003-025-08509-7 [code]
Development of areal-level individualized homologous functional parcellations in youth.
Journal: Communications biology
In common: tedana, Connectome Workbench, AFNI, 16 other tools, fMRI, 9 references
[10] doi:10.1016/j.neuron.2025.08.029 [code]
Within-individual precision mapping of brain networks exclusively using task data.
Journal: Neuron
In common: tedana, Connectome Workbench, AFNI, 16 other tools, fMRI, 8 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.1002/epi.70323.svg)](https://openscicode.org/badge/doi/10.1002/epi.70323)
<!-- oscr-badge:end -->
reStructuredText
.. oscr-badge:start

.. image:: https://openscicode.org/badge/doi/10.1002/epi.70323.svg
   :target: https://openscicode.org/badge/doi/10.1002/epi.70323
   :alt: OSCR

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