OSCR

The effect of physical activity on brain structure and cognitive function in the population-based cohort of LIFE-Adult Study.

Code ↔ Paper

1 match 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.

One block of code here has 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 1 match
  1. [1] § Materials and methods › Statistical analysis ↔ Follow-up.R, lines 45 to 125 · score 0.51 · quasi cross lagged, scores, BrainAGE · block oscr:b:P4VFS0YSZ1G2W-S · 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

R · 125 lines · 4.9 KB · AGPL-3.0 · 1 match

  1. #Follow-up
  2. #follow up dataset curation
  3. life_join_fu <- read_xlsx("~/Life-ADULT/pv801/data/data_follow-up/PV0801_datajoin.xlsx")
  4. colnames(life_join_fu) <- paste0("fu_", colnames(life_join_fu))
  5. colnames(life_join_fu)[1] <- c("SIC")
  6. neuromorph_gm_fu <- left_join(neuromorph_gm_fu, pseudonyms, by = "ID")
  7. neuromorph_gm_fu <- neuromorph_gm_fu%>% dplyr::distinct(ID, .keep_all = TRUE)
  8. colnames(neuromorph_gm_fu) <- paste0("fu_", colnames(neuromorph_gm_fu))
  9. colnames(neuromorph_gm_fu)[132] <- c("SIC")
  10. #merge the datasets
  11. life_join_fu <- left_join(life_join_fu, neuromorph_gm_fu, by = "SIC")
  12. bl_fu <- life_main
  13. bl_fu <- left_join(bl_fu, life_join_fu, by = "SIC")
  14. actigraphy_fu <- left_join(final, neuromorph_gm_fu, by = "SIC")
  15. # calculate METs for the follow up from the VSAQ questionnaire
  16. VSAQ <- read_xlsx('~/Life-ADULT/pv801/data/data_follow-up/PV0801_T01221_NODUP.xlsx')
  17. life_demo <- read_xlsx('~/Life-ADULT/pv801/data/data_basis/PV0801_R00001.xlsx')
  18. #derive the birth date of the participants. Take the middle of the month as a day of birth
  19. life_demo$birth_date <- paste0(substr(life_demo$TEILNEHMER_GEB_JJJJMM, 1,4), "-", substr(life_demo$TEILNEHMER_GEB_JJJJMM,5,6), "-15")
  20. life_demo$birth_date <- as.Date(life_demo$birth_date)
  21. names(life_demo)[1] <- c("SIC")
  22. #calculate the approximate age at the time of VSAQ questionnaire
  23. VSAQ <- left_join(VSAQ, life_demo, by = "SIC")
  24. VSAQ$VSAQ_EDAT <- as.Date(VSAQ$VSAQ_EDAT)
  25. VSAQ <- VSAQ %>%
  26. dplyr::mutate(age = (VSAQ_EDAT - birth_date)/365)
  27. VSAQ$age <- as.numeric(VSAQ$age)
  28. #calculate the VSAQ score
  29. VSAQ$erste <- as.numeric(str_sub(VSAQ$VSAQ_F8, 4, 5)) #I'm taking the first naming of activity when person feels uncomfortable
  30. VSAQ <- VSAQ %>%
  31. dplyr::mutate(predicted_MET = 4.47 + (0.97 * erste) - (0.06 *age)) # the formula from Gawecki et al. (2019) 10.1136/bmjresp-2018-000351
  32. #merge the VSAQ score with the main file
  33. VSAQ_merge <-VSAQ %>% dplyr::select(SIC, predicted_MET)
  34. bl_fu <- left_join(bl_fu, VSAQ_merge, by = "SIC")
  35. rm(VSAQ_merge)
  36. #get the follow-up BrainAGE
  37. BA_fu <- BA_global %>%
  38. dplyr::filter(ses == "fu" & pat == T) %>%
  39. dplyr::select(-ses, - pat, -filename, -qualityratings_IQR, -basename)
  40. colnames(BA_fu) <- c("BA_fu", "ID")
  41. BA_fu$BA_fu <- as.numeric(BA_fu$BA_fu)
  42. #add the actigraphy data
  43. actigraphy4fu <- actigraphy_fu%>%dplyr::select(SIC, TSA_PP_METs_mean_all)
  44. #prepare the relevant variables for the model
  45. bl_fu <- left_join(bl_fu, BA_fu, by ="ID")
  46. bl_fu <- left_join(bl_fu, actigraphy4fu, by="SIC")
  47. #I exclude the same people from this dataset as from the bl ones
  48. exclude_IPAQ <- IPAQ_wf$SIC[which(!IPAQ_wf$SIC%in% IPAQ_wf1$SIC)]
  49. bl_fu_wf <- bl_fu_wf[!bl_fu_wf$SIC %in% exclude_IPAQ,]
  50. bl_fu_wf <- bl_fu_wf[!bl_fu_wf$ID %in% brain_lesions,]
  51. bl_fu_wf <- bl_fu_wf%>%
  52. dplyr::select(ID, IPAQ_AKT_TOTAL_METMNWK, predicted_MET,
  53. ADULT_PROB_AGE, ADULT_PROB_GENDER, TMT_TIMEA, fu_TMT_TIMEA,
  54. TMT_TIMEB, fu_TMT_TIMEB,BA, BA_fu, TSA_PP_METs_mean_all,
  55. fu_TMT_DATUM, TMT_DATUM, SES2_SES3, ADULT_PROB_GENDER)%>%
  56. dplyr::mutate(IPAQ_AKT_TOTAL_METHWK = (IPAQ_AKT_TOTAL_METMNWK/60)/7,,
  57. SES2 = ifelse(SES2_SES3 == 2, 1, 0),#recode into dummy vars
  58. SES3 = ifelse(SES2_SES3 == 3, 1, 0),
  59. ADULT_PROB_GENDER = ifelse(ADULT_PROB_GENDER==2, 0,1))
  60. clean_cog <- bl_fu_wf1%>%dplyr::select(fu_TMT_TIMEB, TMT_TIMEB, IPAQ_AKT_TOTAL_METHWK, predicted_MET, ADULT_PROB_AGE)
  61. clean_cog <- na.omit(clean_cog)
  62. clean_ba <- bl_fu_wf1%>%dplyr::select(SIC, BA_fu, BA, IPAQ_AKT_TOTAL_METHWK, predicted_MET, ADULT_PROB_AGE)
  63. clean_ba <- na.omit(clean_ba)
  64. #quasi cross-lagged models
  65. pa_model_BA <- '#quasi autoregressive paths
  66. BA_fu ~ BA
  67. predicted_MET ~ IPAQ_AKT_TOTAL_METHWK
  68. #quasi cross-lagged paths
  69. predicted_MET ~ BA
  70. BA_fu ~ IPAQ_AKT_TOTAL_METHWK
  71. #age as covariate
  72. IPAQ_AKT_TOTAL_METHWK ~ ADULT_PROB_AGE
  73. BA ~ ADULT_PROB_AGE
  74. predicted_MET ~ ADULT_PROB_AGE
  75. BA_fu ~ ADULT_PROB_AGE'
  76. pa_model_cog <- '#quasi autoregressive paths
  77. fu_TMT_TIMEB ~ TMT_TIMEB
  78. predicted_MET ~ IPAQ_AKT_TOTAL_METHWK
  79. # quasi cross-lagged paths
  80. predicted_MET ~ TMT_TIMEB
  81. fu_TMT_TIMEB ~ IPAQ_AKT_TOTAL_METHWK
  82. #age as covariate
  83. IPAQ_AKT_TOTAL_METHWK ~ ADULT_PROB_AGE
  84. TMT_TIMEB ~ ADULT_PROB_AGE
  85. predicted_MET ~ ADULT_PROB_AGE
  86. fu_TMT_TIMEB ~ ADULT_PROB_AGE'
  87. sem_ba <- sem(pa_model_BA, data = clean_ba, se = "robust", estimator = "MLR")
  88. summary(sem_ba, fit.measures = T, standardized = TRUE)
  89. sem_cog <- sem(pa_model_cog , data = clean_cog, se = "robust", estimator = "MLR")
  90. summary(sem_cog, fit.measures = T, standardized = TRUE)
  91. #semPaths(sem_ba, 'std', layout = 'tree2', intercepts = FALSE)
  92. #semPaths(sem_cog, 'std', layout = 'tree2', intercepts = FALSE)

