The effect of physical activity on brain structure and cognitive function in the population-based cohort of LIFE-Adult Study.
The 1 match
- [1] § Materials and methods › Statistical analysis ↔ Follow-up.R, lines 45–125 · score 0.51 · quasi cross lagged, scores, BrainAGE
Paper
Loaded from Europe PMC by your browser, not stored by OSCR: 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
- #Follow-up
- #follow up dataset curation
- life_join_fu <- read_xlsx("~/Life-ADULT/pv801/data/data_follow-up/PV0801_datajoin.xlsx")
- colnames(life_join_fu) <- paste0("fu_", colnames(life_join_fu))
- colnames(life_join_fu)[1] <- c("SIC")
- neuromorph_gm_fu <- left_join(neuromorph_gm_fu, pseudonyms, by = "ID")
- neuromorph_gm_fu <- neuromorph_gm_fu%>% dplyr::distinct(ID, .keep_all = TRUE)
- colnames(neuromorph_gm_fu) <- paste0("fu_", colnames(neuromorph_gm_fu))
- colnames(neuromorph_gm_fu)[132] <- c("SIC")
- #merge the datasets
- life_join_fu <- left_join(life_join_fu, neuromorph_gm_fu, by = "SIC")
- bl_fu <- life_main
- bl_fu <- left_join(bl_fu, life_join_fu, by = "SIC")
- actigraphy_fu <- left_join(final, neuromorph_gm_fu, by = "SIC")
- # calculate METs for the follow up from the VSAQ questionnaire
- VSAQ <- read_xlsx('~/Life-ADULT/pv801/data/data_follow-up/PV0801_T01221_NODUP.xlsx')
- life_demo <- read_xlsx('~/Life-ADULT/pv801/data/data_basis/PV0801_R00001.xlsx')
- #derive the birth date of the participants. Take the middle of the month as a day of birth
- life_demo$birth_date <- paste0(substr(life_demo$TEILNEHMER_GEB_JJJJMM, 1,4), "-", substr(life_demo$TEILNEHMER_GEB_JJJJMM,5,6), "-15")
- life_demo$birth_date <- as.Date(life_demo$birth_date)
- names(life_demo)[1] <- c("SIC")
- #calculate the approximate age at the time of VSAQ questionnaire
- VSAQ <- left_join(VSAQ, life_demo, by = "SIC")
- VSAQ$VSAQ_EDAT <- as.Date(VSAQ$VSAQ_EDAT)
- VSAQ <- VSAQ %>%
- dplyr::mutate(age = (VSAQ_EDAT - birth_date)/365)
- VSAQ$age <- as.numeric(VSAQ$age)
- #calculate the VSAQ score
- VSAQ$erste <- as.numeric(str_sub(VSAQ$VSAQ_F8, 4, 5)) #I'm taking the first naming of activity when person feels uncomfortable
- VSAQ <- VSAQ %>%
- dplyr::mutate(predicted_MET = 4.47 + (0.97 * erste) - (0.06 *age)) # the formula from Gawecki et al. (2019) 10.1136/bmjresp-2018-000351
- #merge the VSAQ score with the main file
- VSAQ_merge <-VSAQ %>% dplyr::select(SIC, predicted_MET)
- bl_fu <- left_join(bl_fu, VSAQ_merge, by = "SIC")
- rm(VSAQ_merge)
- #get the follow-up BrainAGE
- BA_fu <- BA_global %>%
- dplyr::filter(ses == "fu" & pat == T) %>%
- dplyr::select(-ses, - pat, -filename, -qualityratings_IQR, -basename)
- colnames(BA_fu) <- c("BA_fu", "ID")
- BA_fu$BA_fu <- as.numeric(BA_fu$BA_fu)
- #add the actigraphy data
- actigraphy4fu <- actigraphy_fu%>%dplyr::select(SIC, TSA_PP_METs_mean_all)
- #prepare the relevant variables for the model
- bl_fu <- left_join(bl_fu, BA_fu, by ="ID")
- bl_fu <- left_join(bl_fu, actigraphy4fu, by="SIC")
- #I exclude the same people from this dataset as from the bl ones
- exclude_IPAQ <- IPAQ_wf$SIC[which(!IPAQ_wf$SIC%in% IPAQ_wf1$SIC)]
- bl_fu_wf <- bl_fu_wf[!bl_fu_wf$SIC %in% exclude_IPAQ,]
- bl_fu_wf <- bl_fu_wf[!bl_fu_wf$ID %in% brain_lesions,]
- bl_fu_wf <- bl_fu_wf%>%
- dplyr::select(ID, IPAQ_AKT_TOTAL_METMNWK, predicted_MET,
- ADULT_PROB_AGE, ADULT_PROB_GENDER, TMT_TIMEA, fu_TMT_TIMEA,
- TMT_TIMEB, fu_TMT_TIMEB,BA, BA_fu, TSA_PP_METs_mean_all,
- fu_TMT_DATUM, TMT_DATUM, SES2_SES3, ADULT_PROB_GENDER)%>%
- dplyr::mutate(IPAQ_AKT_TOTAL_METHWK = (IPAQ_AKT_TOTAL_METMNWK/60)/7,,
- SES2 = ifelse(SES2_SES3 == 2, 1, 0),#recode into dummy vars
- SES3 = ifelse(SES2_SES3 == 3, 1, 0),
- ADULT_PROB_GENDER = ifelse(ADULT_PROB_GENDER==2, 0,1))
- clean_cog <- bl_fu_wf1%>%dplyr::select(fu_TMT_TIMEB, TMT_TIMEB, IPAQ_AKT_TOTAL_METHWK, predicted_MET, ADULT_PROB_AGE)
- clean_cog <- na.omit(clean_cog)
- clean_ba <- bl_fu_wf1%>%dplyr::select(SIC, BA_fu, BA, IPAQ_AKT_TOTAL_METHWK, predicted_MET, ADULT_PROB_AGE)
- clean_ba <- na.omit(clean_ba)
- #quasi cross-lagged models
- pa_model_BA <- '#quasi autoregressive paths
- BA_fu ~ BA
- predicted_MET ~ IPAQ_AKT_TOTAL_METHWK
- #quasi cross-lagged paths
- predicted_MET ~ BA
- BA_fu ~ IPAQ_AKT_TOTAL_METHWK
- #age as covariate
- IPAQ_AKT_TOTAL_METHWK ~ ADULT_PROB_AGE
- BA ~ ADULT_PROB_AGE
- predicted_MET ~ ADULT_PROB_AGE
- BA_fu ~ ADULT_PROB_AGE'
- pa_model_cog <- '#quasi autoregressive paths
- fu_TMT_TIMEB ~ TMT_TIMEB
- predicted_MET ~ IPAQ_AKT_TOTAL_METHWK
- # quasi cross-lagged paths
- predicted_MET ~ TMT_TIMEB
- fu_TMT_TIMEB ~ IPAQ_AKT_TOTAL_METHWK
- #age as covariate
- IPAQ_AKT_TOTAL_METHWK ~ ADULT_PROB_AGE
- TMT_TIMEB ~ ADULT_PROB_AGE
- predicted_MET ~ ADULT_PROB_AGE
- fu_TMT_TIMEB ~ ADULT_PROB_AGE'
- sem_ba <- sem(pa_model_BA, data = clean_ba, se = "robust", estimator = "MLR")
- summary(sem_ba, fit.measures = T, standardized = TRUE)
- sem_cog <- sem(pa_model_cog , data = clean_cog, se = "robust", estimator = "MLR")
- summary(sem_cog, fit.measures = T, standardized = TRUE)
- #semPaths(sem_ba, 'std', layout = 'tree2', intercepts = FALSE)
- #semPaths(sem_cog, 'std', layout = 'tree2', intercepts = FALSE)
Follow-up.R at commit 37099bc, under AGPL-3.0 · at the source
Overview
- Jena University Hospital, Department of Psychiatry and Psychotherapy, Jena, Germany
- Jena University Hospital, Department of Neurology, Jena, Germany
- German Center for Mental Health (DZPG), Jena-Halle-Magdeburg, Germany
- LIFE – Leipzig Research Centre for Civilization Diseases, University of Leipzig, Leipzig, Germany
- Department of Psychiatry and Psychotherapy, University of Leipzig Medical Center, Leipzig, Germany
- University of Leipzig Medical Center, Cognitive Neurology, Leipzig, Germany
- Max-Planck Institute for Human Cognitive and Brain Sciences, Department of Neurology, Leipzig, Germany
- Institute of Social Medicine, Occupational Health and Public Health, University of Leipzig, Leipzig, Germany
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=
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
37099bc5d53a4e93a6cf29aaa378ded0a60580a5, 10 July 2026Availability: 1 check, the latest on 27 September 2026: the link answers
- 27 September 2026: the link answers
5 files
- Analyses.R, R, 445 lines
- Follow-up.R, R, 125 lines, 1 match
- data_curation.R, R, 250 lines
- LICENSE, License, 661 lines
- README.md, Text, 1 line
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://
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://
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/
url = {https://
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/
VL - 15
SP - RP109461
SN - 2050-084X
PB - eLife Sciences Publications, Ltd
DO - 10.7554/
UR - https://
LA - en
ER -
CSL-JSON
{
"id": "10.7554/
"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":
"volume": "15",
"page": "RP109461",
"DOI": "10.7554/
"PMID": "42454378",
"PMCID": "PMC13372311",
"ISSN": "2050-084X",
"publisher": "eLife Sciences Publications, Ltd",
"URL": "https://
"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/s41398-026-04045-y [code]
- Physical-Digital and social-nonsocial extracurricular engagement: differential effects on brain development and psychological outcomes in children.Journal: Translational psychiatryIn common: lavaan, tidyverse, structural MRI / diffusion, 5 references
- [3] doi:10.1038/s41597-026-07746-7
- A longitudinal resource for mapping interindividual variation in the aging connectome.Journal: Scientific dataIn common: structural MRI / diffusion, 5 references
- [4] doi:10.1002/hbm.70627 [code]
- Investigating the Contribution of Molecular-Enriched Functional Connectivity to Brain-Age Analysis.Journal: Human brain mappingIn common: structural MRI / diffusion, 5 references
- [5] doi:10.1038/s41467-026-71271-9 [code]
- Exposome-wide patterns predict brain health in aging.Journal: Nature communicationsIn common: 5 references
- [6] doi:10.1002/alz.71651
- Longitudinal effects of physical activity on sleep in association with hippocampal-amygdala subfield structure and functional connectivity in Alzheimer's disease.Journal: Alzheimer's & dementia : the journal of the Alzheimer's AssociationIn common: structural MRI / diffusion, 4 references
- [7] doi:10.1038/s41593-026-02289-x [code]
- Cerebellar aging is spatially heterogeneous and supports cognitive resilience in later life.Journal: Nature neuroscienceIn common: tidyverse, structural MRI / diffusion, cognitive, 3 references
- [8] doi:10.1162/imag.a.1306 [code]
- Beneficial effects of foreign language learning and aerobic exercise on dentate gyrus volume and mnemonic discrimination in healthy older adults: Results from a randomized controlled trial.Journal: Imaging neuroscience (Cambridge, Mass.)In common: tidyverse, 3 references
- [9] doi:10.1038/s41514-026-00439-w [code]
- Effects of a three-month exercise programme on cognition, mood and neurogenesis: the NeuroFit randomised controlled trial.Journal: npj agingIn common: tidyverse, 3 references
- [10] doi:10.1002/hbm.70608 [code]
- Transient Elevation and Subsequent Normalization of Brain Age Gap During the Postpartum Period.Journal: Human brain mappingIn common: structural MRI / diffusion, cognitive, 3 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, 3 scripts, and 1 match 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:7a2f62a21101b5ec…
Add the badge to its README
The badge links the code to this page. Copy one of these into the README of the paper's code: only you decide where it goes, and nothing is changed for you.
Markdown
[, paste the snippet at the top, then “Commit changes…” and, to review it first, “Create a new branch and start a pull request”. You open the pull request; OSCR asks for no permission.
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: questions and error reports about this paper and its code, from signed-in readers and its authors. It opens with sign-in.
Reproductions: reports from readers who ran the authors' code: what they reproduced, with which environment, commit and data. It opens with sign-in.
Activity: what happens around this paper: new versions of its record, its map's validation, discussions and reproductions. It opens with sign-in.
