OSCR

Language laterality and cognitive skills: does anatomy matter?

Code ↔ Paper

8 matches 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.

The 8 matches · 2 of them tie a paragraph to a whole file, not to given lines: weak matches, whose lines are not tinted
  1. [1] § Methods › Cognitive battery ↔ 02_cognitive_FA_figures.R.R, lines 72–158 · score 0.92 · Corsi block, labyrinth navigation, topographic orientation, mental rotation, Arithmetic knowledge, Raven
  2. [2] § Methods › Cognitive battery ↔ 01_cognitive_FA_analyses.R.R, lines 41–107 · score 0.86 · Corsi block, topographic orientation, mental rotation, term memory, Raven, labyrinth
  3. [3] § Results › Principal components of cognitive scores ↔ 02_cognitive_FA_figures.R.R, lines 72–158 · score 0.86 · labyrinth navigation, mental rotation, complex mental, arithmetical facts, general cognitive function, visuospatial processing
  4. [4] § Methods › Diffusion Magnetic Resonance Imaging analysis ↔ GenerateFAvaluesCC.sh, the whole file · a weak match · score 0.74 · Binary masks, FA maps, FSL, streamlines, BCC, diffusion
  5. [5] § Methods › Diffusion Magnetic Resonance Imaging analysis ↔ GenerateFAvaluesAF.sh, the whole file · a weak match · score 0.72 · Binary masks, FA maps, FSL, streamlines, diffusion, volume
  6. [6] § Results › Principal components of cognitive scores ↔ 01_cognitive_FA_analyses.R.R, lines 41–107 · score 0.69 · mental rotation, complex mental, arithmetical facts, Raven, labyrinth, matrices
  7. [7] § Results › Typical and atypical language lateralisation ↔ 02_cognitive_FA_figures.R.R, lines 477–550 · score 0.60 · GCC PC2, SCC PC1, PC scores, R2, FDR, regression
  8. [8] § Methods › Statistical analyses ↔ 02_cognitive_FA_figures.R.R, lines 283–349 · score 0.53 · strongly atypical, PC score, fitted, splenium, genu, models

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 · 619 lines · 18 KB · MIT · 4 matches

  1. ###############################################
  2. ## 02_cognitive_FA_figures.R
  3. ## Figures 2–4 and supplementary figure
  4. ###############################################
  5. ## ---------------------------
  6. ## Packages
  7. ## ---------------------------
  8. fig_pkgs <- c("ggplot2", "patchwork", "ggstatsplot", "MASS", "ggpubr")
  9. for (p in fig_pkgs) {
  10. if (!requireNamespace(p, quietly = TRUE)) {
  11. install.packages(p)
  12. }
  13. library(p, character.only = TRUE)
  14. }
  15. ## If needed:
  16. ## source("01_cognitive_FA_analyses.R")
  17. ## =====================================================
  18. ## FIGURE 2 – PCA scree plot + loadings
  19. ## =====================================================
  20. loadings <- results_cognitive_fancy_PCA$pc$rotation
  21. eigenvalues <- results_cognitive_fancy_PCA$pc$sdev^2
  22. explained_variance <- eigenvalues / sum(eigenvalues) * 100
  23. cumulative_variance <- cumsum(explained_variance)
  24. scree_data <- data.frame(
  25. PC = 1:length(eigenvalues),
  26. ExplainedVariance = explained_variance,
  27. CumulativeVariance = cumulative_variance
  28. )
  29. scree_plot <- ggplot(scree_data, aes(x = PC)) +
  30. geom_bar(
  31. aes(y = ExplainedVariance),
  32. stat = "identity",
  33. fill = "grey",
  34. color = "black"
  35. ) +
  36. geom_line(
  37. aes(y = CumulativeVariance, group = 1),
  38. color = "red",
  39. size = 1
  40. ) +
  41. geom_point(
  42. aes(y = CumulativeVariance),
  43. color = "red",
  44. size = 2
  45. ) +
  46. labs(
  47. x = "PCs",
  48. y = "Explained Variance (%)",
  49. title = "Explained Variance by PCs"
  50. ) +
  51. scale_x_continuous(
  52. breaks = seq(1, length(scree_data$PC), by = 1),
  53. labels = as.character(seq(1, length(scree_data$PC), by = 1))
  54. ) +
  55. theme_minimal() +
  56. theme(
  57. panel.grid = element_blank(),
  58. axis.line = element_line(color = "black"),
  59. axis.ticks = element_line(color = "black"),
  60. text = element_text(size = 14),
  61. plot.title = element_text(hjust = 0.5, face = "bold"),
  62. axis.title.y = element_text(margin = margin(r = 10))
  63. )
  64. loadings_df <- as.data.frame(loadings)
  65. colnames(loadings_df) <- paste0("PC", 1:ncol(loadings_df))
  66. loadings_df$Variable <- rownames(loadings_df)
  67. loadings_long <- tidyr::pivot_longer(
  68. loadings_df,
  69. cols = dplyr::starts_with("PC"),
  70. names_to = "PC",
  71. values_to = "Loading"
  72. )
  73. selected_pcs <- c("PC1", "PC2", "PC3")
  74. loadings_long_filtered <- loadings_long %>%
  75. dplyr::filter(PC %in% selected_pcs)
  76. rename_labels <- c(
  77. "Vocab_extent" = "Vocabulary Range",
  78. "Verbal_fluency_nouns_per_item" = "Verbal Fluency Task",
  79. "Topographic_orientation_labyrinth_score" = "Labyrinth Navigation",
  80. "Non_verbal_reasoning_Ravens_matrices" = "Raven’s Matrices",
  81. "Mental_rotation" = "Mental Rotation Test",
  82. "Corsi_Block_test_visuospatial_span" = "Corsi Block Test",
  83. "Complex_mental_calculation_score" = "Complex Calculations",
  84. "Auditory_verbal_learning_recalled_words" = "Delayed Recall (Words)",
  85. "Arithmetical_facts_score" = "Arithmetic Knowledge"
  86. )
  87. loadings_long_filtered <- loadings_long_filtered %>%
  88. dplyr::mutate(Variable = rename_labels[Variable])
  89. desired_order <- c(
  90. "Vocabulary Range",
  91. "Verbal Fluency Task",
  92. "Delayed Recall (Words)",
  93. "Mental Rotation Test",
  94. "Corsi Block Test",
  95. "Labyrinth Navigation",
  96. "Raven’s Matrices",
  97. "Arithmetic Knowledge",
  98. "Complex Calculations"
  99. )
  100. loadings_long_filtered <- loadings_long_filtered %>%
  101. dplyr::mutate(Variable = factor(Variable, levels = rev(desired_order))) %>%
  102. dplyr::mutate(
  103. PC = factor(
  104. PC,
  105. levels = c("PC1", "PC2", "PC3"),
  106. labels = c(
  107. "PC1: Generall Cognitive Function",
  108. "PC2: Visuospatial Processing and Memory",
  109. "PC3: Mathematics"
  110. )
  111. )
  112. )
  113. loadings_plot <- ggplot(
  114. loadings_long_filtered,
  115. aes(x = Loading, y = Variable, fill = Loading > 0)
  116. ) +
  117. geom_bar(stat = "identity", color = "black", width = 0.8) +
  118. facet_wrap(~PC, scales = "free_x", ncol = 3) +
  119. scale_fill_manual(values = c("TRUE" = "black", "FALSE" = "grey")) +
  120. labs(
  121. x = "Loadings",
  122. y = "",
  123. title = "Loadings for Selected Principal Components"
  124. ) +
  125. theme_minimal() +
  126. theme(
  127. panel.grid = element_blank(),
  128. axis.line.y = element_line(color = "black"),
  129. axis.line.x = element_line(color = "black"),
  130. axis.ticks = element_line(color = "black"),
  131. axis.text.y = element_text(size = 10),
  132. axis.text.x = element_text(size = 10),
  133. strip.text = element_text(size = 14, face = "bold"),
  134. plot.title = element_text(hjust = 0.5, size = 16, face = "bold"),
  135. legend.position = "none"
  136. )
  137. combined_plot_F2 <- (scree_plot | loadings_plot) +
  138. patchwork::plot_layout(widths = c(0.75, 2)) +
  139. patchwork::plot_annotation(tag_levels = "A")
  140. combined_plot_F2
  141. ## =====================================================
  142. ## FIGURE 4 – Cross-dominance (PC2, BCC_3)
  143. ## =====================================================
  144. PC2_crossLat <- long_data_PC_CC_FA_small_parts %>%
  145. dplyr::filter(CC_part == "BCC_3", Principal_Component == "PC2")
  146. lm_model <- lm(Value ~ Sexe + Edinburg.Score + age_IRM_Anat, data = PC2_crossLat)
  147. PC2_crossLat$residuals <- lm_model$residuals
  148. lm_crosslat <- lm(residuals ~ crossed_dominance, data = PC2_crossLat)
  149. anova(lm_crosslat)
  150. ## Posthoc grouping variable for Figure 4B
  151. PC2_crossLat$posthoc_cross <- ifelse(
  152. PC2_crossLat$crossed_dominance == "consistent",
  153. PC2_crossLat$laterality_frontal_0.1,
  154. ifelse(
  155. PC2_crossLat$crossed_dominance == "weak_lat" &
  156. PC2_crossLat$laterality_frontal_0.1 != "biLat",
  157. PC2_crossLat$laterality_frontal_0.1,
  158. ifelse(
  159. PC2_crossLat$crossed_dominance == "weak_lat" &
  160. PC2_crossLat$laterality_frontal_0.1 == "biLat",
  161. PC2_crossLat$laterality_temporal_0.1,
  162. ifelse(
  163. PC2_crossLat$crossed_dominance == "crossed_dominance",
  164. "crossed",
  165. NA
  166. )
  167. )
  168. )
  169. )
  170. lm_crosslat <- lm(residuals ~ posthoc_cross, data = PC2_crossLat)
  171. anova(lm_crosslat)
  172. filtered_data <- PC2_crossLat %>%
  173. dplyr::group_by(posthoc_cross) %>%
  174. dplyr::filter(dplyr::n() >= 3) %>%
  175. dplyr::ungroup()
  176. plot_a <- ggstatsplot::ggbetweenstats(
  177. data = PC2_crossLat,
  178. x = grouped_dominance,
  179. y = residuals,
  180. pairwise.display = "all",
  181. type = "parametric",
  182. p.adjust.method = "fdr",
  183. pairwise.comparisons.label = "p.signif",
  184. ggtheme = ggplot2::theme_classic()
  185. ) +
  186. labs(
  187. x = NULL,
  188. y = "Residuals",
  189. title = "Spatial Attention Skills by Cross Laterality Groups"
  190. ) +
  191. theme(
  192. text = element_text(size = 14, face = "bold"),
  193. axis.title.x = element_text(margin = margin(t = 10)),
  194. axis.title.y = element_text(margin = margin(r = 10)),
  195. plot.title = element_text(hjust = 0.5)
  196. ) +
  197. scale_x_discrete(labels = c(
  198. "consistent" = "Consistently lateralised",
  199. "crossed_dominance" = "Crossed dominance"
  200. )) +
  201. scale_fill_gradient() +
  202. annotate(
  203. "text",
  204. x = 2.5,
  205. y = max(PC2_crossLat$Value) * 0.95,
  206. label = "ANCOVA pFDR = 0.013",
  207. size = 5,
  208. fontface = "bold",
  209. color = "red",
  210. hjust = 1
  211. )
  212. plot_b <- ggstatsplot::ggbetweenstats(
  213. data = filtered_data,
  214. x = posthoc_cross,
  215. y = residuals,
  216. pairwise.display = "all",
  217. type = "parametric",
  218. p.adjust.method = "fdr",
  219. pairwise.comparisons.label = "p.signif",
  220. ggtheme = ggplot2::theme_classic()
  221. ) +
  222. labs(
  223. x = NULL,
  224. y = "Residuals",
  225. title = "Post-Hoc Analysis"
  226. ) +
  227. theme(
  228. text = element_text(size = 14, face = "bold"),
  229. axis.title.x = element_text(margin = margin(t = 10)),
  230. axis.title.y = element_text(margin = margin(r = 10)),
  231. plot.title = element_text(hjust = 0.5)
  232. ) +
  233. scale_x_discrete(labels = c(
  234. "crossed" = "Crossed dominance",
  235. "leftLat" = "Left-leaning",
  236. "rightLat" = "Right-leaning"
  237. )) +
  238. scale_fill_gradient()
  239. combined_plot_F4 <- (plot_a | plot_b) +
  240. patchwork::plot_annotation(tag_levels = "A") +
  241. theme(plot.tag = element_text(size = 14, face = "bold"))
  242. combined_plot_F4
  243. ggplot2::ggsave(
  244. filename = "/Volumes/LaCie/iMac/Documents/Liverpool/Thesis/Official_Writing/Chapter_9_(cognitive)/Paper_draft2/Preprint/Figure4.tiff",
  245. plot = combined_plot_F4,
  246. width = 378,
  247. height = 193,
  248. units = "mm",
  249. dpi = 600,
  250. compression = "lzw"
  251. )
  252. ## =====================================================
  253. ## FIGURE 3 – Regression plots (Splenium PC1, Genu PC2)
  254. ## =====================================================
  255. # Splenium: SCC_3, PC1, Strong-Atypical
  256. Regression_SCC_PC1 <- long_data_PC_CC_FA_small_parts %>%
  257. dplyr::filter(
  258. CC_part == "SCC_3",
  259. Principal_Component == "PC1",
  260. laterality == "Strong-Atypical"
  261. )
  262. lm_model_a <- lm(Value ~ Sexe + age_IRM_Anat, data = Regression_SCC_PC1)
  263. Regression_SCC_PC1$residuals_a <- residuals(lm_model_a)
  264. lm_model_b <- lm(Value ~ Sexe + age_IRM_Anat + Edinburg.Score, data = Regression_SCC_PC1)
  265. Regression_SCC_PC1$residuals_b <- residuals(lm_model_b)
  266. lm_model_c <- lm(Value ~ mean, data = Regression_SCC_PC1)
  267. new_data <- data.frame(
  268. mean = seq(min(Regression_SCC_PC1$mean), max(Regression_SCC_PC1$mean), length.out = nrow(Regression_SCC_PC1)),
  269. Sexe = "F",
  270. age_IRM_Anat = mean(Regression_SCC_PC1$age_IRM_Anat, na.rm = TRUE),
  271. Edinburg.Score = mean(Regression_SCC_PC1$Edinburg.Score, na.rm = TRUE)
  272. )
  273. predictions_a <- predict(lm_model_a, newdata = new_data, interval = "confidence")
  274. new_data$predicted_a <- predictions_a[, "fit"]
  275. new_data$lower_ci_a <- predictions_a[, "lwr"]
  276. new_data$upper_ci_a <- predictions_a[, "upr"]
  277. predictions_b <- predict(lm_model_b, newdata = new_data, interval = "confidence")
  278. new_data$predicted_b <- predictions_b[, "fit"]
  279. new_data$lower_ci_b <- predictions_b[, "lwr"]
  280. new_data$upper_ci_b <- predictions_b[, "upr"]
  281. plot_aS <- ggplot(Regression_SCC_PC1, aes(x = mean, y = residuals_a)) +
  282. geom_point(size = 3, colour = "darkblue") +
  283. stat_smooth(
  284. method = "lm",
  285. formula = y ~ x,
  286. se = TRUE,
  287. colour = "red",
  288. fill = "pink",
  289. linetype = "dashed",
  290. size = 1
  291. ) +
  292. labs(
  293. title = "Mean FA in Splenium vs General Cognitive Function\n(Adjusted for Age and Sex)",
  294. x = "Mean FA (Splenium)",
  295. y = "Working Memory PC Score"
  296. ) +
  297. annotate(
  298. "text",
  299. x = 0.64,
  300. y = -1,
  301. label = paste0("R² = -0.93", "\nP = 0.002", "\npFDR = 0.035"),
  302. size = 5,
  303. hjust = 1,
  304. colour = "black"
  305. ) +
  306. theme_classic() +
  307. theme(
  308. text = element_text(size = 14),
  309. plot.title = element_text(hjust = 0.5, face = "bold")
  310. )
  311. plot_bS <- ggplot(Regression_SCC_PC1, aes(x = mean, y = residuals_b)) +
  312. geom_point(size = 3, colour = "darkblue") +
  313. stat_smooth(
  314. method = "lm",
  315. formula = y ~ x,
  316. se = TRUE,
  317. colour = "red",
  318. fill = "pink",
  319. linetype = "dashed",
  320. size = 1
  321. ) +
  322. labs(
  323. title = "Mean FA in Splenium vs General Cognitive Function\n(Adjusted for Age, Sex and Handedness)",
  324. x = "Mean FA (Splenium)",
  325. y = "Working Memory PC Score"
  326. ) +
  327. annotate(
  328. "text",
  329. x = 0.64,
  330. y = -1,
  331. label = paste0("R² = -0.94", "\nP = 0.004", "\npFDR = 0.062"),
  332. size = 5,
  333. hjust = 1,
  334. colour = "black"
  335. ) +
  336. theme_classic() +
  337. theme(
  338. text = element_text(size = 14),
  339. plot.title = element_text(hjust = 0.5, face = "bold")
  340. )
  341. plot_cS <- ggplot(Regression_SCC_PC1, aes(x = mean, y = Value)) +
  342. geom_point(size = 3, colour = "darkblue") +
  343. stat_smooth(
  344. method = "lm",
  345. formula = y ~ x,
  346. se = TRUE,
  347. colour = "red",
  348. fill = "pink",
  349. linetype = "dashed",
  350. size = 1
  351. ) +
  352. labs(
  353. title = "Mean FA in Splenium vs General Cognitive Function\n(No Covariates)",
  354. x = "Mean FA (Splenium)",
  355. y = "Working Memory PC Score"
  356. ) +
  357. annotate(
  358. "text",
  359. x = 0.64,
  360. y = -1,
  361. label = paste0("R² = -0.36", "\nP = 0.0529", "\npFDR = 0.69"),
  362. size = 5,
  363. hjust = 1,
  364. colour = "black"
  365. ) +
  366. theme_classic() +
  367. theme(
  368. text = element_text(size = 14),
  369. plot.title = element_text(hjust = 0.5, face = "bold")
  370. )
  371. # Genu: GCC_3, PC2, Strong-Atypical
  372. Regression_GCC_PC2 <- long_data_PC_CC_FA_small_parts %>%
  373. dplyr::filter(
  374. CC_part == "GCC_3",
  375. Principal_Component == "PC2",
  376. laterality == "Strong-Atypical"
  377. )
  378. lm_model_a <- lm(Value ~ Sexe + age_IRM_Anat, data = Regression_GCC_PC2)
  379. Regression_GCC_PC2$residuals_a <- residuals(lm_model_a)
  380. lm_model_b <- lm(Value ~ Sexe + age_IRM_Anat + Edinburg.Score, data = Regression_GCC_PC2)
  381. Regression_GCC_PC2$residuals_b <- residuals(lm_model_b)
  382. lm_model_c <- lm(Value ~ mean, data = Regression_GCC_PC2)
  383. new_data <- data.frame(
  384. mean = seq(min(Regression_GCC_PC2$mean), max(Regression_GCC_PC2$mean), length.out = nrow(Regression_GCC_PC2)),
  385. Sexe = "F",
  386. age_IRM_Anat = mean(Regression_GCC_PC2$age_IRM_Anat, na.rm = TRUE),
  387. Edinburg.Score = mean(Regression_GCC_PC2$Edinburg.Score, na.rm = TRUE)
  388. )
  389. predictions_a <- predict(lm_model_a, newdata = new_data, interval = "confidence")
  390. new_data$predicted_a <- predictions_a[, "fit"]
  391. new_data$lower_ci_a <- predictions_a[, "lwr"]
  392. new_data$upper_ci_a <- predictions_a[, "upr"]
  393. predictions_b <- predict(lm_model_b, newdata = new_data, interval = "confidence")
  394. new_data$predicted_b <- predictions_b[, "fit"]
  395. new_data$lower_ci_b <- predictions_b[, "lwr"]
  396. new_data$upper_ci_b <- predictions_b[, "upr"]
  397. plot_aG <- ggplot(Regression_GCC_PC2, aes(x = mean, y = residuals_a)) +
  398. geom_point(size = 3, colour = "darkblue") +
  399. stat_smooth(
  400. method = "lm",
  401. formula = y ~ x,
  402. se = TRUE,
  403. colour = "red",
  404. fill = "pink",
  405. linetype = "dashed",
  406. size = 1
  407. ) +
  408. labs(
  409. title = "Mean FA in Genu vs Spatial Attention\n(Adjusted for Age and Sex)",
  410. x = "Mean FA (Genu)",
  411. y = "Spatial Attention PC Score"
  412. ) +
  413. annotate(
  414. "text",
  415. x = max(Regression_GCC_PC2$mean) * 0.99,
  416. y = -1,
  417. label = paste0("R² = 0.87", "\nP = 0.0009", "\npFDR = 0.04"),
  418. size = 5,
  419. hjust = 1,
  420. colour = "black"
  421. ) +
  422. theme_classic() +
  423. theme(
  424. text = element_text(size = 14),
  425. plot.title = element_text(hjust = 0.5, face = "bold")
  426. )
  427. plot_bG <- ggplot(Regression_GCC_PC2, aes(x = mean, y = residuals_b)) +
  428. geom_point(size = 3, colour = "darkblue") +
  429. stat_smooth(
  430. method = "lm",
  431. formula = y ~ x,
  432. se = TRUE,
  433. colour = "red",
  434. fill = "pink",
  435. linetype = "dashed",
  436. size = 1
  437. ) +
  438. labs(
  439. title = "Mean FA in Genu vs Spatial Attention\n(Adjusted for Age, Sex, Handedness)",
  440. x = "Mean FA (Genu)",
  441. y = "Spatial Attention PC Score)"
  442. ) +
  443. annotate(
  444. "text",
  445. x = max(Regression_GCC_PC2$mean) * 0.99,
  446. y = -1,
  447. label = paste0("R² = 0.86", "\nP = 0.006", "\npFDR = 0.06"),
  448. size = 5,
  449. hjust = 1,
  450. colour = "black"
  451. ) +
  452. theme_classic() +
  453. theme(
  454. text = element_text(size = 14),
  455. plot.title = element_text(hjust = 0.5, face = "bold")
  456. )
  457. plot_cG <- ggplot(Regression_GCC_PC2, aes(x = mean, y = Value)) +
  458. geom_point(size = 3, colour = "darkblue") +
  459. stat_smooth(
  460. method = "lm",
  461. formula = y ~ x,
  462. se = TRUE,
  463. colour = "red",
  464. fill = "pink",
  465. linetype = "dashed",
  466. size = 1
  467. ) +
  468. labs(
  469. title = "Mean FA in Genu vs Spatial Attention\n(No Covariates)",
  470. x = "Mean FA (Genu)",
  471. y = "Spatial Attention PC Score"
  472. ) +
  473. annotate(
  474. "text",
  475. x = max(Regression_GCC_PC2$mean) * 0.99,
  476. y = -1,
  477. label = paste0("R² = 0.54", "\nP = 0.01", "\npFDR = 0.438"),
  478. size = 5,
  479. hjust = 1,
  480. colour = "black"
  481. ) +
  482. theme_classic() +
  483. theme(
  484. text = element_text(size = 14),
  485. plot.title = element_text(hjust = 0.5, face = "bold")
  486. )
  487. combined_plot_F3 <- (plot_aS | plot_bS) /
  488. (plot_aG | plot_bG) +
  489. patchwork::plot_annotation(tag_levels = "A")
  490. combined_plot_F3
  491. ## =====================================================
  492. ## SUPPLEMENTARY FIGURE – regression plots by laterality
  493. ## =====================================================
  494. Regression_SCC_PC1_all <- long_data_PC_CC_FA_small_parts %>%
  495. dplyr::filter(CC_part == "SCC_3", Principal_Component == "PC1")
  496. compute_residuals_by_group <- function(data, formula) {
  497. data %>%
  498. dplyr::group_by(laterality) %>%
  499. dplyr::mutate(residuals = residuals(lm(formula, data = dplyr::cur_data_all()))) %>%
  500. dplyr::ungroup()
  501. }
  502. data_age_sex <- compute_residuals_by_group(
  503. Regression_SCC_PC1_all,
  504. Value ~ Sexe + age_IRM_Anat
  505. )
  506. plot_a_PC1_lat <- ggplot(data_age_sex, aes(x = mean, y = residuals, colour = laterality)) +
  507. geom_point(size = 3, alpha = 0.7) +
  508. geom_smooth(
  509. method = "lm",
  510. aes(fill = laterality),
  511. alpha = 0.2,
  512. se = TRUE
  513. ) +
  514. scale_color_brewer(palette = "Set1", name = "Laterality Group") +
  515. scale_fill_brewer(palette = "Set1", name = "Laterality Group") +
  516. labs(
  517. title = "Working Memory vs Mean FA in Splenium\n (Age, Sex)",
  518. x = "Mean FA (Splenium)",
  519. y = "Residuals (Working Memory PC)"
  520. ) +
  521. theme_classic() +
  522. theme(
  523. text = element_text(size = 14),
  524. plot.title = element_text(hjust = 0.5, face = "bold"),
  525. legend.position = "top"
  526. )
  527. Regression_GCC_PC2_all <- long_data_PC_CC_FA_small_parts %>%
  528. dplyr::filter(CC_part == "GCC_3", Principal_Component == "PC2")
  529. data_age_sex_GCC <- Regression_GCC_PC2_all %>%
  530. dplyr::group_by(laterality) %>%
  531. dplyr::mutate(residuals = residuals(lm(Value ~ Sexe + age_IRM_Anat, data = dplyr::cur_data_all()))) %>%
  532. dplyr::ungroup()
  533. plot_a_PC2_lat <- ggplot(data_age_sex_GCC, aes(x = mean, y = residuals, colour = laterality)) +
  534. geom_point(size = 3, alpha = 0.7) +
  535. geom_smooth(
  536. method = "lm",
  537. aes(fill = laterality),
  538. alpha = 0.2,
  539. se = TRUE
  540. ) +
  541. scale_color_brewer(palette = "Set1", name = "Laterality Group") +
  542. scale_fill_brewer(palette = "Set1", name = "Laterality Group") +
  543. labs(
  544. title = "Spatial Attention vs Mean FA in Genu\n(Age, Sex)",
  545. x = "Mean FA (Genu)",
  546. y = "Residuals (Spatial Attention PC)"
  547. ) +
  548. theme_classic() +
  549. theme(
  550. text = element_text(size = 14),
  551. plot.title = element_text(hjust = 0.5, face = "bold"),
  552. legend.position = "top"
  553. )
  554. combined_plot_supp <- (plot_a_PC1_lat | plot_a_PC2_lat) +
  555. patchwork::plot_annotation(tag_levels = "A")
  556. combined_plot_supp