Follow-up.R at commit 37099bc, under AGPL-3.0 · at the source

Overview

Authors: Polona Kalc1,2, Robert Dahnke1,2,3, Christian Sanders4,5, Frauke Beyer6,7, Andrea Zülke8, Steffi Riedel-Heller8, A Veronica Witte6,7, Christian Gaser1,2,3
  1. Jena University Hospital, Department of Psychiatry and Psychotherapy, Jena, Germany
  2. Jena University Hospital, Department of Neurology, Jena, Germany
  3. German Center for Mental Health (DZPG), Jena-Halle-Magdeburg, Germany
  4. LIFE – Leipzig Research Centre for Civilization Diseases, University of Leipzig, Leipzig, Germany
  5. Department of Psychiatry and Psychotherapy, University of Leipzig Medical Center, Leipzig, Germany
  6. University of Leipzig Medical Center, Cognitive Neurology, Leipzig, Germany
  7. Max-Planck Institute for Human Cognitive and Brain Sciences, Department of Neurology, Leipzig, Germany
  8. Institute of Social Medicine, Occupational Health and Public Health, University of Leipzig, Leipzig, Germany
Journal: eLife, volume 15, article RP109461
Dates: published online 15 July 2026
Type: Research article · Language: English
License: CC BY
Identifiers: DOI 10.7554/elife.109461 · PMID 42454378 · PMCID PMC13372311 · OpenAlex W7134939251
Open access: gold, a free copy (OpenAlex)
Status: code verified (how the code is found and verified)
Categories: structural MRI / diffusion (modality), human (organism), cognitive (subfield)
Methods: Statistics
Keywords: Human
MeSH: Brain*, Cognition*, Exercise*, Adult, Aged, Cohort Studies, Cross-Sectional Studies, Female, Humans, Longitudinal Studies, Male, Middle Aged (* major topic)
Topic: Dementia and Cognitive Impairment Research (Psychiatry and Mental health, Medicine), according to OpenAlex
Funding: Carl-Zeiss-Stiftung (IMPULS P2019-01-006); HORIZON EUROPE Marie Sklodowska-Curie Actions (10.3030/859890); Bundesministerium für Forschung, Technologie und Raumfahrt (Pattern-Cog ERAPERMED2021-127)
Citations: not cited yet (Europe PMC); 75 references in the paper
Research resources: SPM12 (r7771) RRID:SCR_007037, CAT12 (12.9) RRID:SCR_019184, DAGitty RRID:SCR_024509, laavan 0.6–19 RRID:SCR_027663

