OSCR

Prenatal Volume in the Bilateral Superior Temporal Gyrus Associates With Children's Expressive Vocabulary at 24-36 Months.

Code ↔ Paper

2 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 2 matches
  1. [1] § Materials and Methods › Participants ↔ materials/prenatal_vocab_volume_paper_script.R, lines 129–169 · score 0.54 · gestational week, female, scans, outlier, MRI, child
  2. [2] § Materials and Methods › Participants ↔ materials/prenatal_vocab_volume_paper_script.R, lines 129–169 · score 0.53 · gestation week, MRI scan, age

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 · 600 lines · 18 KB · CC-BY-4.0 · 2 matches

  1. #######CHILD: script for paper titled "Prenatal volume in the bilateral superior temporal gyrus predicts
  2. #######children’s expressive vocabulary at 24-36 months "
  3. #######Annika Werwach
  4. #set up
  5. rm(list=ls())
  6. setwd("/Users/werwach/Documents/CHILD/tables")
  7. options(scipen = 999)
  8. #load packages
  9. library(readxl)
  10. library(dplyr)
  11. library(tidyr)
  12. library(psych)
  13. library(lm.beta)
  14. #load tables
  15. data_volume_fet = read_excel("Fetal_Volumes(1).xlsx") #fetal brain volume
  16. names(data_volume_fet)[1] <- 'ID'
  17. data_general_and_cdi = read.csv("CHILD_main_VA_final.csv", header = TRUE, sep = ",")
  18. names(data_general_and_cdi)[2] <- 'ID'
  19. data_maternalage = read.csv("CHILD_VA_maternal_Age.csv", header = TRUE, sep = ",")
  20. names(data_maternalage)[1] <- 'ID'
  21. #rename total volume column
  22. names(data_volume_fet)[names(data_volume_fet) == "Total"] <- "total_volume_fet"
  23. #calculate IFG left & right and bilateral volume
  24. data_volume_fet$IFG_left_fet = (data_volume_fet$Frontal_Inf_Tri_L + data_volume_fet$Frontal_Inf_Oper_L + data_volume_fet$Frontal_Inf_Orb_L)
  25. data_volume_fet$IFG_right_fet = (data_volume_fet$Frontal_Inf_Tri_R + data_volume_fet$Frontal_Inf_Oper_R + data_volume_fet$Frontal_Inf_Orb_R)
  26. data_volume_fet$IFG_fet = (data_volume_fet$IFG_left_fet + data_volume_fet$IFG_right_fet)
  27. #create STG columns & calculate bilateral volume
  28. data_volume_fet$STG_left_fet = (data_volume_fet$Temporal_Sup_L)
  29. data_volume_fet$STG_right_fet = (data_volume_fet$Temporal_Sup_R)
  30. data_volume_fet$STG_fet = (data_volume_fet$Temporal_Sup_L + data_volume_fet$Temporal_Sup_R)
  31. #calculate residuals from regression of STG/IFG volume ~ total intracranial volume
  32. model_resIFG_left = IFG_left_fet ~ total_volume_fet
  33. fit_resIFG_left = lm(formula = model_resIFG_left, data=data_volume_fet)
  34. summary(fit_resIFG_left)
  35. data_volume_fet$IFG_left_fet_resid = fit_resIFG_left$residuals
  36. model_resIFG_right = IFG_right_fet ~ total_volume_fet
  37. fit_resIFG_right = lm(formula = model_resIFG_right, data=data_volume_fet)
  38. summary(fit_resIFG_right)
  39. data_volume_fet$IFG_right_fet_resid = fit_resIFG_right$residuals
  40. model_resIFG = IFG_fet ~ total_volume_fet
  41. fit_resIFG = lm(formula = model_resIFG, data=data_volume_fet)
  42. summary(fit_resIFG)
  43. data_volume_fet$IFG_fet_resid = fit_resIFG$residuals
  44. model_resSTG_left = STG_left_fet ~ total_volume_fet
  45. fit_resSTG_left = lm(formula = model_resSTG_left, data=data_volume_fet)
  46. summary(fit_resSTG_left)
  47. data_volume_fet$STG_left_fet_resid = fit_resSTG_left$residuals
  48. model_resSTG_right = STG_right_fet ~ total_volume_fet
  49. fit_resSTG_right = lm(formula = model_resSTG_right, data=data_volume_fet)
  50. summary(fit_resSTG_right)
  51. data_volume_fet$STG_right_fet_resid = fit_resSTG_right$residuals
  52. model_resSTG = STG_fet ~ total_volume_fet
  53. fit_resSTG = lm(formula = model_resSTG, data=data_volume_fet)
  54. summary(fit_resSTG)
  55. data_volume_fet$STG_fet_resid = fit_resSTG$residuals
  56. #filter only relevant columns from volume data
  57. data_volume_fet = data_volume_fet |>
  58. select(ID,
  59. IFG_left_fet, IFG_right_fet, IFG_fet,
  60. STG_left_fet, STG_right_fet, STG_fet,
  61. IFG_left_fet_resid, IFG_right_fet_resid, IFG_fet_resid,
  62. STG_left_fet_resid, STG_right_fet_resid, STG_fet_resid,
  63. total_volume_fet)
  64. #filter only relevant columns from general & language data & dummy-code sex variable
  65. data_general_and_cdi = data_general_and_cdi |>
  66. select(ID,sex,age_child, age_18, age_24,cdi1,cdi2)
  67. # Assuming your data frame is named 'data'
  68. data_general_and_cdi <- data_general_and_cdi %>%
  69. mutate(sex_dummy = ifelse(sex == "male", 1, 0))
  70. #filter only relevant columns from maternal age data
  71. data_maternalage = data_maternalage |>
  72. filter(redcap_event_name == "prenatal_arm_1") |>
  73. select(ID, age_mother)
  74. #combine datasets
  75. data = data_volume_fet |>
  76. inner_join(data_general_and_cdi, by = "ID") |>
  77. inner_join(data_maternalage, by = "ID")
  78. #filter for only the kids who have cdi1 or cdi2 or both (n = 30) -> for descriptive statistics
  79. data <- data |>
  80. filter(!is.na(cdi1) | !is.na(cdi2))
  81. #filter data for all kids who have the cdi1 (n = 25)
  82. data_cdi1_all <- data |>
  83. filter(!is.na(cdi1))
  84. #filter data for all kids who have the cdi2 (n = 24)
  85. data_cdi2_all <- data |>
  86. filter(!is.na(cdi2))
  87. #outlier exclusion
  88. describe(data_cdi1_all$cdi1)
  89. #M = 21.15, SD = 14.48 -> exclusion of all kids with a score > 50.11 -> ID 104 (score 51), ID 106 (score 52)
  90. data_cdi1 = data_cdi1_all |>
  91. filter(cdi1 <= 50.11)
  92. data_cdi1_outlier = data_cdi1_all |>
  93. filter(cdi1 > 50.11)
  94. describe(data_cdi2_all$cdi2)
  95. #M = 82.04, SD = 20.79 -> exclusion of all kids with a score < 40.46 (as 100 is the maximum anyway) -> ID 123 (score 19)
  96. data_cdi2 = data_cdi2_all |>
  97. filter(cdi2 >= 40.46)
  98. data_cdi2_outlier = data_cdi2_all |>
  99. filter(cdi2 < 40.46)
  100. ###Check sample size##
  101. #Calculate amount of overlapping IDs in the two datasets
  102. overlapping_ids <- intersect(data_cdi1$ID, data_cdi2$ID)
  103. length(overlapping_ids) #n = 19
  104. #Calculate amount of "unique" IDs in each dataset (sanity check)
  105. unique_ids_cdi1 <- setdiff(data_cdi1$ID, data_cdi2$ID)
  106. length(unique_ids_cdi1) #n = 6
  107. unique_ids_cdi2 <- setdiff(data_cdi2$ID, data_cdi1$ID)
  108. length(unique_ids_cdi2) #n = 5
  109. #######################################Descriptive statistics######################################
  110. #gestation week at MRI scan
  111. describe(data$age_child)
  112. data_cdi1_outlier$age_child # 30.3, 31.6
  113. data_cdi2_outlier$age_child # 30
  114. #age at cdi1 assessment
  115. describe(data_cdi1$age_18)
  116. data_cdi1_outlier$age_18 #81.0, 81.1
  117. data_cdi2_outlier$age_18 # 79.4
  118. #age at cdi2 assessment
  119. describe(data_cdi2$age_24)
  120. data_cdi1_outlier$age_24 # 154.6, 133.7
  121. data_cdi2_outlier$age_24 # 135
  122. #sex
  123. table(data$sex)
  124. #female(1): 14
  125. #male(0): 16
  126. table(data_cdi1$sex)
  127. #female: 11
  128. #male: 14
  129. table(data_cdi2$sex)
  130. #female: 13
  131. #male: 11
  132. ##foetal brain volume
  133. ##STG - left
  134. describe(data$STG_left_fet)
  135. data_cdi1_outlier$STG_left_fet # 1216, 1080
  136. data_cdi2_outlier$STG_left_fet# 1183
  137. ##STG - right
  138. describe(data$STG_right_fet)
  139. data_cdi1_outlier$STG_right_fet # 1457, 1352
  140. data_cdi2_outlier$STG_right_fet # 1204
  141. ##IFG - left
  142. describe(data$IFG_left_fet)
  143. data_cdi1_outlier$IFG_left_fet # 2049, 1637
  144. data_cdi2_outlier$IFG_left_fet# 1540
  145. ##IFG - right
  146. describe(data$IFG_right_fet)
  147. data_cdi1_outlier$IFG_right_fet # 2437, 1832
  148. data_cdi2_outlier$IFG_right_fet # 1176
  149. #STG - by sex
  150. describeBy(data$STG_fet_resid,data$sex)
  151. #left
  152. describeBy(data$STG_left_fet_resid,data$sex)
  153. #right
  154. describeBy(data$STG_right_fet_resid,data$sex)
  155. #IFG
  156. describeBy(data$IFG_fet_resid,data$sex)
  157. #left
  158. describeBy(data$IFG_left_fet_resid,data$sex)
  159. #right
  160. describeBy(data$IFG_right_fet_resid,data$sex)
  161. #vocabulary scores
  162. #cdi1
  163. describe(data_cdi1$cdi1)
  164. describe(data_cdi1$cdi1_per)
  165. #cdi2
  166. describe(data_cdi2$cdi2)
  167. describe(data_cdi2$cdi2_per)
  168. #test cdi scores of bi-/multilingual vs. monolingual kids
  169. data_cdi1_mono = data_cdi1[-c(3,4,6,7,9,19,21,22,23),]
  170. data_cdi1_multi = data_cdi1[c(3,4,6,7,9,19,21,22,23),]
  171. t.test(data_cdi1_mono$cdi1,data_cdi1_multi$cdi1) #no significant difference (actually multilingual kids higher average)
  172. data_cdi2_mono = data_cdi2[-c(2,4,7,8,12,18,21,22),]
  173. data_cdi2_multi = data_cdi2[c(2,4,7,8,12,18,21,22),]
  174. t.test(data_cdi2_mono$cdi2,data_cdi2_multi$cdi2) #no significant difference (actually multilingual kids higher average)
  175. #break-up descriptive statistics by sex
  176. t.test(data$STG_left_fet_resid~data$sex)
  177. t.test(data$STG_right_fet_resid~data$sex)
  178. t.test(data$IFG_left_fet_resid~data$sex)
  179. t.test(data$IFG_right_fet_resid~data$sex)
  180. ##test if the two hemispheres are significantly different from each other
  181. t.test(data$IFG_left_fet_resid,data$IFG_right_fet_resid)
  182. t.test(data$STG_left_fet_resid,data$STG_right_fet_resid)
  183. t.test(data$IFG_left_fet,data$IFG_right_fet)
  184. t.test(data$STG_left_fet,data$STG_right_fet) # right one is bigger
  185. ##correlation of IFG and STG volume with potential covariates
  186. cor.test(data$IFG_right_fet_resid, data$age_child)
  187. #cor.test(data$IFG_right_fet_resid, data$total_volume_fet)
  188. cor.test(data$IFG_right_fet_resid, data$age_mother)
  189. cor.test(data$IFG_left_fet_resid, data$age_child)
  190. #cor.test(data$IFG_left_fet_resid, data$total_volume_fet)
  191. cor.test(data$IFG_left_fet_resid, data$age_mother)
  192. cor.test(data$IFG_fet_resid, data$age_child)
  193. #cor.test(data$IFG_fet, data$total_volume_fet)
  194. cor.test(data$IFG_fet_resid, data$age_mother)
  195. cor.test(data$STG_right_fet_resid, data$age_child)
  196. #cor.test(data$STG_right_fet, data$total_volume_fet)
  197. cor.test(data$STG_right_fet_resid, data$age_mother)
  198. cor.test(data$STG_left_fet_resid, data$age_child)
  199. #cor.test(data$STG_left_fet_resid, data$total_volume_fet)
  200. cor.test(data$STG_left_fet_resid, data$age_mother)
  201. cor.test(data$STG_fet_resid, data$age_child)
  202. #cor.test(data$STG_fet, data$total_volume_fet)
  203. cor.test(data$STG_fet_resid, data$age_mother)
  204. ##first-order correlations
  205. #split by hemisphere
  206. cor.test(data_cdi1$STG_left_fet_resid, data_cdi1$cdi1)
  207. cor.test(data_cdi1$STG_right_fet_resid, data_cdi1$cdi1)
  208. cor.test(data_cdi1$IFG_left_fet_resid, data_cdi1$cdi1)
  209. cor.test(data_cdi1$IFG_right_fet_resid, data_cdi1$cdi1)
  210. cor.test(data_cdi2$STG_left_fet_resid, data_cdi2$cdi2)
  211. cor.test(data_cdi2$STG_right_fet_resid, data_cdi2$cdi2)
  212. cor.test(data_cdi2$IFG_left_fet_resid, data_cdi2$cdi2)
  213. cor.test(data_cdi2$IFG_right_fet_resid, data_cdi2$cdi2)
  214. ###############################Regression analysis#######################################
  215. #select relevant columns for regression
  216. data_cdi1_reg = data_cdi1 |>
  217. select(ID, cdi1,
  218. IFG_left_fet, IFG_right_fet,
  219. STG_left_fet, STG_right_fet,
  220. IFG_left_fet_resid, IFG_right_fet_resid, IFG_fet_resid,
  221. STG_left_fet_resid, STG_right_fet_resid, STG_fet_resid,
  222. total_volume_fet, age_child, age_18, sex, sex_dummy)
  223. data_cdi2_reg = data_cdi2 |>
  224. select(ID, cdi2,
  225. IFG_left_fet, IFG_right_fet,
  226. STG_left_fet, STG_right_fet,
  227. IFG_left_fet_resid, IFG_right_fet_resid, IFG_fet_resid,
  228. STG_left_fet_resid, STG_right_fet_resid, STG_fet_resid,
  229. total_volume_fet, age_child, age_24, sex, sex_dummy)
  230. #transform from wide to long format
  231. data_cdi1_reg_long <- data_cdi1_reg %>%
  232. pivot_longer(
  233. cols = starts_with(c("IFG_left_fet_resid", "IFG_right_fet_resid", "STG_left_fet_resid", "STG_right_fet_resid")),
  234. names_to = c(".value", "hem"),
  235. names_pattern = "(.+)_(left|right)")
  236. data_cdi2_reg_long <- data_cdi2_reg %>%
  237. pivot_longer(
  238. cols = starts_with(c("IFG_left_fet_resid", "IFG_right_fet_resid", "STG_left_fet_resid", "STG_right_fet_resid")),
  239. names_to = c(".value", "hem"),
  240. names_pattern = "(.+)_(left|right)")
  241. ##regressions
  242. model1 = cdi1 ~ STG * hem + IFG * hem + age_18 + sex_dummy
  243. fit1 = lm(formula = model1, data=data_cdi1_reg_long)
  244. summary(fit1)
  245. lm.beta(fit1)
  246. residuals1 <- resid(fit1)
  247. fitted1 <- fitted(fit1)
  248. #linearity check
  249. qqnorm(residuals1)
  250. qqline(residuals1)
  251. # Homoscedasticity check
  252. plot(fitted1, residuals1,
  253. main = "Residuals vs Fitted Values",
  254. xlab = "Fitted values", ylab = "Residuals")
  255. abline(h = 0, col = "red") # horizontal line at 0
  256. # Linearity check: Residuals vs each predictor
  257. predictors <- model.matrix(fit2)[,-1] # remove intercept
  258. par(mfrow=c(ceiling(ncol(predictors)/2),2))
  259. for (i in 1:ncol(predictors)) {
  260. plot(predictors[,i], residuals2,
  261. main = paste("Residuals vs", colnames(predictors)[i]),
  262. xlab = colnames(predictors)[i], ylab = "Residuals")
  263. abline(h = 0, col = "red")
  264. }
  265. par(mfrow=c(1,1))
  266. model2 = cdi2 ~ STG * hem + IFG * hem + age_24 + sex_dummy
  267. fit2 = lm(formula = model2, data=data_cdi2_reg_long)
  268. summary(fit2)
  269. lm.beta(fit2)
  270. residuals2 <- resid(fit2)
  271. fitted2 <- fitted(fit2)
  272. #normality check
  273. qqnorm(residuals2)
  274. qqline(residuals2)
  275. # Homoscedasticity check
  276. plot(fitted2, residuals2,
  277. main = "Residuals vs Fitted Values",
  278. xlab = "Fitted values", ylab = "Residuals")
  279. abline(h = 0, col = "red") # horizontal line at 0
  280. # Linearity check: Residuals vs each predictor
  281. predictors <- model.matrix(fit2)[,-1] # remove intercept
  282. par(mfrow=c(ceiling(ncol(predictors)/2),2))
  283. for (i in 1:ncol(predictors)) {
  284. plot(predictors[,i], residuals2,
  285. main = paste("Residuals vs", colnames(predictors)[i]),
  286. xlab = colnames(predictors)[i], ylab = "Residuals")
  287. abline(h = 0, col = "red")
  288. }
  289. par(mfrow=c(1,1))
  290. #####adjust for multiple comparisons#######
  291. #IFG
  292. p11 = c(0.68515,0.21567)
  293. p.adjust(p11, method = "holm", n = length(p11))
  294. #0.68515 0.43134
  295. #hemisphere
  296. p12 = c(0.98599,0.84460)
  297. p.adjust(p12, method = "holm", n = length(p12))
  298. # 1 1
  299. #STG
  300. p13 = c(0.93243,0.02176)
  301. p.adjust(p13, method = "holm", n = length(p13))
  302. #0.93243 0.04352
  303. #age_18
  304. p14 = c(0.12892, 0.00324)
  305. p.adjust(p14, method = "holm", n = length(p14))
  306. #0.12892 0.00648
  307. #sex
  308. p114 = c(0.00322,0.59043)
  309. p.adjust(p114, method = "holm", n = length(p114))
  310. #0.00644 0.59043
  311. #interaction IFG x hemisphere
  312. p15 = c(0.92402,0.90627)
  313. p.adjust(p15, method = "holm", n = length(p15))
  314. # 1 1
  315. #interaction STG x hemisphere
  316. p16 = c(0.66845,0.94847)
  317. p.adjust(p16, method = "holm", n = length(p16))
  318. # 1 1
  319. #whole model
  320. p17 = c(0.08805, 0.0009793)
  321. p.adjust(p17, method = "holm", n = length(p17))
  322. #0.0880500 0.0019586
  323. #############################################Analysis without high-likelihood children###############################################
  324. data_cdi1_norisk = data_cdi1[-c(23:25),]
  325. data_cdi1_reg_long_norisk = data_cdi1_reg_long[-c(45:50),]
  326. data_cdi2_norisk = data_cdi2[-c(22:24),]
  327. data_cdi2_reg_long_norisk = data_cdi2_reg_long[-c(43:48),]
  328. ##regressions
  329. model11 = cdi1 ~ STG * hem + IFG * hem + age_18 + sex
  330. fit11 = lm(formula = model11, data=data_cdi1_reg_long_norisk)
  331. summary(fit11)
  332. lm.beta(fit11)
  333. model12 = cdi2 ~ STG * hem + IFG * hem + age_24 + sex
  334. fit12 = lm(formula = model12, data=data_cdi2_reg_long_norisk)
  335. summary(fit12)
  336. lm.beta(fit12)
  337. #####adjust for multiple comparisons#######
  338. #IFG
  339. p11 = c(0.2351,0.5825)
  340. p.adjust(p11, method = "holm", n = length(p11))
  341. #0.4702 0.5825
  342. #hemisphere
  343. p12 = c(0.7901,0.8339)
  344. p.adjust(p12, method = "holm", n = length(p12))
  345. # 1 1
  346. #STG
  347. p13 = c(0.2684,0.0167)
  348. p.adjust(p13, method = "holm", n = length(p13))
  349. #0.2684 0.0334
  350. #age
  351. p14 = c(0.0337,0.0538)
  352. p.adjust(p14, method = "holm", n = length(p14))
  353. #0.0674 0.0674
  354. #sex
  355. p114 = c(0.0000401,0.6311)
  356. p.adjust(p114, method = "holm", n = length(p114))
  357. #0.0000802 0.6311000
  358. #interaction IFG x hemisphere
  359. p15 = c(0.7551,0.7202)
  360. p.adjust(p15, method = "holm", n = length(p15))
  361. # 1 1
  362. #interaction STG x hemisphere
  363. p16 = c(0.3606,0.8499)
  364. p.adjust(p16, method = "holm", n = length(p16))
  365. # 0.7212 0.8499
  366. #whole model
  367. p17 = c(0.001543, 0.0009227)
  368. p.adjust(p17, method = "holm", n = length(p17))
  369. #0.0018454 0.0018454
  370. ######plot_ with whole sample (including ASD risk children)########
  371. library(ggplot2)
  372. library(gridExtra)
  373. library(cowplot)
  374. plot1 = ggplot(data_cdi1, aes(x=IFG_fet_resid, y=cdi1)) +
  375. geom_point() +
  376. geom_smooth(fullrange = TRUE,method='lm', se = FALSE, color = "black") +
  377. theme_classic() +
  378. theme(axis.title.y = element_text(margin=margin(r=8), size = 10),
  379. axis.title.x = element_text(size = 10),
  380. plot.title = element_text(size=14)) +
  381. xlim(-1000,1000) +
  382. xlab("Foetal IFG volume")+
  383. ylim(0,50) +
  384. ylab("CDI score at 18 months")+
  385. ggtitle("A")
  386. #plot1
  387. plot2 = ggplot(data_cdi1, aes(x=STG_fet_resid, y=cdi1)) +
  388. geom_point() +
  389. geom_smooth(fullrange = TRUE,method='lm', se = FALSE, color = "black") +
  390. theme_classic() +
  391. theme(axis.title.y = element_text(margin=margin(r=8), size = 10),
  392. axis.title.x = element_text(size = 10),
  393. plot.title = element_text(size=14)) +
  394. xlim(-500,500) +
  395. xlab("Foetal STG volume")+
  396. ylim(0,50) +
  397. ylab("CDI score at 18 months")+
  398. ggtitle("B")
  399. #plot2
  400. plot3 = ggplot(data_cdi2, aes(x=IFG_fet_resid, y=cdi2)) +
  401. geom_point() +
  402. geom_smooth(fullrange = TRUE,method='lm', se = FALSE, color = "black") +
  403. theme_classic()+
  404. theme(axis.title.x = element_text(size = 10),
  405. axis.title.y = element_text(size = 10),
  406. plot.title = element_text(size=14))+
  407. xlim(-1000,1000) +
  408. xlab("Foetal IFG volume")+
  409. ylim(50,100) +
  410. ylab("CDI score at 24-36 months")+
  411. ggtitle("C")
  412. #plot3
  413. plot4 = ggplot(data_cdi2, aes(x=STG_fet_resid, y=cdi2)) +
  414. geom_point() +
  415. geom_smooth(fullrange = TRUE,method='lm', se = FALSE, color = "black") +
  416. theme_classic() +
  417. theme(axis.title.x = element_text(size = 10),
  418. axis.title.y = element_text(size = 10),
  419. plot.title = element_text(size=14))+
  420. xlim(-500,500) +
  421. xlab("Foetal STG volume")+
  422. ylim(50,100) +
  423. ylab("CDI score at 24-36 months")+
  424. ggtitle("D")
  425. plot4
  426. p1 = grid.arrange(plot1, plot2, plot3, plot4, nrow = 2)
  427. ggsave(p1, file="/Users/werwach/Documents/CHILD/paper_prenatal_volume_vocab/figures/regression_plots_withrisk.eps", device="eps")
  428. ######plot_ without ASD risk children########
  429. library(ggplot2)
  430. library(gridExtra)
  431. library(cowplot)
  432. plot1 = ggplot(data_cdi1_norisk, aes(x=IFG_fet, y=cdi1_per)) +
  433. geom_point() +
  434. geom_smooth(fullrange = TRUE,method='lm', se = FALSE, color = "black") +
  435. theme_classic() +
  436. theme(axis.title.y = element_text(margin=margin(r=8), size = 10),
  437. axis.title.x = element_text(size = 10),
  438. plot.title = element_text(size=14)) +
  439. xlim(2000,5300) +
  440. xlab("Foetal IFG volume")+
  441. ylim(0,100) +
  442. ylab("CDI score at 18 months")+
  443. ggtitle("A")
  444. #plot1
  445. plot2 = ggplot(data_cdi1_norisk, aes(x=STG_fet, y=cdi1_per)) +
  446. geom_point() +
  447. geom_smooth(fullrange = TRUE,method='lm', se = FALSE, color = "black") +
  448. theme_classic() +
  449. theme(axis.title.y = element_text(margin=margin(r=8), size = 10),
  450. axis.title.x = element_text(size = 10),
  451. plot.title = element_text(size=14)) +
  452. xlim(1500,3300) +
  453. xlab("Foetal STG volume")+
  454. ylim(0,100) +
  455. ylab("CDI score at 18 months")+
  456. ggtitle("B")
  457. #plot2
  458. plot3 = ggplot(data_cdi2_norisk, aes(x=IFG_fet, y=cdi2_per)) +
  459. geom_point() +
  460. geom_smooth(fullrange = TRUE,method='lm', se = FALSE, color = "black") +
  461. theme_classic()+
  462. theme(axis.title.x = element_text(size = 10),
  463. axis.title.y = element_text(size = 10),
  464. plot.title = element_text(size=14))+
  465. xlim(2000,5300) +
  466. xlab("Foetal IFG volume")+
  467. ylim(0,100) +
  468. ylab("CDI score at 24-36 months")+
  469. ggtitle("C")
  470. #plot3
  471. plot4 = ggplot(data_cdi2_norisk, aes(x=STG_fet, y=cdi2_per)) +
  472. geom_point() +
  473. geom_smooth(fullrange = TRUE,method='lm', se = FALSE, color = "black") +
  474. theme_classic() +
  475. theme(axis.title.x = element_text(size = 10),
  476. axis.title.y = element_text(size = 10),
  477. plot.title = element_text(size=14))+
  478. xlim(1500,3300) +
  479. xlab("Foetal STG volume")+
  480. ylim(0,100) +
  481. ylab("CDI score at 24-36 months")+
  482. ggtitle("D")
  483. #plot4
  484. p2 = grid.arrange(plot1, plot2, plot3, plot4, nrow = 2)
  485. ggsave(p2, file="/Users/werwach/Documents/CHILD/paper_prenatal_volume_vocab/figures/regression_plots_norisk.eps", device="eps")