02_cognitive_FA_figures.R.R at commit 0a03324, under MIT · at the source

Overview

  1. The BRAIN Lab, Department of Pharmacology and Therapeutics, Institute of Systems, Molecular and Integrative Biology, University of Liverpool, William Henry Duncan Building, 6 West Derby Street, Liverpool, L7 8TX, United Kingdom
  2. Groupe d'Imagerie Neurofonctionnelle, Institut des Maladies Neurodégénératives, UMR5293, CNRS - CEA – Université de Bordeaux, Bordeaux F-33000, France
  3. Department of Psychological Sciences, Institute of Population Health, University of Liverpool, Eleanor Rathbone Building, Bedford Street South, Liverpool, L69 7ZA, United Kingdom
  4. Sherbrooke Connectivity and Imaging Lab (SCIL), Faculté des Sciences, Université de Sherbrooke, 2500 Bd. de l’Université, Sherbrooke, J1K2R1, QC, Canada
  5. IRP OpTeam, Neurodegeneratives Diseases Institute, UMR 5293, Team 5 - CEA - CNRS - Université de Bordeaux, France and Université de Sherbrooke, Canada
Journal: Cerebral cortex (New York, N.Y. : 1991), volume 36, issue 6, article bhag067
Dates: received 14 December 2025; accepted 4 May 2026; published online 25 June 2026; in print June 2026
Type: Research article · Language: English
License: CC BY
Identifiers: DOI 10.1093/cercor/bhag067 · PMID 42348842 · PMCID PMC13298645 · OpenAlex W4414045202
Open access: hybrid, a free copy (OpenAlex)
Status: code verified
Categories: structural MRI / diffusion (modality), human (organism), cognitive (subfield)
Methods: Smoothing, state filtering, decompositions, Statistics, fMRI & imaging
Keywords: arcuate fasciculus, cognitive function, corpus callosum, diffusion MRI, language lateralisation, white matter
MeSH: Brain*, Cognition*, Functional Laterality*, Language*, White Matter*, Adult, Anisotropy, Attention, Brain Mapping, Diffusion Magnetic Resonance Imaging, Female, Humans, Magnetic Resonance Imaging, Male, Middle Aged, Neuropsychological Tests, Young Adult (* major topic)
Topic: Hemispheric Asymmetry in Neuroscience (Cognitive Neuroscience, Neuroscience), according to OpenAlex
Funding: Ieva Andrulyte-BBSRC DTP training (BB/T008695/1); Biotechnology and Biological Sciences Research Council (BB/T008695/1)
Citations: not cited yet (Europe PMC); 99 references in the paper