Abstract

Physical activity is believed to positively influence brain health and cognition and is considered a modifiable lifestyle factor that may protect against cognitive decline and neurodegeneration. In this observational study, we investigated the cross-sectional and longitudinal effects of self-reported total and moderate-to-vigorous physical activity on cognitive scores on the Trail Making Test (TMT-A and TMT-B), hippocampal volume, and Brain Age Gap Estimate (BrainAGE) in a large population-based cohort from the LIFE-Adult Study (n=2576). Furthermore, we examined the effect of objectively measured physical activity on brain structure in a subgroup with available accelerometry data (n=227). Multiple linear regression analyses did not show any positive effects of self-reported or objectively measured physical activity on hippocampal volume or processing speed and executive function. Longitudinal path analyses suggested a potential for reverse causation, where a higher BrainAGE at baseline was associated with lower physical capacity at follow-up. Additionally, we observed an age-related bias in the self-reporting of physical activity, indicating that older individuals tend to overestimate their level of activity. Future interventions targeting middle-aged adults may be necessary to raise awareness of potential misperception and encourage increased physical activity.

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 1 match between paragraphs and lines of code.

PolonaCa/PA_LIFE

License: AGPL-3.0
State: the link answers, verified on 27 September 2026
Evidence: files inventoried
Commit: 37099bc5d53a4e93a6cf29aaa378ded0a60580a5, 10 July 2026
Languages: R (3)
Size: 5 files, 3 scripts
Software Heritage: not archived
Found in: “Data availability”
Holds: README, license file
Not found: CITATION.cff, environment file, tests, continuous integration, documentation
Tools: tidyverse (3 files), lavaan (1 file)
Availability: 1 check, the latest on 27 September 2026: the link answers
  • 27 September 2026: the link answers