prenatal_vocab_volume_paper_script.R at commit 3a1120d, under CC-BY-4.0 · at the source

Overview

Authors: Annika Werwach1,2, Alex Tsompanidis3, Luca Villa3,4, Roger Tait5, John Suckling3, Topun Austin6, Sarah Hampton3,7,8, Carrie Allison3, Rosemary Holt3, Simon Baron‐Cohen3, Gesa Schaadt9,10
  1. Center for Lifespan Psychology, Max Planck Institute for Human Development, Berlin, Germany
  2. Max Planck School of Cognition, Leipzig, Germany
  3. Autism Research Centre, Department of Psychiatry, University of Cambridge, Cambridge, UK
  4. Qynapse, Paris, France
  5. Cambridge Open Zettascale Lab, University of Cambridge, Cambridge, UK
  6. The Rosie Hospital, Cambride University Hospitals Foundation Trust, Cambridge, UK
  7. Department of Health Sciences, University of York, York, UK
  8. University College London, London, UK
  9. Department of Education and Psychology, Freie Universität Berlin, Berlin, Germany
  10. Department of Neuropsychology, Max Planck Institute for Human Cognitive and Brain Sciences, Leipzig, Germany
Journal: Developmental science, volume 29, issue 3, article e70187
Dates: received 18 June 2025; accepted 24 March 2026; published online 11 April 2026; in print May 2026
Type: Research article · Language: English
License: CC BY
Identifiers: DOI 10.1111/desc.70187 · PMID 41964581 · PMCID PMC13069930 · OpenAlex W7153625413
Open access: hybrid, a free copy (OpenAlex)
Status: code verified
Categories: structural MRI / diffusion (modality), human (organism), developmental (subfield)
Methods: Statistics, Connectivity, fMRI & imaging
Keywords: expressive vocabulary, language acquisition, prenatal brain development, structural MRI
MeSH: Language Development*, Temporal Lobe*, Vocabulary*, Child, Preschool, Female, Humans, Longitudinal Studies, Magnetic Resonance Imaging, Male, Pregnancy (* major topic)
Topic: Neurobiology of Language and Bilingualism (Cognitive Neuroscience, Neuroscience), according to OpenAlex
Funding: NIHR Cambridge Biomedical Research Centre (BRC-1215-20014, BRC‐1215‐20014); UKRI | Medical Research Council (MRC); Wellcome Trust (214322, 214322∖Z∖18∖Z); NIHR HealthTech Research Centre for Brain Injury; Innovative Medicines Initiative 2 Joint Undertaking (777394); NIHR Applied Research Collaboration East of England; Templeton World Charitable Fund; Autism Centre of Excellence; Simons Foundation Autism Research Initiative
Citations: not cited yet (Europe PMC); 69 references in the paper