Abstract

Brain anatomy, particularly white matter microstructure, is thought to play a critical role in the relationships between cognitive function and language lateralisation. This study investigates whether white matter microstructural parameters of the arcuate fasciculus and corpus callosum is associated with cognitive performance across distinct language lateralisation groups. Neuroimaging and cognitive data from 279 healthy adults were sourced from the BIL&GIN database. Participants completed a sentence production functional magnetic resonance imaging (fMRI) task, diffusion MRI, and cognitive tasks assessing verbal, visuospatial, and arithmetic skills. Significant positive associations were observed in strongly atypical individuals between fractional anisotropy in the splenium and working memory (R2 = 0.96, pFDR = 0.042) and between fractional anisotropy (FA) in the genu and visuospatial attention (R2 = 0.92, pFDR = 0.042). ANCOVA revealed that cross-dominant individuals had significantly lower visuospatial attention scores compared to consistently lateralized individuals (pFDR = 0.02). These findings challenge the notion that atypical lateralisation is inherently maladaptive and suggest that white matter pathways may serve as an alternative mechanism for supporting cognitive function in individuals with rightward language dominance. Furthermore, the results highlight the cognitive disadvantages of crossed dominance, implicating disrupted interhemispheric communication as a potential underlying mechanism.

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 8 matches between paragraphs and lines of code.

