OSCR

The Influence of Contralesional Brain Age Gradients on Chronic Stroke Aphasia Severity and Treatment Response.

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

Python · 40 lines · 1.2 KB · GPL-3.0

  1. import pandas as pd
  2. # Step 1: Load factor score coefficients
  3. coefs_df = pd.read_csv("factor_coefs.csv") # columns: Region, Factor1, Factor2, ...
  4. coefs_df.set_index("Region", inplace=True)
  5. # Step 2: Load external means and STDs
  6. # Format: columns = Region, Mean, SD
  7. means_df = pd.read_csv("means_stds.csv")
  8. means_df.set_index("Region", inplace=True)
  9. # Step 3: Load user data
  10. user_df = pd.read_csv("github_test.csv")
  11. # Step 4: Match regions
  12. region_cols = coefs_df.index.tolist()
  13. # Check for missing regions
  14. missing = [r for r in region_cols if r not in user_df.columns]
  15. if missing:
  16. raise ValueError(f"Missing region(s) in user data: {missing}")
  17. # Subset and order user data to match coefficient matrix
  18. X = user_df[region_cols].copy()
  19. # Step 5: Z-score using external means and SDs
  20. X_z = (X - means_df.loc[region_cols, "Mean"].values) / means_df.loc[region_cols, "SD"].values
  21. # Step 6: Compute factor scores
  22. B = coefs_df
  23. factor_scores = X_z.dot(B)
  24. # Step 7: Combine with SubjectID if it exists
  25. if "SubjectID" in user_df.columns:
  26. output = pd.concat([user_df[["SubjectID"]], factor_scores], axis=1)
  27. else:
  28. output = factor_scores.copy()
  29. output.to_csv("factor_scores_output.csv", index=False)
  30. print("Factor scores computed and saved to 'factor_scores_output.csv'")

compute_factors.py at commit 09eee0a, under GPL-3.0 · at the source

Overview

Authors: Nicholas Riccardi1, Ansley Martin1, Ida Rangus1,2, Natalie Busby1, Chris Rorden3, Julius Fridriksson1, Leonardo Bonilha4
  1. Department of Communication Sciences and Disorders, University of South Carolina, Columbia, South Carolina 29208
  2. Center for Stroke Research Berlin, Charité – Universitätsmedizin Berlin, Berlin 10117, Germany
  3. Department of Psychology, University of South Carolina, Columbia, South Carolina 29208
  4. Department of Neurology, School of Medicine Columbia, Columbia, South Carolina 29208
Dates: received 4 November 2025; accepted 28 July 2026; published online 21 October 2026
Type: Research article · Language: English
License: CC BY
Identifiers: DOI 10.1523/jneurosci.2058-25.2026 · PMID 42805781 · PMCID PMC13689985 · OpenAlex W7214636669
Open access: hybrid, a free copy (OpenAlex)
Status: code verified (how the code is found and verified)
Categories: structural MRI / diffusion (modality), human (organism), stroke (population), clinical / translational (subfield)
Methods: Connectivity, Machine learning, Statistics, Preprocessing
Keywords: aphasia, brain age, language, MRI, stroke, treatment response
MeSH: Aging*, Aphasia*, Brain*, Functional Laterality*, Stroke*, Aged, Chronic Disease, Female, Humans, Magnetic Resonance Imaging, Male, Middle Aged, Severity of Illness Index, Treatment Outcome (* major topic)
Topic: Neurobiology of Language and Bilingualism (Cognitive Neuroscience, Neuroscience), according to OpenAlex
Funding: HHS | NIH | National Institute on Deafness and Other Communication Disorders (R01DC022458, P50DC014664)
Citations: not cited yet (Europe PMC); 76 references in the paper

Abstract