Abstract

Children's language development starts in utero, with language‐relevant brain areas starting to develop and differentiate during the second trimester of pregnancy. Postnatal development in language‐relevant brain areas such as the inferior frontal gyrus (IFG) and superior temporal gyrus (STG) has been shown to be related to language skills. In this study, as part of the Cambridge Human Imaging and Longitudinal Development (CHILD) project, prenatal structural characteristics of the IFG and STG (30th – 33rd GW) and their association with English children's language skills, obtained longitudinally at two postnatal assessment points (n = 24 and n = 25) was examined. Prenatal bilateral STG volume was found to be associated with expressive vocabulary 2–3 years after birth (M = 139.1 weeks), as measured by the Communicative Development Inventory (CDI). These results highlight the relevance of prenatal brain development for language acquisition after birth.

Summary: Postnatal structural characteristics of neural language network, including IFG and STG, are known to be related to language skills in children and adults

Structural characteristics of IFG and STG were assessed prenatally in this study and related to language outcomes in early childhood

Bilateral STG volume at birth predicts vocabulary scores 2–3 years later

Findings support the importance of prenatal brain development for postnatal language acquisition

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

annikawerwach/child-volume-vocab

License: CC-BY-4.0
State: the link answers, verified on 28 September 2026
Evidence: files inventoried
Commit: 3a1120de86cf66f1d721cf36d90bb958c5ec4513, 19 March 2026
Languages: R (1)
Size: 9 files, 1 script
Software Heritage: not archived
Found in: “Data Availability Statement”
Holds: README, license file, CITATION.cff, documentation
Not found: environment file, tests, continuous integration
Tools: cowplot (1 file), ggplot2 (1 file), psych (1 file), tidyverse (1 file)
Availability: 1 check, the latest on 28 September 2026: the link answers
  • 28 September 2026: the link answers