andrulyte/language-laterality-cognition

License: MIT
State: the link answers, verified on 27 September 2026
Evidence: files inventoried
Commit: 0a03324e928a0f1d66134e773c48bf566c5926db, 14 December 2025
Languages: R (3), Shell (3)
Size: 8 files, 6 scripts
Software Heritage: not archived
Found in: “Data availability”
Holds: README, license file
Not found: CITATION.cff, environment file, tests, continuous integration, documentation
Tools: FSL (2 files), ggplot2 (2 files), tidyverse (2 files), broom (1 file), patchwork (1 file)
Availability: 1 check, the latest on 27 September 2026: the link answers
  • 27 September 2026: the link answers
8 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;
  • 6 scripts, each with its path and the digest of its content;
  • 8 matches 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

All analysis scripts used in the present study are openly available on GitHub: https://github.com/andrulyte/language-laterality-cognition.

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, issue, pages, dates, 8 authors, 6 keywords, 17 MeSH terms, 2 funders, 98 references.

Cite

This paper

Andrulyte, I., Zago, L., Jobard, G., Lemaitre, H., Branzi, F. M., Rheault, F., Petit, L., & Keller, S. S. (2026). Language laterality and cognitive skills: does anatomy matter? Cerebral cortex (New York, N.Y. : 1991), 36(6), bhag067. https://doi.org/10.1093/cercor/bhag067