The adult brain follows normative aging trajectories, yet stroke abruptly disrupts this process. Beyond the focal lesion, undamaged regions can deviate from expected aging due to diaschisis or pre-existing vulnerabilities, reflecting tissue health that may constrain recovery. Chronic post-stroke aphasia, a persistent language disorder, shows wide individual variability in severity and treatment response, and these differences are not fully captured by lesion characteristics or demographic factors. Further, prior imaging biomarkers have been difficult to scale because they rely on specialized acquisitions or nonstandardized analytical pipelines. Here, we used a standardized, lifespan-informed brain age model (volBrain) trained on large public datasets to quantify regional deviations from normative aging using only routine structural MRI (T1-weighted). In 188 individuals with chronic stroke (67 female, 121 male), regional aging deviations in the contralesional hemisphere explained aphasia severity beyond lesion volume, lesion location, and basic demographics. In a treated subgroup, baseline brain aging patterns also predicted language gains that persisted 6 months after therapy, indicating prognostic value. By characterizing how individual brains diverge from expected aging, this approach captures variation in tissue integrity that is relevant for both impairment and recovery. This provides a scalable framework that can be integrated across sites and studies, linking normative aging models with post-stroke prognostics and informing precision neurorehabilitation.

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

Repository

Its files are read in the Code ↔ Paper reader above.

NickRiccardi/brain_age_factors

License: GPL-3.0
State: the link answers, verified on 24 October 2026
Evidence: files inventoried
Commit: 09eee0a929ef096d338922c479812a3bd7482d83, 8 July 2025
Languages: Python (1)
Size: 6 files, 1 script
Software Heritage: not archived
Found in: “Data Availability”
Holds: README, license file
Not found: CITATION.cff, environment file, tests, continuous integration, documentation
Tools: pandas (1 file)
Availability: 1 check, the latest on 24 October 2026: the link answers
  • 24 October 2026: the link answers
3 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;
  • 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

Datasets cited

Data Availability