3 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;
  • 1 script, each with its path and the digest of its content;
  • 2 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 Statement

The analysis script can be found under https://github.com/annikawerwach/CHILD‐volume‐vocab/tree/main/materials (https://github.com/annikawerwach/CHILD-volume-vocab/tree/main/materials). Access to raw data is restricted by ethics regulations and participant consent.

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 2, 28 September 2026

  • Publisher: n/a → Wiley

Version 1, 28 September 2026: the first record

Recorded: type, language, journal, volume, issue, pages, dates, 11 authors, 4 keywords, 10 MeSH terms, 9 funders, 67 references.

Cite

This paper

Werwach, A., Tsompanidis, A., Villa, L., Tait, R., Suckling, J., Austin, T., Hampton, S., Allison, C., Holt, R., Baron‐Cohen, S., & Schaadt, G. (2026). Prenatal Volume in the Bilateral Superior Temporal Gyrus Associates With Children's Expressive Vocabulary at 24-36 Months. Developmental science, 29(3), e70187. https://doi.org/10.1111/desc.70187

BibTeX

@article{werwach2026prenatal,
author = {Werwach, Annika and Tsompanidis, Alex and Villa, Luca and Tait, Roger and Suckling, John and Austin, Topun and Hampton, Sarah and Allison, Carrie and Holt, Rosemary and Baron‐Cohen, Simon and Schaadt, Gesa},
title = {{Prenatal Volume in the Bilateral Superior Temporal Gyrus Associates With Children's Expressive Vocabulary at 24-36 Months}},
journal = {Developmental science},
year = {2026},
month = may,
volume = {29},
number = {3},
pages = {e70187},
publisher = {Wiley},
issn = {1363-755X},
doi = {10.1111/desc.70187},
url = {https://doi.org/10.1111/desc.70187},
pmid = {41964581},
pmcid = {PMC13069930}
}

RIS

TY - JOUR
AU - Werwach, Annika
AU - Tsompanidis, Alex
AU - Villa, Luca
AU - Tait, Roger
AU - Suckling, John
AU - Austin, Topun
AU - Hampton, Sarah
AU - Allison, Carrie
AU - Holt, Rosemary
AU - Baron‐Cohen, Simon
AU - Schaadt, Gesa
TI - Prenatal Volume in the Bilateral Superior Temporal Gyrus Associates With Children's Expressive Vocabulary at 24-36 Months
T2 - Developmental science
J2 - Dev Sci
PY - 2026
DA - 2026/05/01
VL - 29
IS - 3
SP - e70187
SN - 1363-755X
PB - Wiley
DO - 10.1111/desc.70187
UR - https://doi.org/10.1111/desc.70187
LA - en
ER -

CSL-JSON

{
"id": "10.1111/desc.70187",
"type": "article-journal",
"title": "Prenatal Volume in the Bilateral Superior Temporal Gyrus Associates With Children's Expressive Vocabulary at 24-36 Months",
"container-title": "Developmental science",
"author": [
{
"family": "Werwach",
"given": "Annika"
},
{
"family": "Tsompanidis",
"given": "Alex"
},
{
"family": "Villa",
"given": "Luca"
},
{
"family": "Tait",
"given": "Roger"
},
{
"family": "Suckling",
"given": "John"
},
{
"family": "Austin",
"given": "Topun"
},
{
"family": "Hampton",
"given": "Sarah"
},
{
"family": "Allison",
"given": "Carrie"
},
{
"family": "Holt",
"given": "Rosemary"
},
{
"family": "Baron‐Cohen",
"given": "Simon"
},
{
"family": "Schaadt",
"given": "Gesa"
}
],
"container-title-short": "Dev Sci",
"volume": "29",
"issue": "3",
"page": "e70187",
"DOI": "10.1111/desc.70187",
"PMID": "41964581",
"PMCID": "PMC13069930",
"ISSN": "1363-755X",
"publisher": "Wiley",
"URL": "https://doi.org/10.1111/desc.70187",
"language": "en",
"issued": {
"date-parts": [
[
2026,
5,
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.1111/desc.70272
Distinct Neural Signatures of Novel Word-Referent Mapping in Monolingual and Bilingual Toddlers.
Journal: Developmental science
In common: developmental, 6 references
[2] doi:10.1117/1.nph.13.3.035001 [code]
Understanding variability in full-term newborns' fNIRS data: the impact of birth weight and gestational age on infants' speech perception abilities.
Journal: Neurophotonics
In common: psych, ggplot2, tidyverse, developmental, 3 references
[3] 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: cowplot, ggplot2, tidyverse, 3 references
[4] doi:10.1162/imag.a.1235 [code]
Intracranial volume: To adjust or not to adjust? It is not a matter of if, but how.
Journal: Imaging neuroscience (Cambridge, Mass.)
In common: cowplot, ggplot2, tidyverse, structural MRI / diffusion, 2 references
[5] doi:10.1016/j.dcn.2026.101782 [code]
Do babies perceive cries as speech?
Journal: Developmental cognitive neuroscience
In common: 5 references
[6] doi:10.1038/s44271-026-00451-6 [code]
Singing to the newborn brain uncovers early traces of specialized neural networks.
Journal: Communications psychology
In common: 4 references
[7] doi:10.1038/s42003-026-09956-6 [code]
Linking changes in sulcal morphometry to cognitive development from childhood to adolescence.
Journal: Communications biology
In common: psych, ggplot2, tidyverse, developmental, structural MRI / diffusion, 1 reference
[8] doi:10.1016/j.nicl.2026.104053 [code]
Childhood white matter organization predicts adolescent internalizing problems among youth with and without ADHD.
Journal: NeuroImage. Clinical
In common: psych, cowplot, ggplot2, 1 other tool, developmental, structural MRI / diffusion
[9] doi:10.1016/j.dcn.2026.101738 [code]
Timing and tempo of puberty and neurodevelopment following adversity: A registered report.
Journal: Developmental cognitive neuroscience
In common: psych, cowplot, ggplot2, 1 other tool, developmental, structural MRI / diffusion
[10] doi:10.1093/cercor/bhag034 [code]
Individual differences in adolescent cortical development are associated with neighborhood characteristics: Longitudinal findings from the ABCD study.
Journal: Cerebral cortex (New York, N.Y. : 1991)
In common: psych, cowplot, ggplot2, 1 other tool, developmental, structural MRI / diffusion

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.