5 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;
  • 3 scripts, each with its path and the digest of its content;
  • 1 match 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

We used data from the Leipzig Research Centre for Civilization Diseases (LIFE) under project agreement PV-801. All original data will be exclusively shared by LIFE (https://www.uniklinikum-leipzig.de/einrichtungen/life) based on a project proposal in accordance with the University of Leipzig's data protection rules. The other publicly available neuroimaging datasets used in this study are openly accessible via the following websites: IXI (https://brain-development.org/ixi-dataset/), Cam-CAN (https://opendata.mrc-cbu.cam.ac.uk/projects/camcan/), Wayne State studies 10, 11, & EF datasets (https://fcon_1000.projects.nitrc.org/indi/retro/wayne_10.html, https://fcon_1000.projects.nitrc.org/indi/retro/wayne_11.html, https://fcon_1000.projects.nitrc.org/indi/retro/wayne_EF.html), the Enhanced NKI-Rockland sample (https://rocklandsample.org/for-researchers/step-3-accessing-the-data), Southwest University adult lifespan dataset (SALD; https://fcon_1000.projects.nitrc.org/indi/retro/sald.html). The Australian Imaging Biomarkers and Lifestyle study (AIBL; https://aibl.org.au/) is available upon request and after an approval process at: https://ida.loni.usc.edu/login.jsp?project=AIBL. The code used for this study is available on https://github.com/PolonaCa/PA_LIFE (copy archived at Kalc, 2026).

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, pages, dates, 8 authors, 1 keyword, 12 MeSH terms, 3 funders, 72 references, 4 RRIDs.

Cite

This paper

Kalc, P., Dahnke, R., Sanders, C., Beyer, F., Zülke, A., Riedel-Heller, S., Witte, A. V., & Gaser, C. (2026). The effect of physical activity on brain structure and cognitive function in the population-based cohort of LIFE-Adult Study. eLife, 15, RP109461. https://doi.org/10.7554/elife.109461

BibTeX

@article{kalc2026effect,
author = {Kalc, Polona and Dahnke, Robert and Sanders, Christian and Beyer, Frauke and Zülke, Andrea and Riedel-Heller, Steffi and Witte, A Veronica and Gaser, Christian},
title = {{The effect of physical activity on brain structure and cognitive function in the population-based cohort of LIFE-Adult Study}},
journal = {eLife},
year = {2026},
month = jul,
volume = {15},
pages = {RP109461},
publisher = {eLife Sciences Publications, Ltd},
issn = {2050-084X},
doi = {10.7554/elife.109461},
url = {https://doi.org/10.7554/elife.109461},
pmid = {42454378},
pmcid = {PMC13372311}
}

RIS

TY - JOUR
AU - Kalc, Polona
AU - Dahnke, Robert
AU - Sanders, Christian
AU - Beyer, Frauke
AU - Zülke, Andrea
AU - Riedel-Heller, Steffi
AU - Witte, A Veronica
AU - Gaser, Christian
TI - The effect of physical activity on brain structure and cognitive function in the population-based cohort of LIFE-Adult Study
T2 - eLife
J2 - eLife
PY - 2026
DA - 2026/07/15
VL - 15
SP - RP109461
SN - 2050-084X
PB - eLife Sciences Publications, Ltd
DO - 10.7554/elife.109461
UR - https://doi.org/10.7554/elife.109461
LA - en
ER -

CSL-JSON

{
"id": "10.7554/elife.109461",
"type": "article-journal",
"title": "The effect of physical activity on brain structure and cognitive function in the population-based cohort of LIFE-Adult Study",
"container-title": "eLife",
"author": [
{
"family": "Kalc",
"given": "Polona"
},
{
"family": "Dahnke",
"given": "Robert"
},
{
"family": "Sanders",
"given": "Christian"
},
{
"family": "Beyer",
"given": "Frauke"
},
{
"family": "Zülke",
"given": "Andrea"
},
{
"family": "Riedel-Heller",
"given": "Steffi"
},
{
"family": "Witte",
"given": "A Veronica"
},
{
"family": "Gaser",
"given": "Christian"
}
],
"container-title-short": "eLife",
"volume": "15",
"page": "RP109461",
"DOI": "10.7554/elife.109461",
"PMID": "42454378",
"PMCID": "PMC13372311",
"ISSN": "2050-084X",
"publisher": "eLife Sciences Publications, Ltd",
"URL": "https://doi.org/10.7554/elife.109461",
"language": "en",
"issued": {
"date-parts": [
[
2026,
7,
15
]
]
}
}

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.1174 [code]
Retinal nerve fibre layer thickness reflects characteristics of brain grey and white matter.
Journal: Imaging neuroscience (Cambridge, Mass.)
In common: tidyverse, structural MRI / diffusion, 5 references, author Frauke Beyer
[2] doi:10.1038/s43587-025-00962-7 [code]
Genome-wide analysis of brain age identifies 59 associated loci and unveils relationships with mental and physical health.
Journal: Nature aging
In common: tidyverse, structural MRI / diffusion, 5 references, author Frauke Beyer
[3] doi:10.1002/hbm.70500 [code]
Factors Contributing to Short-Term Structural Variability in a Longitudinal MRI Dataset.
Journal: Human brain mapping
In common: tidyverse, structural MRI / diffusion, 4 references, author Polona Kalc
[4] doi:10.1038/s41398-026-04045-y [code]
Physical-Digital and social-nonsocial extracurricular engagement: differential effects on brain development and psychological outcomes in children.
Journal: Translational psychiatry
In common: lavaan, tidyverse, structural MRI / diffusion, 5 references
[5] doi:10.1038/s41598-025-13610-2 [code]
Complementary MR measures of white matter and their relation to cardiovascular health and cognition.
Journal: Scientific reports
In common: lavaan, tidyverse, structural MRI / diffusion, cognitive, 4 references
[6] doi:10.1002/trc2.70187 [code]
Association between 24-h time-use composition and brain age: The IGNITE study.
Journal: Alzheimer's & dementia (New York, N. Y.)
In common: tidyverse, structural MRI / diffusion, 6 references
[7] doi:10.1186/s12877-022-03306-x [code]
Exploring cognitive and brain oxygenation changes over a 1-year period in physically active individuals with mild cognitive impairment: a longitudinal fNIRS pilot study.
Journal: BMC geriatrics
In common: cognitive, 5 references
[8] doi:10.1016/j.jshs.2025.101079 [code]
Fitness and exercise effects on brain age: A randomized clinical trial.
Journal: Journal of sport and health science
In common: tidyverse, structural MRI / diffusion, 5 references
[9] doi:10.1007/s10654-025-01296-9 [code]
Generalized additive mixed models to discern data-driven theoretically informed strategies for public brain, cognitive and mental health.
Journal: European journal of epidemiology
In common: tidyverse, 2 references, author Frauke Beyer
[10] doi:10.3389/fnagi.2022.791222 [code]
Linking Brain Age Gap to Mental and Physical Health in the Berlin Aging Study II.
Journal: Frontiers in aging neuroscience
In common: tidyverse, structural MRI / diffusion, cognitive, 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.

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.7554/elife.109461.svg)](https://openscicode.org/badge/doi/10.7554/elife.109461)
<!-- oscr-badge:end -->
reStructuredText
.. oscr-badge:start

.. image:: https://openscicode.org/badge/doi/10.7554/elife.109461.svg
   :target: https://openscicode.org/badge/doi/10.7554/elife.109461
   :alt: OSCR

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