Neuroimaging data is publicly available: doi:10.18112/openneuro.ds004884.v1.0.1. All pipelines for reproducing lesion quantification and brain age estimations are publicly available (https://github.com/neurolabusc/nii_preprocess/blob/master/nii_preprocess.m; https://www.volbrain.net/home). Code for generalizing brain age factor scores to new participants is publicly available: https://github.com/NickRiccardi/brain_age_factors.

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, 24 October 2026: the first record

Recorded: type, language, journal, volume, issue, pages, dates, 7 authors, 6 keywords, 14 MeSH terms, 1 funder, 74 references.

Cite

This paper

Riccardi, N., Martin, A., Rangus, I., Busby, N., Rorden, C., Fridriksson, J., & Bonilha, L. (2026). The Influence of Contralesional Brain Age Gradients on Chronic Stroke Aphasia Severity and Treatment Response. The Journal of neuroscience : the official journal of the Society for Neuroscience, 46(42), e2058252026. https://doi.org/10.1523/jneurosci.2058-25.2026

BibTeX

@article{riccardi2026influence,
author = {Riccardi, Nicholas and Martin, Ansley and Rangus, Ida and Busby, Natalie and Rorden, Chris and Fridriksson, Julius and Bonilha, Leonardo},
title = {{The Influence of Contralesional Brain Age Gradients on Chronic Stroke Aphasia Severity and Treatment Response}},
journal = {The Journal of neuroscience : the official journal of the Society for Neuroscience},
year = {2026},
month = oct,
volume = {46},
number = {42},
pages = {e2058252026},
publisher = {Society for Neuroscience},
issn = {0270-6474},
doi = {10.1523/jneurosci.2058-25.2026},
url = {https://doi.org/10.1523/jneurosci.2058-25.2026},
pmid = {42805781},
pmcid = {PMC13689985}
}

RIS

TY - JOUR
AU - Riccardi, Nicholas
AU - Martin, Ansley
AU - Rangus, Ida
AU - Busby, Natalie
AU - Rorden, Chris
AU - Fridriksson, Julius
AU - Bonilha, Leonardo
TI - The Influence of Contralesional Brain Age Gradients on Chronic Stroke Aphasia Severity and Treatment Response
T2 - The Journal of neuroscience : the official journal of the Society for Neuroscience
J2 - J Neurosci
PY - 2026
DA - 2026/10/21
VL - 46
IS - 42
SP - e2058252026
SN - 0270-6474
PB - Society for Neuroscience
DO - 10.1523/jneurosci.2058-25.2026
UR - https://doi.org/10.1523/jneurosci.2058-25.2026
LA - en
ER -

CSL-JSON

{
"id": "10.1523/jneurosci.2058-25.2026",
"type": "article-journal",
"title": "The Influence of Contralesional Brain Age Gradients on Chronic Stroke Aphasia Severity and Treatment Response",
"container-title": "The Journal of neuroscience : the official journal of the Society for Neuroscience",
"author": [
{
"family": "Riccardi",
"given": "Nicholas"
},
{
"family": "Martin",
"given": "Ansley"
},
{
"family": "Rangus",
"given": "Ida"
},
{
"family": "Busby",
"given": "Natalie"
},
{
"family": "Rorden",
"given": "Chris"
},
{
"family": "Fridriksson",
"given": "Julius"
},
{
"family": "Bonilha",
"given": "Leonardo"
}
],
"container-title-short": "J Neurosci",
"volume": "46",
"issue": "42",
"page": "e2058252026",
"DOI": "10.1523/jneurosci.2058-25.2026",
"PMID": "42805781",
"PMCID": "PMC13689985",
"ISSN": "0270-6474",
"publisher": "Society for Neuroscience",
"URL": "https://doi.org/10.1523/jneurosci.2058-25.2026",
"language": "en",
"issued": {
"date-parts": [
[
2026,
10,
21
]
]
}
}

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/s41597-024-03819-7 [code]
The Aphasia Recovery Cohort, an open-source chronic stroke repository.
Journal: Scientific data
In common: pandas, OpenNeuro 10.18112/openneuro.ds004884.v1.0.1, stroke, 10 references
[2] doi:10.1038/s42003-025-09375-z [code]
Cortical hierarchy and aphasia severity: the sensorimotor-association gradient modulates lesion effects within language-specific networks.
Journal: Communications biology
In common: pandas, stroke, structural MRI / diffusion, 10 references, author Nicholas Riccardi
[3] doi:10.1038/s42003-025-08228-z [code]
Distinct brain age gradients across the adult lifespan reflect diverse neurobiological hierarchies.
Journal: Communications biology
In common: pandas, structural MRI / diffusion, 10 references, author Nicholas Riccardi
[4] doi:10.1038/s43856-024-00541-8 [code]
Distinct brain morphometry patterns revealed by deep learning improve prediction of post-stroke aphasia severity.
Journal: Communications medicine
In common: pandas, OpenNeuro 10.18112/openneuro.ds004884.v1.0.1, stroke, structural MRI / diffusion, clinical / translational, 6 references
[5] doi:10.1016/j.nicl.2024.103602 [code]
Discourse- and lesion-based aphasia quotient estimation using machine learning.
Journal: NeuroImage. Clinical
In common: stroke, clinical / translational, 7 references, author Nicholas Riccardi
[6] doi:10.3389/fnimg.2025.1573816 [code]
Benchmarking machine learning models in lesion-symptom mapping for predicting language outcomes in stroke survivors.
Journal: Frontiers in neuroimaging
In common: stroke, 10 references
[7] doi:10.1162/nol.a.27 [code]
Neural Predictors for the Generalization of Semantic and Phonological Treatment to Discourse Performance in Chronic Post-Stroke Aphasia.
Journal: Neurobiology of language (Cambridge, Mass.)
In common: stroke, clinical / translational, 9 references
[8] doi:10.1093/braincomms/fcac252 [code]
Brain age predicts long-term recovery in post-stroke aphasia.
Journal: Brain communications
In common: stroke, structural MRI / diffusion, 9 references
[9] doi:10.1016/j.nicl.2022.103305
The impact of etiology in lesion-symptom mapping - A direct comparison between tumor and stroke.
Journal: NeuroImage. Clinical
In common: stroke, structural MRI / diffusion, clinical / translational, 8 references
[10] doi:10.1038/s42003-023-05119-z [code]
Dynamic network properties of the superior temporal gyrus mediate the impact of brain age gap on chronic aphasia severity.
Journal: Communications biology
In common: stroke, structural MRI / diffusion, 9 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.1523/jneurosci.2058-25.2026.svg)](https://openscicode.org/badge/doi/10.1523/jneurosci.2058-25.2026)
<!-- oscr-badge:end -->
reStructuredText
.. oscr-badge:start

.. image:: https://openscicode.org/badge/doi/10.1523/jneurosci.2058-25.2026.svg
   :target: https://openscicode.org/badge/doi/10.1523/jneurosci.2058-25.2026
   :alt: OSCR

.. oscr-badge:end
HTML
<!-- oscr-badge:start -->
<a href="https://openscicode.org/badge/doi/10.1523/jneurosci.2058-25.2026"><img src="https://openscicode.org/badge/doi/10.1523/jneurosci.2058-25.2026.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.