Genetic landscape of adult executive function reveals a cell-type-specific developmental origin.
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] § Results › Genetic correlations of TMA with cognitive traits and regional brain structures ↔ Phase1_Cognitive_Data_Clean/Aggregated_Cognitive_Data.Rmd, lines 35 to 77 · score 0.69 · Stroop Ink, Stroop box, symbol digit, reaction, cognitive · block
oscr:b:RRBPQWGZNKY7G-7· 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 Markdown · 183 lines · 6.9 KB · no license · 1 match
- ---
- title: "Aggregated Cognitive Data"
- author: "Shafiq"
- date: "29/04/2022"
- output: html_document
- ---
- ```{r}
- library(data.table)
- library(dplyr)
- library(Hmisc) # plotting hist for data frame
- library(tidyr)
- library(tableone)
- library(corrplot)
- library(ggraph)
- library(ggplot2)
- library(ggcharts)
- library(car)
- library(semPlot)
- library(psych)
- library(knitr)
- library(kableExtra)
- library(MVN)
- library(magrittr)
- library(factoextra)
- library(FactoMineR)
- library(heatmaply)
- library(pca3d)
- library(rgl)
- library(scatterplot3d)
- library(ggplot2)
- ```
- # Reading all aggregated cognitive test data separately
- ## All times will be in mili-seconds
- ```{r Reading all CT data}
- # Reaction time
- rt <- fread("C:/Gene_cognition_shafiq/02_Cleaning_Cognitive_data/Aggregated_Clean_Cognitive_Data/Reaction_Time_Aggregated_Feb2022.txt")
- rt <- rt[,c(1:4)]
- names(rt) <- c("barcode","rt_correct_sum","rtMean_resp_time", "device_name2")
- # Quiz
- qz <- fread("C:/Gene_cognition_shafiq/02_Cleaning_Cognitive_data/Aggregated_Clean_Cognitive_Data/Quiz_Aggregated_Feb2022.txt")
- # Working memory:
- wm <- fread("C:/Gene_cognition_shafiq/02_Cleaning_Cognitive_data/Aggregated_Clean_Cognitive_Data/Working_memory_Aggregated_Feb2022.txt")
- # Pairing 7
- p7 <- fread("C:/Gene_cognition_shafiq/02_Cleaning_Cognitive_data/Aggregated_Clean_Cognitive_Data/Pairing7_Aggregated_Feb2022.txt")
- # Stroop Box
- sb <- fread("C:/Gene_cognition_shafiq/02_Cleaning_Cognitive_data/Aggregated_Clean_Cognitive_Data/Stroop_Box_Aggregated_Feb2022.txt")
- names(sb) <- c("barcode","sb_correct_sum","sbMean_resp_time", "device_name2", "sb_correct_length","sb_correct_prop")
- # Stroop Ink
- si <- fread("C:/Gene_cognition_shafiq/02_Cleaning_Cognitive_data/Aggregated_Clean_Cognitive_Data/Stroop_Ink_Aggregated_Feb2022.txt")
- names(si) <- c("barcode","si_correct_sum","siMean_resp_time", "device_name2", "si_correct_length","si_correct_prop")
- # Matrices
- mx <- fread("C:/Gene_cognition_shafiq/02_Cleaning_Cognitive_data/Aggregated_Clean_Cognitive_Data/Matrices_Aggregated_Feb2022.txt")
- # Vocabulary
- vy <- fread("C:/Gene_cognition_shafiq/02_Cleaning_Cognitive_data/Aggregated_Clean_Cognitive_Data/Vocabulary_Aggregated_Feb2022.txt")
- # Trails: Whole data
- ts <- fread("C:/Gene_cognition_shafiq/02_Cleaning_Cognitive_data/Aggregated_Clean_Cognitive_Data/Trails_Aggregated_Feb2022.txt")
- colnames(ts)
- ts <- ts[,c(1:4,7,8,11,12)]
- names(ts) <- c("barcode","ts_total_guesses","tsMean_resp_time", "device_name2",
- "ts_num_total_guesses","ts_num_Mean_resp_time","ts_alpha_total_guesses","ts_alpha_Mean_resp_time")
- # Symbol Digit
- sd <- fread("C:/Gene_cognition_shafiq/02_Cleaning_Cognitive_data/Aggregated_Clean_Cognitive_Data/Symbol_Digit_Aggregated_Feb2022.txt")
- names(sd) <- c("barcode","sd_correct_sum","sdMean_resp_time", "device_name2", "sd_correct_length","sd_correct_prop")
- ```
- # Merging all data and save
- ```{r Merge all data}
- dfs <- Reduce(function(x,y) merge(x = x, y = y, by = c("barcode","device_name2"), all=TRUE),
- list(rt,qz,wm,p7,sb,si,mx,vy,ts,sd)) #21,169 participants
- dfs$barcode <- toupper(dfs$barcode)
- # one id is duplicated but missing information available in both rows; thereby aggregated
- duplicates <- dfs[(duplicated(dfs$barcode) | duplicated(dfs$barcode, fromLast=TRUE))]
- duplicates <- duplicates %>% replace(is.na(.), 0)
- duplicate_sample_merged <- duplicates %>% group_by(barcode, device_name2) %>% summarise_all(sum) #%>% relocate(ct_attempted, .after = last_col())
- dfs_without_duplicated_sample <- dfs[which(!dfs$barcode=="SP00300148173G",)] #21,167
- dfs <- merge(dfs_without_duplicated_sample,duplicate_sample_merged, all=TRUE) #21,168
- My_Theme = theme(
- axis.title.x = element_text(size = 14, color = "blue", face = "bold"),
- axis.text.x = element_text(size = 10,color = "black", face = "bold"),
- axis.title.y = element_text(size = 14, color = "blue", face = "bold"),
- axis.text.y = element_text(size = 10, color = "black", face = "bold"),
- axis.line = element_line(),
- panel.grid.major = element_blank(),
- panel.grid.minor = element_blank(),
- panel.border = element_blank(),
- panel.background = element_blank())
- ggplot(dfs, aes(x=device_name2)) +
- geom_bar(width=0.4, colour = "#1F3552", fill = "#4271AE")+
- ylab("Number of volunteers (n=21,168)") +
- xlab("Devices") + My_Theme
- fwrite(dfs, file="C:/Gene_cognition_shafiq/02_Cleaning_Cognitive_data/Aggregated_Clean_Cognitive_Data/All_Cogtests_Aggregated_Phase1.txt", col.names=TRUE, row.names = FALSE, sep="\t")
- ```
- # Main varriables from the tests
- ```{r}
- rel_vars <- dfs %>%
- select_if(grepl("barcode|correct_sum|Mean_resp|max_correct|guesses|vy_correct_prop", names(.)))
- rel_vars <- rel_vars[,c(1,3:5,8,10,12,13,14,19,21,22)]
- names(rel_vars) <- c("barcode","RT","QZ","WM",
- "PR","SB","SI","MX",
- "VY","TM_Num","TM_Alpha","SD")
- rel_vars <- rel_vars %>% mutate_if(is.integer,as.numeric)
- library(Hmisc)
- hist.data.frame(rel_vars[,-1])
- rel_vars$RT_l10 <- log10(rel_vars$RT)
- rel_vars$WM_l10 <- log10(rel_vars$WM)
- rel_vars$PR_l10 <- log10(rel_vars$PR)
- rel_vars$SB_l10 <- log10(rel_vars$SB)
- rel_vars$SI_l10 <- log10(rel_vars$SI)
- rel_vars$TM_Num_l10 <- log10(rel_vars$TM_Num)
- rel_vars$TM_Alpha_l10 <- log10(rel_vars$TM_Alpha)
- # Reversing scores for QZ, VY, WM, MX and SD tests to have same scoring
- rel_vars$QZ_rev <- max(rel_vars$QZ, na.rm = TRUE) - rel_vars$QZ
- rel_vars$VY_rev <- max(rel_vars$VY ,na.rm = TRUE) - rel_vars$VY
- rel_vars$WM_l10_rev <- max(rel_vars$WM_l10, na.rm = TRUE) - rel_vars$WM_l10
- rel_vars$MX_rev <- max(rel_vars$MX, na.rm = TRUE) - rel_vars$MX
- rel_vars$SD_rev <- max(rel_vars$SD, na.rm = TRUE) - rel_vars$SD
- cogt <- rel_vars[,c(1,20,22:24,21,13,15:19)]
- ```
- # This is for G-11 (combined all 11 tests)
- ```{r G-11}
- cogt_full <- na.omit(cogt)
- g11.pr <- prcomp(cogt_full[,-1], center = TRUE, scale = TRUE)
- g11_pcs <- as.data.frame(g11.pr$x)
- g11 <- as.data.frame(g11_pcs$PC1)
- names(g11) <- "g_11"
- get_eigenvalue(g11.pr)
- ```
- # G-6 including PR,TM tests, RT, SI, SB (6 tests)
- ```{r G-6, PR TM tests RT SI SB}
- g6.pr <- prcomp(cogt_full[,c(7:12)], center = TRUE, scale = TRUE)
- g6_pcs <- as.data.frame(g6.pr$x)
- g6 <- as.data.frame(g6_pcs$PC1)
- names(g6) <- "g_6"
- ```
- # G-4 including QZ, WM, MX and SD
- ```{r G-4, QZ WM MX SD}
- g4.pr <- prcomp(cogt_full[,c(2:5)], center = TRUE, scale = TRUE)
- g4_pcs <- as.data.frame(g4.pr$x)
- g4 <- as.data.frame(g4_pcs$PC1) # first PCs as general intelligence (explains 41.4% variance)
- names(g4) <- "g_4"
- ```
- # Combine PCs to CT tests data and make complete data frame
- ```{r, Combine all these PCs to dataset}
- cogt_full_pcs <- cbind(cogt_full,g11,g6,g4)
- main_cogs_pc <- merge(cogt, cogt_full_pcs, all = TRUE)
- fwrite(main_cogs_pc, file="C:/Gene_cognition_shafiq/02_Cleaning_Cognitive_data/Aggregated_Clean_Cognitive_Data/Main_cognitive_varriable_includingG.txt", col.names=TRUE, row.names = FALSE, sep="\t")
- ```
Aggregated_Cognitive_Data.Rmd at commit 9403d00, no license · at the source
Overview
- Department of Clinical Neurosciences, University of Cambridge,Cambridge, UK
- MRC Biostatistics Unit, University of Cambridge,Cambridge, UK
- Genos Glycoscience Research Laboratory,Zagreb, Croatia
- MRC Mitochondrial Biology Unit, University of Cambridge,Cambridge, UK
- Present Address: Cancer Research UK National Biomarker Centre, University of Manchester,Manchester, UK
- National Institute for Health and Care Research BioResource,Cambridge, UK
- Dept of Haematology, Cambridge University,Cambridge, UK
- Department of Medicine, University of Cambridge,Cambridge, UK
Abstract
Executive function is an essential cognitive domain for typical human behavior which is disrupted in neurodevelopmental and neurodegenerative disorders, but little is known about its underlying molecular basis. To address this, we perform genome-wide association studies (GWAS) using three different measures of executive function in UK Biobank (N = 84,238) and NIHR BioResource’s Genes and Cognition (N = 9932) study participants, followed by a meta-analysis. The trail-making alphanumeric (TMA) measure is the most heritable phenotype (h²=
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.
shafiqnoa/genes-and-cognition-phase-1
9403d008a29f7151fecbff398a89b4f15e38995a, 29 January 2024Availability: 2 checks, the latest on 28 October 2026: the link answers
- 28 October 2026: the link answers
- 28 September 2026: the link answers
12 files
- Phase1_Cognitive_Data_Cl
ean/ , R, 183 lines, 1 matchAggregated_Cognitive_Dat a.Rmd - Phase1_Cognitive_Data_Cl
ean/ , R, 109 linesMatrices.Rmd - Phase1_Cognitive_Data_Cl
ean/ , R, 145 linesPairing7.Rmd - Phase1_Cognitive_Data_Cl
ean/ , R, 154 linesQuiz.Rmd - Phase1_Cognitive_Data_Cl
ean/ , R, 137 linesReaction_Test.Rmd - Phase1_Cognitive_Data_Cl
ean/ , R, 138 linesStroop_Box.Rmd - Phase1_Cognitive_Data_Cl
ean/ , R, 119 linesStroop_Ink.Rmd - Phase1_Cognitive_Data_Cl
ean/ , R, 192 linesSymbol_Digits.Rmd - Phase1_Cognitive_Data_Cl
ean/ , R, 213 linesTrail_Making.Rmd - Phase1_Cognitive_Data_Cl
ean/ , R, 240 linesVocabulary.Rmd - Phase1_Cognitive_Data_Cl
ean/ , R, 137 linesWoking_Memory.Rmd - README.md, Text, 1 line
Code availability
All software used in this study is publicly available. The codes used for cognitive data cleaning are available on GitHub (https://
Reproduced under the paper's license (CC BY), from the paper cited above.
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;
- 11 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
Datasets cited
- ukbiobank.ac.uk/
enable-your-research/ , at UK Biobank; found in “Data availability”apply-for-access - zenodo:11066096, at Zenodo; found in “Data availability”
Data availability
GWAS summary statistics generated in this study have been deposited in the Zenodo database (doi: 10.5281/
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, 28 September 2026: the first record
Recorded: type, language, journal, volume, issue, pages, dates, 8 authors, 2 keywords, 11 MeSH terms, 2 funders, 70 references.
Cite
This paper
Rahman, M. S., Frkatović-Hodžić, A., van den Ameele, J., Hill, S. M., Kingston, N., Bradley, J. R., Tom, B. D. M., & Chinnery, P. F. (2026). Genetic landscape of adult executive function reveals a cell-type-specific developmental origin. Nature communications, 17(1), 5953. https://
BibTeX
@article{rahman2026genet
author = {Rahman, Md Shafiqur and Frkatović-Hodžić, Azra and van den Ameele, Jelle and Hill, Steven M. and Kingston, Nathalie and Bradley, John R. and Tom, Brian D. M. and Chinnery, Patrick F.},
title = {{Genetic landscape of adult executive function reveals a cell-type-specific developmental origin}},
journal = {Nature communications},
year = {2026},
month = may,
volume = {17},
number = {1},
pages = {5953},
publisher = {Nature Portfolio},
issn = {2041-1723},
doi = {10.1038/
url = {https://
pmid = {42069759},
pmcid = {PMC13342582}
}
RIS
TY - JOUR
AU - Rahman, Md Shafiqur
AU - Frkatović-Hodžić, Azra
AU - van den Ameele, Jelle
AU - Hill, Steven M.
AU - Kingston, Nathalie
AU - Bradley, John R.
AU - Tom, Brian D. M.
AU - Chinnery, Patrick F.
TI - Genetic landscape of adult executive function reveals a cell-type-specific developmental origin
T2 - Nature communications
J2 - Nat Commun
PY - 2026
DA - 2026/
VL - 17
IS - 1
SP - 5953
SN - 2041-1723
PB - Nature Portfolio
DO - 10.1038/
UR - https://
LA - en
ER -
CSL-JSON
{
"id": "10.1038/
"type": "article-journal",
"title": "Genetic landscape of adult executive function reveals a cell-type-specific developmental origin",
"container-title": "Nature communications",
"author": [
{
"family": "Rahman",
"given": "Md Shafiqur"
},
{
"family": "Frkatović-Hodžić",
"given": "Azra"
},
{
"family": "van den Ameele",
"given": "Jelle"
},
{
"family": "Hill",
"given": "Steven M."
},
{
"family": "Kingston",
"given": "Nathalie"
},
{
"family": "Bradley",
"given": "John R."
},
{
"family": "Tom",
"given": "Brian D. M."
},
{
"family": "Chinnery",
"given": "Patrick F."
}
],
"container-title-short":
"volume": "17",
"issue": "1",
"page": "5953",
"DOI": "10.1038/
"PMID": "42069759",
"PMCID": "PMC13342582",
"ISSN": "2041-1723",
"publisher": "Nature Portfolio",
"URL": "https://
"language": "en",
"issued": {
"date-parts": [
[
2026,
5,
2
]
]
}
}
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/s41591-024-02960-5 [code]
- Dynamics of cognitive variability with age and its genetic underpinning in NIHR BioResource Genes and Cognition cohort participants.Journal: Nature medicineIn common: psych, car, patchwork, 4 other tools, cognitive, genetics / omics, 13 references, 6 authors
- [2] doi:10.1038/s41591-024-03309-8 [code]
- Posthospitalization COVID-19 cognitive deficits at 1 year are global and associated with elevated brain injury markers and gray matter volume reduction.Journal: Nature medicineIn common: ggpubr, data.table, ggplot2, 1 other tool, 3 authors
- [3] doi:10.1038/s41467-024-52222-8 [code]
- Cognitive processing speed and accuracy are intrinsically different in genetic architecture and brain phenotypes.Journal: Nature communicationsIn common: psych, ggpubr, data.table, 2 other tools, genetics / omics, 9 references
- [4] doi:10.1038/s41562-025-02145-1 [code]
- Genome-wide association meta-analysis of age at onset of walking in over 70,000 infants of European ancestry.Journal: Nature human behaviourIn common: psych, ggpubr, data.table, 2 other tools, genetics / omics, 10 references
- [5] doi:10.1038/s43587-025-01018-6 [code]
- Dissecting the genetic and proteomic risk factors for delirium.Journal: Nature agingIn common: car, patchwork, ggpubr, 3 other tools, ukbiobank.ac.uk/enable-your-research/apply-for-access, genetics / omics, 5 references
- [6] doi:10.1038/s41588-024-01933-1 [code]
- Multivariate genomic analysis of 5 million people elucidates the genetic architecture of shared components of the metabolic syndrome.Journal: Nature geneticsIn common: psych, patchwork, ggpubr, 3 other tools, genetics / omics, 7 references
- [7] doi:10.3390/genes13010122 [code]
- Thirteen Independent Genetic Loci Associated with Preserved Processing Speed in a Study of Cognitive Resilience in 330,097 Individuals in the UK Biobank.Journal: GenesIn common: data.table, ggplot2, tidyverse, genetics / omics, 10 references
- [8] doi:10.1038/s41467-025-64904-y [code]
- Genetic underpinnings and causal effects of brain structure and function on chronic pain intensity.Journal: Nature communicationsIn common: psych, car, data.table, 2 other tools, ukbiobank.ac.uk/enable-your-research/apply-for-access, genetics / omics, 4 references
- [9] doi:10.1016/j.cell.2024.12.002 [code]
- Trans-ancestry genome-wide study of depression identifies 697 associations implicating cell types and pharmacotherapies.Journal: CellIn common: psych, patchwork, ggpubr, 3 other tools, genetics / omics, 6 references
- [10] doi:10.1038/s41467-026-73428-y [code]
- Regional heterogeneity in phenotypic and genetic associations between bone and brain in humans.Journal: Nature communicationsIn common: psych, ggpubr, data.table, 2 other tools, genetics / omics, 7 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, 11 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:f2804d703991b42f…
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.1038/s41467-026-71738-9)
<!-- oscr-badge:end -->reStructuredText
.. oscr-badge:start
.. image:: https://openscicode.org/badge/doi/10.1038/s41467-026-71738-9.svg
:target: https://openscicode.org/badge/doi/10.1038/s41467-026-71738-9
:alt: OSCR
.. oscr-badge:endHTML
<!-- oscr-badge:start -->
<a href="https://openscicode.org/badge/doi/10.1038/s41467-026-71738-9"><img src="https://openscicode.org/badge/doi/10.1038/s41467-026-71738-9.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.
