The effect of physical activity on brain structure and cognitive function in the population-based cohort of LIFE-Adult Study.
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] § 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
- #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/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 agingIn 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 mappingIn 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 psychiatryIn 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 reportsIn 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 geriatricsIn 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 scienceIn 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 epidemiologyIn 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 neuroscienceIn 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.
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:a2e1a496f34d8bf6…
Add the badge to the code's README
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 -->
[](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:endHTML
<!-- 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.