BibTeX

@article{andrulyte2026language,
author = {Andrulyte, Ieva and Zago, Laure and Jobard, Gael and Lemaitre, Herve and Branzi, Francesca M and Rheault, Francois and Petit, Laurent and Keller, Simon S},
title = {{Language laterality and cognitive skills: does anatomy matter?}},
journal = {Cerebral cortex (New York, N.Y. : 1991)},
year = {2026},
month = jun,
volume = {36},
number = {6},
pages = {bhag067},
publisher = {Oxford University Press},
issn = {1047-3211},
doi = {10.1093/cercor/bhag067},
url = {https://doi.org/10.1093/cercor/bhag067},
pmid = {42348842},
pmcid = {PMC13298645}
}

RIS

TY - JOUR
AU - Andrulyte, Ieva
AU - Zago, Laure
AU - Jobard, Gael
AU - Lemaitre, Herve
AU - Branzi, Francesca M
AU - Rheault, Francois
AU - Petit, Laurent
AU - Keller, Simon S
TI - Language laterality and cognitive skills: does anatomy matter?
T2 - Cerebral cortex (New York, N.Y. : 1991)
J2 - Cereb Cortex
PY - 2026
DA - 2026/06/01
VL - 36
IS - 6
SP - bhag067
SN - 1047-3211
PB - Oxford University Press
DO - 10.1093/cercor/bhag067
UR - https://doi.org/10.1093/cercor/bhag067
LA - en
ER -

CSL-JSON

{
"id": "10.1093/cercor/bhag067",
"type": "article-journal",
"title": "Language laterality and cognitive skills: does anatomy matter?",
"container-title": "Cerebral cortex (New York, N.Y. : 1991)",
"author": [
{
"family": "Andrulyte",
"given": "Ieva"
},
{
"family": "Zago",
"given": "Laure"
},
{
"family": "Jobard",
"given": "Gael"
},
{
"family": "Lemaitre",
"given": "Herve"
},
{
"family": "Branzi",
"given": "Francesca M"
},
{
"family": "Rheault",
"given": "Francois"
},
{
"family": "Petit",
"given": "Laurent"
},
{
"family": "Keller",
"given": "Simon S"
}
],
"container-title-short": "Cereb Cortex",
"volume": "36",
"issue": "6",
"page": "bhag067",
"DOI": "10.1093/cercor/bhag067",
"PMID": "42348842",
"PMCID": "PMC13298645",
"ISSN": "1047-3211",
"publisher": "Oxford University Press",
"URL": "https://doi.org/10.1093/cercor/bhag067",
"language": "en",
"issued": {
"date-parts": [
[
2026,
6,
1
]
]
}
}

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.1240
Hemispheric consistency in language production, comprehension, and reading in typically and atypically lateralized left-handers: Implications for reading performance.
Journal: Imaging neuroscience (Cambridge, Mass.)
In common: cognitive, 19 references
[2] doi:10.1093/cercor/bhag132 [code]
Spatiotemporal white-matter development across early childhood.
Journal: Cerebral cortex (New York, N.Y. : 1991)
In common: broom, FSL, patchwork, 2 other tools, structural MRI / diffusion, 3 references
[3] doi:10.1002/hbm.70519 [code]
Lifespan Trajectories of Asymmetry in White Matter Tracts.
Journal: Human brain mapping
In common: structural MRI / diffusion, 6 references
[4] doi:10.1038/s41398-026-04010-9 [code]
Bullying victimization and brain development: a longitudinal structural magnetic resonance imaging study from adolescence to early adulthood.
Journal: Translational psychiatry
In common: broom, patchwork, ggplot2, 1 other tool, structural MRI / diffusion, author Herve Lemaitre
[5] doi:10.1038/s41467-026-72916-5 [code]
Precision fMRI reveals that the language network exhibits adult-like left-hemispheric lateralization by 4 years of age.
Journal: Nature communications
In common: ggplot2, tidyverse, 5 references
[6] doi:10.1162/imag.a.1325 [code]
Decoding everyday levels of musical training from subcortical white-matter architecture.
Journal: Imaging neuroscience (Cambridge, Mass.)
In common: broom, FSL, ggplot2, 1 other tool, structural MRI / diffusion, 3 references
[7] doi:10.1038/s41467-026-71918-7 [code]
Developmental disinhibition gates language lateralization in childhood.
Journal: Nature communications
In common: FSL, 5 references
[8] doi:10.1126/sciadv.adu9309 [code]
Variations of global brain asymmetry are associated with aging and related diseases.
Journal: Science advances
In common: FSL, cognitive, 4 references
[9] doi:10.1073/pnas.2603114123 [code]
The human hippocampus can pattern separate memories by meaning.
Journal: Proceedings of the National Academy of Sciences of the United States of America
In common: broom, FSL, patchwork, 2 other tools, cognitive, 1 reference
[10] doi:10.1126/sciadv.aed0772 [code]
Deep learning reveals a neurocomputational mechanism predicting depression risk in adolescents.
Journal: Science advances
In common: ggplot2, tidyverse, author Herve Lemaitre

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.

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.