Genetic landscape of adult executive function reveals a cell-type-specific developmental origin.
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–77 · score 0.69 · Stroop Ink, Stroop box, symbol digit, reaction, cognitive
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 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: 1 check, the latest on 28 September 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 Publishing Group},
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 Publishing Group
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 Publishing Group",
"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/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
- [2] doi:10.1038/s41562-026-02486-5 [code]
- Genome-wide association studies of infant and toddler temperament in European and multi-ancestry populations.Journal: Nature human behaviourIn common: psych, data.table, ggplot2, 1 other tool, genetics / omics, 8 references
- [3] doi:10.1038/s41467-026-76676-0 [code]
- Determinants of functional burden pleiotropy and gene dosage responses across human traits.Journal: Nature communicationsIn common: ggpubr, data.table, patchwork, 2 other tools, ukbiobank.ac.uk/enable-your-research/apply-for-access, genetics / omics, 4 references
- [4] doi:10.1038/s41467-026-73996-z [code]
- Genetic architecture of white matter microstructure captured by unsupervised deep representation learning of fractional anisotropy maps.Journal: Nature communicationsIn common: ggplot2, tidyverse, genetics / omics, 10 references
- [5] doi:10.1038/s41467-026-72164-7 [code]
- Multivariate genetic analysis reveals three distinct pathological dimensions in musculoskeletal disorders.Journal: Nature communicationsIn common: psych, ggpubr, data.table, 2 other tools, genetics / omics, 5 references
- [6] doi:10.1371/journal.pcbi.1014422 [code]
- Deciphering cell type-specific causal genetic effects on brain imaging-derived phenotypes and disorders with single-cell Mendelian randomization.Journal: PLoS computational biologyIn common: data.table, ggplot2, tidyverse, genetics / omics, 6 references
- [7] doi:10.1038/s41467-026-71682-8 [code]
- GWAS meta-analysis of cerebrospinal fluid Alzheimer's biomarkers reveals loci regulating lipids, brain volume and autophagy.Journal: Nature communicationsIn common: data.table, ggplot2, tidyverse, genetics / omics, 7 references
- [8] doi:10.1371/journal.pgen.1012170 [code]
- Genome wide association study meta-analysis of neuropathologic lesions of Alzheimer's disease and related dementias in a multi-site autopsy cohort.Journal: PLoS geneticsIn common: data.table, ggplot2, tidyverse, genetics / omics, 6 references
- [9] doi:10.1038/s41562-026-02476-7 [code]
- Genome-wide meta-analysis of quantitatively measured generalized anxiety symptoms in individuals of European ancestry.Journal: Nature human behaviourIn common: psych, data.table, tidyverse, genetics / omics, 6 references
- [10] doi:10.1186/s40168-026-02342-8 [code]
- Impacts of host genetics on gut microbiome composition in Alzheimer's disease.Journal: MicrobiomeIn common: ggpubr, data.table, ggplot2, 1 other tool, genetics / omics, 4 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:693848bb304577ef…
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.
