OSCR

The neurophysiology of healthy and pathological aging: a comprehensive systematic review

Code ↔ Paper

1 match 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 1 match
  1. [1] § Results and discussion › Population ↔ code.r, lines 428–478 · score 0.81 · Lewy bodies, frontotemporal dementia, vascular dementia, aMCI, DEU, Parkinson

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 · 839 lines · 40 KB · no license · 1 match

  1. #The neurophysiology of healthy and pathological aging: A comprehensive systematic review (2024)
  2. #Gemma Fernández-Rubio ([email hidden])
  3. #Center for Music in the Brain, Aarhus University, Aarhus (Denmark)
  4. #05-02-2024
  5. #LIBRARIES, WORKING DIRECTORY AND DATA ====
  6. library(readxl)
  7. library(ggplot2)
  8. library(dplyr)
  9. library(tidyr)
  10. library(stringr)
  11. library(maps)
  12. library(RColorBrewer)
  13. library(writexl)
  14. setwd('Working_Directory')
  15. srdata <- read_excel('data.xlsx')
  16. #PUBLICATIONS PER YEAR (Fig. 2a) ====
  17. #total frequency and percentage
  18. year <- data.frame(year = sort(unique(srdata$year[1:942])),
  19. frequency = as.vector(table(srdata$year[1:942])),
  20. percentage = as.vector(prop.table(table(srdata$year[1:942]))*100))
  21. #bar plot
  22. ggplot(year, aes(x = year, y = frequency)) +
  23. geom_col(color = 'black', fill = '#FBB4AE', width = 1, size = 0.25) +
  24. scale_x_continuous(expand = c(0,0.5), breaks = seq(1979,2023,2), name = 'Publication year') +
  25. scale_y_continuous(expand = c(0,0,0.05,0),breaks = seq(0,160,10),name = 'Number of articles') +
  26. theme_bw() +
  27. theme(text = element_text(size = 12, family = 'sans'),
  28. axis.title = element_text(face = 'bold'))
  29. ggsave('Year.pdf')
  30. #PUBLICATIONS PER COUNTRY (Fig. 2b) ====
  31. #total frequency and percentage
  32. country <- data.frame(country = sort(unique(srdata$country[1:942])),
  33. frequency = as.vector(table(srdata$country[1:942])),
  34. percentage = as.vector(prop.table(table(srdata$country[1:942]))*100))
  35. #world map plot
  36. world_map <- map_data('world') #load world map
  37. country_freq <- data.frame(table(srdata$country[1:942])) #calculate frequency of each country
  38. names(country_freq)[names(country_freq) == 'Var1'] <- 'region' #rename variable
  39. worldSubset <- left_join(world_map, country_freq, by = 'region') #join world map and country data
  40. ggplot(data = worldSubset, mapping = aes(x = long, y = lat, group = group)) +
  41. coord_fixed(1.3) +
  42. geom_polygon(aes(fill = Freq)) +
  43. scale_fill_distiller(name = 'Number of articles',
  44. palette = 'Reds',
  45. direction = 1,
  46. guide = guide_colorsteps(even.steps = TRUE,
  47. show.limits = TRUE,
  48. barwidth = 10,
  49. barheight = 1,
  50. frame.colour = 'gray10',
  51. ticks.colour = 'gray10')) +
  52. theme(text = element_text(size = 12, family= 'sans'),
  53. axis.line = element_blank(),
  54. axis.text = element_blank(),
  55. axis.title = element_blank(),
  56. axis.ticks = element_blank(),
  57. panel.grid = element_blank(),
  58. panel.background = element_rect(fill = 'white'),
  59. plot.title = element_text(hjust = 0.5),
  60. legend.position = 'bottom',
  61. legend.title.position = 'top')
  62. ggsave('Country.pdf')
  63. #STUDY DESIGN (Fig. 3a, 3b, & 3c) ====
  64. #total frequency and percentage
  65. design <- data.frame(design = unique(srdata$design[1:942]),
  66. frequency = as.vector(table(srdata$design[1:942])),
  67. percentage = as.vector(prop.table(table(srdata$design[1:942]))*100))
  68. #pie chart
  69. ggplot(design, aes(x = '', y = percentage, fill = design)) +
  70. geom_bar(stat = 'identity', color = 'black') +
  71. coord_polar('y', start = 0) +
  72. geom_text(aes(label = paste0(c(round(percentage, digits = 2)), '%')),
  73. position = position_stack(vjust = 0.5), size = 3) +
  74. scale_fill_brewer(palette = 'Pastel1') +
  75. theme_classic() +
  76. theme(text = element_text(size = 15, family = 'sans'),
  77. axis.title = element_blank(),
  78. axis.line = element_blank(),
  79. axis.text = element_blank(),
  80. axis.ticks = element_blank(),
  81. legend.position = 'bottom',
  82. legend.title = element_blank())
  83. ggsave('Design.pdf')
  84. #bar plot - design & year
  85. dum <- data.frame(table(srdata$year[1:942],srdata$design[1:942])) #frequency of study design per year
  86. dum <- rbind(dum[1:3, ], data.frame(Var1 = '1984', Var2 = 'Cross-sectional', Freq = 0), dum[4:126, ]) #add missing year ('1984')
  87. dum$Var1 <- factor(dum$Var1, levels = unique(dum$Var1)) #reorder year ('1984' between '1983' and '1985')
  88. dum <- dum[complete.cases(dum), ] #remove empty rows
  89. ggplot(dum, aes(x = Var1, y = Freq, fill = Var2)) +
  90. geom_col(color = 'black', width = 0.75, size = 0.25) +
  91. scale_x_discrete(expand = c(0,0.5), breaks = seq(1979,2023,2), name = 'Publication year') +
  92. scale_y_continuous(expand = c(0,0,0.05,0),breaks = seq(0,160,5),name = 'Number of articles') +
  93. scale_fill_brewer(palette = 'Pastel1') +
  94. theme_bw() +
  95. theme(text = element_text(size = 10, family = 'sans'),
  96. axis.title = element_text(size = 12, face = 'bold'),
  97. legend.position = c(0.086,0.94),
  98. legend.background = element_rect(colour = 'black', fill = 'white', linetype='solid', linewidth = 0.25),
  99. legend.title = element_blank())
  100. ggsave('Design_Year.pdf')
  101. #ratio of study design to publications per year
  102. ratio <- data.frame(year = srdata$year[1:942], var = srdata$design[1:942])
  103. ratio <- ratio %>%
  104. group_by(year) %>%
  105. summarise(total_studies = n(), var1 = sum(var == 'Cross-sectional'), var2 = sum(var == 'Longitudinal'),
  106. ratio_var1 = var1 / total_studies, ratio_var2 = var2 / total_studies)
  107. ratio <- ratio %>%
  108. pivot_longer(cols = starts_with('var'), names_to = 'var', values_to = 'value') %>%
  109. mutate(ratio = ifelse(var == "var1", ratio_var1, ratio_var2)) %>%
  110. select(year, ratio, var)
  111. ggplot(ratio, aes(x = year, y = ratio, group = var)) +
  112. geom_line(aes(color = var)) +
  113. geom_point(aes(color = var)) +
  114. scale_x_continuous(expand = c(0,0.5), breaks = seq(1979,2023,2), name = 'Year') +
  115. scale_y_continuous(expand = c(0.05,0,0.05,0),breaks = seq(0,1,0.1),name = 'Experimental design ratio') +
  116. scale_color_brewer(palette = 'Pastel1', labels = c('Cross-sectional', 'Longitudinal')) +
  117. theme_bw() +
  118. theme(text = element_text(size = 10, family = 'sans'),
  119. axis.title = element_text(size = 12, face = 'bold'),
  120. legend.position = c(0.9,0.5),
  121. legend.background = element_rect(colour = 'black', fill = 'white', linetype='solid', linewidth = 0.25),
  122. legend.title = element_blank())
  123. ggsave('Design_Ratio.pdf')
  124. #STUDY DURATION (Fig. 3d) ====
  125. #total frequency and percentage
  126. duration <- data.frame(duration = sort(unique(srdata$duration[1:72])),
  127. frequency = as.vector(table(srdata$duration[1:72])),
  128. percentage = as.vector(prop.table(table(srdata$duration[1:72]))*100))
  129. #bar plot
  130. ggplot(duration, aes(x = duration, y = frequency)) +
  131. geom_col(color = 'black', fill = '#FBB4AE', width = 0.75, size = 0.25) +
  132. scale_x_discrete(name = 'Average duration', limits = c('< 1 year','1 - 2 years','2 - 3 years','3 - 4 years','> 4 years')) +
  133. scale_y_continuous(expand = c(0,0,0.05,0), breaks = seq(0,20,1),name = 'Number of longitudinal articles') +
  134. theme_bw() +
  135. theme(text = element_text(size = 12, family = 'sans'),
  136. axis.title = element_text(face = 'bold'))
  137. ggsave('Duration.pdf')
  138. #NEUROIMAGING TECHNIQUES (Fig. 3e, 3f, & 3g) ====
  139. #total frequency and percentage
  140. neuro <- data.frame(neuro = sort(unique(srdata$neuroimaging[1:942])),
  141. frequency = as.vector(table(srdata$neuroimaging[1:942])),
  142. percentage = as.vector(prop.table(table(srdata$neuroimaging[1:942]))*100))
  143. #pie chart
  144. ggplot(neuro, aes(x = '', y = percentage, fill = reorder(neuro, -percentage))) +
  145. geom_bar(stat = 'identity', color = 'black') +
  146. coord_polar('y', start = 0) +
  147. geom_text(aes(label = paste0(c(round(percentage, digits = 2)), '%')),
  148. position = position_stack(vjust = 0.5), size = 3) +
  149. scale_fill_manual(values = brewer.pal(9, 'Pastel1')[c(1,2,5)]) +
  150. theme_classic() +
  151. theme(text = element_text(size = 15, family = 'sans'),
  152. axis.title = element_blank(),
  153. axis.line = element_blank(),
  154. axis.text = element_blank(),
  155. axis.ticks = element_blank(),
  156. legend.position = 'bottom',
  157. legend.title = element_blank())
  158. ggsave('Neuroimaging.pdf')
  159. #bar plot - design & year
  160. dum <- data.frame(table(srdata$year[1:942],srdata$neuroimaging[1:942])) #frequency of neuroimaging technique per year
  161. dum <- rbind(dum[1:3, ], data.frame(Var1 = '1984', Var2 = 'MEG', Freq = 0), dum[4:126, ]) #add missing year ('1984')
  162. dum$Var1 <- factor(dum$Var1, levels = unique(dum$Var1)) #reorder year ('1984' between '1983' and '1985')
  163. dum$Var2 <- factor(dum$Var2, levels = c('EEG','MEG','M/EEG')) #reorder neuroimaging techniques (highest to lowest frequency)
  164. ggplot(dum, aes(x = Var1, y = Freq, fill = Var2)) +
  165. geom_col(color = 'black', width = 0.75, size = 0.25) +
  166. scale_x_discrete(expand = c(0,0.5), breaks = seq(1979,2023,2), name = 'Publication year') +
  167. scale_y_continuous(expand = c(0,0,0.05,0),breaks = seq(0,160,5),name = 'Number of articles') +
  168. scale_fill_manual(values = brewer.pal(9, 'Pastel1')[c(1,2,5)]) +
  169. theme_bw() +
  170. theme(text = element_text(size = 10, family = 'sans'),
  171. axis.title = element_text(size = 12, face = 'bold'),
  172. legend.position = c(0.08,0.92),
  173. legend.background = element_rect(colour = 'black', fill = 'white', linetype='solid', linewidth = 0.25),
  174. legend.title = element_blank())
  175. ggsave('Neuroimaging_Year.pdf')
  176. #ratio of neuroimaging technique to publications per year
  177. ratio <- data.frame(year = srdata$year[1:942], var = srdata$neuroimaging[1:942])
  178. ratio <- ratio %>%
  179. group_by(year) %>%
  180. summarise(total_studies = n(), var1 = sum(var == 'EEG'), var2 = sum(var == 'MEG'), var3 = sum(var == 'M/EEG'),
  181. ratio_var1 = var1 / total_studies, ratio_var2 = var2 / total_studies, ratio_var3 = var3 / total_studies)
  182. ratio <- ratio %>%
  183. pivot_longer(cols = starts_with('var'), names_to = 'var', values_to = 'value') %>%
  184. mutate(ratio = case_when(var == 'var1' ~ ratio_var1, var == 'var2' ~ ratio_var2, var == 'var3' ~ ratio_var3)) %>%
  185. select(year, ratio, var)
  186. ggplot(ratio, aes(x = year, y = ratio, group = var)) +
  187. geom_line(aes(color = var)) +
  188. geom_point(aes(color = var)) +
  189. scale_x_continuous(expand = c(0,0.5), breaks = seq(1979,2023,2), name = 'Publication year') +
  190. scale_y_continuous(expand = c(0.05,0,0.05,0),breaks = seq(0,1,0.1),name = 'Neuroimaging technique ratio') +
  191. scale_color_manual(values = brewer.pal(9, 'Pastel1')[c(1,2,5)], labels = c('EEG','MEG','M/EEG')) +
  192. theme_bw() +
  193. theme(text = element_text(size = 10, family = 'sans'),
  194. axis.title = element_text(size = 12, face = 'bold'),
  195. legend.position = c(0.94,0.93),
  196. legend.background = element_rect(colour = 'black', fill = 'white', linetype='solid', linewidth = 0.25),
  197. legend.title = element_blank())
  198. ggsave('Neuroimaging_Ratio.pdf')
  199. #EXPERIMENTAL PARADIGM (Fig. 3h, 3i, & 3j) ====
  200. #total frequency and percentage
  201. paradigm <- data.frame(paradigm = sort(unique(srdata$paradigm[1:942])),
  202. frequency = as.vector(table(srdata$paradigm[1:942])),
  203. percentage = as.vector(prop.table(table(srdata$paradigm[1:942]))*100))
  204. #pie chart
  205. ggplot(paradigm, aes(x = '', y = percentage, fill = reorder(paradigm, -percentage))) +
  206. geom_bar(stat = 'identity', color = 'black') +
  207. coord_polar('y', start = 0) +
  208. geom_text(aes(label = paste0(c(round(percentage, digits = 2)), '%')),
  209. position = position_stack(vjust = 0.5), size = 3) +
  210. scale_fill_manual(values = brewer.pal(9, 'Pastel1')[c(1,2,5)]) +
  211. theme_classic() +
  212. theme(text = element_text(size = 15, family = 'sans'),
  213. axis.title = element_blank(),
  214. axis.line = element_blank(),
  215. axis.text = element_blank(),
  216. axis.ticks = element_blank(),
  217. legend.position = 'bottom',
  218. legend.title = element_blank())
  219. ggsave('paradigm.pdf')
  220. #bar plot - rs/task & year
  221. dum <- data.frame(table(srdata$year[1:942],srdata$paradigm[1:942])) #frequency of neuroimaging technique per year
  222. dum <- rbind(dum[1:3, ], data.frame(Var1 = '1984', Var2 = 'RS', Freq = 0), dum[4:126, ]) #add missing year ('1984')
  223. dum$Var1 <- factor(dum$Var1, levels = unique(dum$Var1)) #reorder year ('1984' between '1983' and '1985')
  224. dum$Var2 <- factor(dum$Var2, levels = c('RS','Task','Both')) #reorder neuroimaging techniques (highest to lowest frequency)
  225. ggplot(dum, aes(x = Var1, y = Freq, fill = Var2)) +
  226. geom_col(color = 'black', width = 0.75, size = 0.25) +
  227. scale_x_discrete(expand = c(0,0.5), breaks = seq(1979,2023,2), name = 'Publication year') +
  228. scale_y_continuous(expand = c(0,0,0.05,0),breaks = seq(0,160,5),name = 'Number of articles') +
  229. scale_fill_manual(values = brewer.pal(9, 'Pastel1')[c(1,2,5)]) +
  230. theme_bw() +
  231. theme(text = element_text(size = 10, family = 'sans'),
  232. axis.title = element_text(size = 12, face = 'bold'),
  233. legend.position = c(0.08,0.89),
  234. legend.background = element_rect(colour = 'black', fill = 'white', linetype='solid', linewidth = 0.25),
  235. legend.title = element_blank())
  236. ggsave('paradigm_Year.pdf')
  237. #ratio of paradigm to publications per year
  238. ratio <- data.frame(year = srdata$year[1:942], var = srdata$paradigm[1:942])
  239. ratio <- ratio %>%
  240. group_by(year) %>%
  241. summarise(total_studies = n(), var1 = sum(var == 'RS'), var2 = sum(var == 'Task'), var3 = sum(var == 'Both'),
  242. ratio_var1 = var1 / total_studies, ratio_var2 = var2 / total_studies, ratio_var3 = var3 / total_studies)
  243. ratio <- ratio %>%
  244. pivot_longer(cols = starts_with('var'), names_to = 'var', values_to = 'value') %>%
  245. mutate(ratio = case_when(var == 'var1' ~ ratio_var1, var == 'var2' ~ ratio_var2, var == 'var3' ~ ratio_var3)) %>%
  246. select(year, ratio, var)
  247. ggplot(ratio, aes(x = year, y = ratio, group = var)) +
  248. geom_line(aes(color = var)) +
  249. geom_point(aes(color = var)) +
  250. scale_x_continuous(expand = c(0,0.5), breaks = seq(1979,2023,2), name = 'Publication year') +
  251. scale_y_continuous(expand = c(0.05,0,0.05,0),breaks = seq(0,1,0.1),name = 'paradigm ratio') +
  252. scale_color_manual(values = brewer.pal(9, 'Pastel1')[c(1,2,5)], labels = c('RS','Task','Both')) +
  253. theme_bw() +
  254. theme(text = element_text(size = 10, family = 'sans'),
  255. axis.title = element_text(size = 12, face = 'bold'),
  256. legend.position = c(0.93,0.89),
  257. legend.background = element_rect(colour = 'black', fill = 'white', linetype='solid', linewidth = 0.25),
  258. legend.title = element_blank())
  259. ggsave('paradigm_Ratio.pdf')
  260. #RESTING-STATE (Fig. 3k) ====
  261. #total frequency and percentage
  262. rs <- na.omit(srdata$paradigm_spec) #remove empty rows
  263. rs <- rs[rs %in% c('EO','EC','EO/EC','N/A')] #only keep values related to resting-state
  264. rs <- data.frame(rs = sort(unique(rs)),
  265. frequency = as.vector(table(rs)),
  266. percentage = as.vector(prop.table(table(rs))*100))
  267. #pie chart
  268. ggplot(rs, aes(x = '', y = percentage, fill = reorder(rs, -percentage))) +
  269. geom_bar(stat = 'identity', color = 'black') +
  270. coord_polar('y', start = 0) +
  271. geom_text(aes(label = paste0(c(round(percentage, digits = 2)), '%')),
  272. position = position_stack(vjust = 0.5), size = 3) +
  273. scale_fill_manual(values = brewer.pal(9, 'Pastel1')[c(1,2,5,4)]) +
  274. theme_classic() +
  275. theme(text = element_text(size = 15, family = 'sans'),
  276. axis.title = element_blank(),
  277. axis.line = element_blank(),
  278. axis.text = element_blank(),
  279. axis.ticks = element_blank(),
  280. legend.position = 'bottom',
  281. legend.title = element_blank())
  282. ggsave('RestingState.pdf')
  283. #EXPERIMENTAL TASK (Supp. Table 3) ====
  284. #total frequency and percentage
  285. task <- na.omit(srdata$paradigm_spec) #remove empty rows
  286. task <- task[!(task %in% c('EO','EC','EO/EC','N/A'))] #remove values related to resting-state
  287. frequency <- table(task) #calculate frequency
  288. #write table with tasks, frequency, and percentage
  289. task <- data.frame(task = as.factor(names(frequency)),
  290. frequency = as.vector(frequency),
  291. percentage = as.vector(prop.table(frequency)*100))
  292. write_xlsx(task,'Experimental_Task.xlsx')
  293. #POPULATION (Fig. 4a, 4b, & 4c) ====
  294. #re-organize aging, MCI, and dementia columns
  295. aging <- ifelse(is.na(srdata$aging[1:942]), 0, 'Healthy aging') #remove empty rows
  296. mci <- ifelse(is.na(srdata$mci[1:942]), 0, 'MCI') #remove empty rows
  297. dementia <- ifelse(is.na(srdata$dementia[1:942]), 0, 'Dementia') #remove empty rows
  298. pall <- apply(cbind(aging, mci, dementia), 1, function(x) max(x[x != '0']))
  299. #total frequency and percentage
  300. frequency <- table(pall)
  301. all <- data.frame(all = as.factor(names(frequency)), #total frequency and percentage
  302. frequency = as.vector(frequency),
  303. percentage = as.vector(prop.table(frequency)*100))
  304. #pie chart
  305. ggplot(all, aes(x = '', y = percentage, fill = reorder(all, -percentage))) +
  306. geom_bar(stat = 'identity', color = 'black') +
  307. coord_polar('y', start = 0) +
  308. geom_text(aes(label = paste0(c(round(percentage, digits = 2)), '%')),
  309. position = position_stack(vjust = 0.5), size = 3) +
  310. scale_fill_manual(values = brewer.pal(9, 'Pastel1')[c(1,2,5)]) +
  311. theme_classic() +
  312. theme(text = element_text(size = 15, family = 'sans'),
  313. axis.title = element_blank(),
  314. axis.line = element_blank(),
  315. axis.text = element_blank(),
  316. axis.ticks = element_blank(),
  317. legend.position = 'bottom',
  318. legend.title = element_blank())
  319. ggsave('Population.pdf')
  320. #bar plot - population & year
  321. dum <- data.frame(table(srdata$year[1:942],Var2 = pall)) #frequency per year
  322. dum <- rbind(dum[1:3, ], data.frame(Var1 = '1984', Var2 = 'Dementia', Freq = 0), dum[4:126, ]) #add missing year ('1984')
  323. dum$Var1 <- factor(dum$Var1, levels = unique(dum$Var1)) #reorder year
  324. ggplot(dum, aes(x = Var1, y = Freq, fill = Var2)) +
  325. geom_col(color = 'black', width = 0.75, size = 0.25) +
  326. scale_x_discrete(expand = c(0,0.75), breaks = seq(1979,2023,2), name = 'Publication year') +
  327. scale_y_continuous(expand = c(0,0,0.05,0),breaks = seq(0,160,5),name = 'Number of articles') +
  328. scale_fill_manual(values = brewer.pal(9, 'Pastel1')[c(1,2,5)]) +
  329. theme_bw() +
  330. theme(text = element_text(size = 10, family = 'sans'),
  331. axis.title = element_text(size = 12, face = 'bold'),
  332. legend.position = c(0.11,0.89),
  333. legend.background = element_rect(colour = 'black', fill = 'white', linetype='solid', linewidth = 0.25),
  334. legend.title = element_blank())
  335. ggsave('Population_Year.pdf')
  336. #ratio of population to publications per year
  337. ratio <- data.frame(year = srdata$year[1:942], var = pall)
  338. ratio <- ratio %>%
  339. group_by(year) %>%
  340. summarise(total_studies = n(), var1 = sum(var == 'Dementia'), var2 = sum(var == 'MCI'), var3 = sum(var == 'Healthy aging'),
  341. ratio_var1 = var1 / total_studies, ratio_var2 = var2 / total_studies, ratio_var3 = var3 / total_studies)
  342. ratio <- ratio %>%
  343. pivot_longer(cols = starts_with('var'), names_to = 'var', values_to = 'value') %>%
  344. mutate(ratio = case_when(var == 'var1' ~ ratio_var1, var == 'var2' ~ ratio_var2, var == 'var3' ~ ratio_var3)) %>%
  345. select(year, ratio, var)
  346. ggplot(ratio, aes(x = year, y = ratio, group = var)) +
  347. geom_line(aes(color = var)) +
  348. geom_point(aes(color = var)) +
  349. scale_x_continuous(expand = c(0,0.5), breaks = seq(1979,2023,2), name = 'Publication year') +
  350. scale_y_continuous(expand = c(0.05,0,0.05,0),breaks = seq(0,1,0.1),name = 'Population ratio') +
  351. scale_color_manual(values = brewer.pal(9, 'Pastel1')[c(1,2,5)], labels = c('Dementia', 'MCI','Healthy aging')) +
  352. theme_bw() +
  353. theme(text = element_text(size = 10, family = 'sans'),
  354. axis.title = element_text(size = 12, face = 'bold'),
  355. legend.position = c(0.89,0.89),
  356. legend.background = element_rect(colour = 'black', fill = 'white', linetype='solid', linewidth = 0.25),
  357. legend.title = element_blank())
  358. ggsave('Population_Ratio.pdf')
  359. #DEMENTIA (Fig. 4d & 4e) ====
  360. #total frequency and percentage
  361. dementia <- data.frame(aging = sort(unique(srdata$dementia[1:942])),
  362. frequency = as.vector(table(srdata$dementia[1:942])),
  363. percentage = as.vector(prop.table(table(srdata$dementia[1:942]))*100))
  364. #bar plot
  365. popu <- data.frame(table(srdata$neuroimaging,srdata$dementia)) #number of EEG + MEG studies
  366. popu <- popu[popu$Freq >= 10, ] #remove single studies
  367. total_frequency <- aggregate(Freq ~ Var2, data = popu, FUN = sum)
  368. ordered_groups <- total_frequency$Var2[order(total_frequency$Freq, decreasing = TRUE)]
  369. popu$Var2 <- factor(popu$Var2, levels = ordered_groups)
  370. ggplot(popu, aes(x = Var2, y = Freq, fill = Var1)) +
  371. geom_col(stat = 'identity', color = 'black', width = 0.75, size = 0.25) +
  372. scale_x_discrete(expand = c(0,0.5), name = 'Dementia',
  373. labels = c('ADD vs HC', 'ADD vs MCI vs HC', 'ADD', 'ADD vs YHC vs OHC', 'ADD vs aMCI vs HC', 'ADD vs VD vs HC')) +
  374. scale_y_continuous(expand = c(0,0,0.05,0), breaks = seq(0,200,5), name = 'Number of articles') +
  375. scale_fill_brewer(palette = 'Pastel1') +
  376. theme_bw() +
  377. theme(text = element_text(size = 10, family = 'sans'),
  378. axis.title = element_text(size = 12, face = 'bold'),
  379. legend.position = c(0.93,0.94),
  380. legend.background = element_rect(colour = 'black', fill = 'white', linetype='solid', linewidth = 0.25),
  381. legend.title = element_blank())
  382. ggsave('Dementia.pdf')
  383. #bar plot - types of dementia
  384. type <- data.frame(group = na.omit(srdata$dementia)) #all groups
  385. type$add <- ifelse(grepl('ADD', type$group), 'ADD', NA) #Alzheimer's disease
  386. type$pdd <- ifelse(grepl('PDD', type$group), 'PDD', NA) #Parkinson's disease
  387. type$ftd <- ifelse(grepl('FTD', type$group), 'FTD', NA) #Frontotemporal dementia
  388. type$dlb <- ifelse(grepl('DLB', type$group), 'DLB', NA) #Dementia with Lewy bodies
  389. type$vd <- ifelse(grepl('VD', type$group), 'VD', NA) #Vascular dementia
  390. type$deu <- ifelse(grepl('DEM', type$group), 'DEM', NA) #Dementia (unknown etiology)
  391. type$other <- ifelse(!grepl('[ADD|PDD|FTD|DLB|VD|DEM]', type$group), 'OTHER', NA) #other types
  392. type_freq <- data.frame(dem = c('ADD','PDD','FTD','DLB','VD','DEU'),
  393. frequency = c(table(type$add),table(type$pdd),table(type$ftd),table(type$dlb),table(type$vd),table(type$deu)))
  394. ggplot(type_freq, aes(x = reorder(dem, -frequency), y = frequency, fill = total)) +
  395. geom_col(color = 'black', fill = '#FBB4AE', width = 0.75, size = 0.25) +
  396. scale_x_discrete(expand = c(0,0.5), name = 'Type') +
  397. scale_y_continuous(expand = c(0,0,0.05,0),breaks = seq(0,500,30),name = 'Number of publications') +
  398. theme_bw() +
  399. theme(text = element_text(size = 12, family = 'sans'),
  400. axis.title = element_text(face = 'bold'))
  401. ggsave('Dementia_Type.pdf')
  402. #HEALTHY AGING (Fig. 4f) ====
  403. #total frequency and percentage
  404. aging <- data.frame(aging = sort(unique(srdata$aging[1:942])),
  405. frequency = as.vector(table(srdata$aging[1:942])),
  406. percentage = as.vector(prop.table(table(srdata$aging[1:942]))*100))
  407. #bar plot
  408. popu <- data.frame(table(srdata$neuroimaging,srdata$aging)) #number of EEG + MEG studies
  409. popu <- popu[popu$Freq >= 2, ] #remove single studies
  410. total_frequency <- aggregate(Freq ~ Var2, data = popu, FUN = sum)
  411. ordered_groups <- total_frequency$Var2[order(total_frequency$Freq, decreasing = TRUE)]
  412. popu$Var2 <- factor(popu$Var2, levels = ordered_groups)
  413. ggplot(popu, aes(x = Var2, y = Freq, fill = Var1)) +
  414. geom_bar(stat = 'identity', color = 'black', width = 0.75, size = 0.25) +
  415. scale_x_discrete(expand = c(0,0.5), name = 'Healthy aging',
  416. labels = c('Y vs O', 'O', 'Lifespan', 'Y vs M vs O', 'M vs O')) +
  417. scale_y_continuous(expand = c(0,0,0.05,0), breaks = seq(0,160,5), name = 'Number of articles') +
  418. scale_fill_manual(values = brewer.pal(9, 'Pastel1')[c(1,2,5)], labels = c('EEG', 'MEG', 'M/EEG')) +
  419. theme_bw() +
  420. theme(text = element_text(size = 10, family = 'sans'),
  421. axis.title = element_text(size = 12, face = 'bold'),
  422. legend.position = c(0.92,0.92),
  423. legend.background = element_rect(colour = 'black', fill = 'white', linetype='solid', linewidth = 0.25),
  424. legend.title = element_blank())
  425. ggsave('HealthyAging.pdf')
  426. #MILD COGNITIVE IMPAIRMENT (Fig. 4g) ====
  427. #total frequency and percentage
  428. mci <- data.frame(aging = sort(unique(srdata$mci[1:942])),
  429. frequency = as.vector(table(srdata$mci[1:942])),
  430. percentage = as.vector(prop.table(table(srdata$mci[1:942]))*100))
  431. #bar plot
  432. popu <- data.frame(table(srdata$neuroimaging,srdata$mci)) #number of EEG + MEG studies
  433. popu <- popu[popu$Freq >= 5, ] #remove single studies
  434. total_frequency <- aggregate(Freq ~ Var2, data = popu, FUN = sum)
  435. ordered_groups <- total_frequency$Var2[order(total_frequency$Freq, decreasing = TRUE)]
  436. popu$Var2 <- factor(popu$Var2, levels = ordered_groups)
  437. ggplot(popu, aes(x = Var2, y = Freq, fill = Var1)) +
  438. geom_col(stat = 'identity', color = 'black', width = 0.75, size = 0.25) +
  439. scale_x_discrete(expand = c(0,0.5), name = 'Mild cognitive impairment',
  440. labels = c('MCI vs HC', 'aMCI vs HC', 'ADMCI vs HC', 'MCI vs YHC vs OHC','Stable vs Progressive MCI', 'MCI vs SCD vs HC')) +
  441. scale_y_continuous(expand = c(0,0,0.05,0), breaks = seq(0,200,5), name = 'Number of articles') +
  442. scale_fill_brewer(palette = 'Pastel1') +
  443. theme_bw() +
  444. theme(text = element_text(size = 10, family = 'sans'),
  445. axis.title = element_text(size = 12, face = 'bold'),
  446. legend.position = c(0.93,0.94),
  447. legend.background = element_rect(colour = 'black', fill = 'white', linetype='solid', linewidth = 0.25),
  448. legend.title = element_blank())
  449. ggsave('MCI.pdf')
  450. #bar plot - types of mci
  451. type <- data.frame(comp = na.omit(srdata$mci))
  452. type$mci <- ifelse(!grepl('[AD|PD|a|STABLE]', type$comp), 'x', NA) #MCI
  453. type$admci <- ifelse(grepl('ADMCI', type$comp), 'x', NA) #ADMCI
  454. type$pdmci <- ifelse(grepl('PDMCI', type$comp), 'x', NA) #PDMCI
  455. type$amci <- ifelse(grepl('aMCI', type$comp), 'x', NA) #aMCI
  456. type$promci <- ifelse(grepl('PROGREMCI', type$comp), 'x', NA) #Progressive MCI
  457. type_freq <- data.frame(mci = c('MCI','ADMCI','PDMCI','aMCI','PROMCI'),
  458. frequency = c(table(type$mci),table(type$admci),table(type$pdmci),
  459. table(type$amci),table(type$promci)))
  460. ggplot(type_freq, aes(x = reorder(mci, -frequency), y = frequency)) +
  461. geom_col(color = 'black', fill = '#FBB4AE', width = 0.75, size = 0.25) +
  462. scale_x_discrete(expand = c(0,0.5), name = 'Type') +
  463. scale_y_continuous(expand = c(0,0,0.05,0),breaks = seq(0,500,5),name = 'Number of publications') +
  464. theme_bw() +
  465. theme(text = element_text(size = 12, family = 'sans'),
  466. axis.title = element_text(face = 'bold'))
  467. ggsave('Dementia_Type.pdf')
  468. #ANALYSIS (Fig. 5a, 5b, & 5c) ====
  469. #total frequency and percentage
  470. analysis <- data.frame(analysis = sort(unique(srdata$analysis[1:942])),
  471. frequency = as.vector(table(srdata$analysis[1:942])),
  472. percentage = as.vector(prop.table(table(srdata$analysis[1:942]))*100))
  473. #pie chart
  474. ggplot(analysis, aes(x = '', y = percentage, fill = reorder(analysis, -percentage))) +
  475. geom_bar(stat = 'identity', color = 'black') +
  476. coord_polar('y', start = 0) +
  477. geom_text(aes(label = paste0(c(round(percentage, digits = 2)), '%')),
  478. position = position_stack(vjust = 0.5), size = 3) +
  479. scale_fill_manual(values = brewer.pal(9, 'Pastel1')[c(1,2,5,4,7,9)]) +
  480. theme_classic() +
  481. theme(text = element_text(size = 15, family = 'sans'),
  482. axis.title = element_blank(),
  483. axis.line = element_blank(),
  484. axis.text = element_blank(),
  485. axis.ticks = element_blank(),
  486. legend.position = 'bottom',
  487. legend.title = element_blank())
  488. ggsave('Analysis.pdf')
  489. #bar plot - analysis & year
  490. dum <- data.frame(table(srdata$year[1:942],srdata$analysis[1:942]))
  491. dum <- rbind(dum[1:3, ], data.frame(Var1 = '1984', Var2 = 'Complexity', Freq = 0), dum[4:252, ]) #add missing year ('1984')
  492. dum$Var1 <- factor(dum$Var1, levels = unique(dum$Var1)) #reorder year ('1984' between '1983' and '1985')
  493. dum$Var2 <- factor(dum$Var2, levels = c('Spectral','Event-related','Functional connectivity',
  494. 'Mixed','Complexity','Other')) #reorder analysis (highest to lowest frequency)
  495. ggplot(dum, aes(x = Var1, y = Freq, fill = Var2)) +
  496. geom_col(color = 'black', width = 0.75, size = 0.25) +
  497. scale_x_discrete(expand = c(0,0.5), breaks = seq(1979,2023,2), name = 'Publication year') +
  498. scale_y_continuous(expand = c(0,0,0.05,0), breaks = seq(0,800,10), name = 'Number of articles') +
  499. scale_fill_manual(values = brewer.pal(9, 'Pastel1')[c(1,2,5,4,7,9)]) +
  500. theme_bw() +
  501. theme(text = element_text(size = 10, family = 'sans'),
  502. axis.title = element_text(size = 12, face = 'bold'),
  503. legend.position = c(0.15,0.81),
  504. legend.background = element_rect(colour = 'black', fill = 'white', linetype='solid', linewidth = 0.25),
  505. legend.title = element_blank())
  506. ggsave('Analysis_Year.pdf')
  507. #ratio of analysis to publications per year
  508. ratio <- data.frame(year = srdata$year[1:942], var = srdata$analysis[1:942])
  509. ratio <- ratio %>%
  510. group_by(year) %>%
  511. summarise(total_studies = n(), var1 = sum(var == 'Spectral'), var2 = sum(var == 'Event-related'), var3 = sum(var == 'Functional connectivity'), var4 = sum(var == 'Mixed'), var5 = sum(var == 'Complexity'), var6 = sum(var == 'Other'),
  512. ratio_var1 = var1 / total_studies, ratio_var2 = var2 / total_studies, ratio_var3 = var3 / total_studies, ratio_var4 = var4 / total_studies, ratio_var5 = var5 / total_studies, ratio_var6 = var6 / total_studies)
  513. ratio <- ratio %>%
  514. pivot_longer(cols = starts_with('var'), names_to = 'var', values_to = 'value') %>%
  515. mutate(ratio = case_when(var == 'var1' ~ ratio_var1, var == 'var2' ~ ratio_var2, var == 'var3' ~ ratio_var3, var == 'var4' ~ ratio_var4, var == 'var5' ~ ratio_var5, var == 'var6' ~ ratio_var6)) %>%
  516. select(year, ratio, var)
  517. ggplot(ratio, aes(x = year, y = ratio, group = var)) +
  518. geom_line(aes(color = var)) +
  519. geom_point(aes(color = var)) +
  520. scale_x_continuous(expand = c(0,0.5), breaks = seq(1979,2023,2), name = 'Publication year') +
  521. scale_y_continuous(expand = c(0.05,0,0.05,0),breaks = seq(0,1,0.1),name = 'Analysis ratio') +
  522. scale_color_manual(values = brewer.pal(9, 'Pastel1')[c(1,2,5,4,7,9)], labels = c('Spectral','Event-related','Functional connectivity',
  523. 'Mixed','Complexity','Other')) +
  524. theme_bw() +
  525. theme(text = element_text(size = 10, family = 'sans'),
  526. axis.title = element_text(size = 12, face = 'bold'),
  527. legend.position = c(0.85,0.81),
  528. legend.background = element_rect(colour = 'black', fill = 'white', linetype='solid', linewidth = 0.25),
  529. legend.title = element_blank())
  530. ggsave('Analysis_Ratio.pdf')
  531. #FEATURES (Fig. 5d & Supp. Table 4) ====
  532. #total frequency and percentage - spectral
  533. spectral <- data.frame(spectral = sort(unique(srdata$spectral)), #total frequency and percentage
  534. frequency = as.vector(table(srdata$spectral)),
  535. percentage = as.vector(prop.table(table(srdata$spectral))*100))
  536. write_xlsx(spectral,'Spectral.xlsx')
  537. #total frequency and percentage - complexity
  538. complexity <- data.frame(complexity = sort(unique(srdata$complexity)), #total frequency and percentage
  539. frequency = as.vector(table(srdata$complexity)),
  540. percentage = as.vector(prop.table(table(srdata$complexity))*100))
  541. write_xlsx(complexity,'Complexity.xlsx')
  542. #total frequency and percentage - connectivity
  543. connectivity <- data.frame(connectivity = sort(unique(srdata$connectivity)), #total frequency and percentage
  544. frequency = as.vector(table(srdata$connectivity)),
  545. percentage = as.vector(prop.table(table(srdata$connectivity))*100))
  546. write_xlsx(connectivity,'Connectivity.xlsx')
  547. #total frequency and percentage - connectivity
  548. event_related <- data.frame(event_related = sort(unique(srdata$event_related)), #total frequency and percentage
  549. frequency = as.vector(table(srdata$event_related)),
  550. percentage = as.vector(prop.table(table(srdata$event_related))*100))
  551. write_xlsx(event_related,'Event_Related.xlsx')
  552. #total frequency and percentage - other
  553. other <- data.frame(other = sort(unique(srdata$other)), #total frequency and percentage
  554. frequency = as.vector(table(srdata$other)),
  555. percentage = as.vector(prop.table(table(srdata$other))*100))
  556. write_xlsx(other,'Other.xlsx')
  557. #select 3 most used features
  558. spectral <- spectral[order(spectral$frequency,decreasing = TRUE),]
  559. spectral <- spectral[1:3,]
  560. complexity <- complexity[order(complexity$frequency,decreasing = TRUE),]
  561. complexity <- complexity[1:3,]
  562. connectivity <- connectivity[order(connectivity$frequency,decreasing = TRUE),]
  563. connectivity <- connectivity[1:3,]
  564. event_related <- event_related[order(event_related$frequency,decreasing = TRUE),]
  565. event_related <- event_related[1:3,]
  566. other <- other[order(other$frequency,decreasing = TRUE),]
  567. other <- other[1:3,]
  568. #bar plot
  569. features <- data.frame(feature = c(spectral$spectral,complexity$complexity,connectivity$connectivity,event_related$event_related,other$other),
  570. frequency = c(spectral$frequency,complexity$frequency,connectivity$frequency,event_related$frequency,other$frequency),
  571. type = c('Spectral','Spectral','Spectral','Complexity','Complexity','Complexity','Functional connectivity','Functional connectivity','Functional connectivity','Event-related','Event-related','Event-related','Other','Other','Other'))
  572. ggplot(features, aes(x = reorder(feature,-frequency), y = frequency, fill = type)) +
  573. geom_bar(stat = 'identity', color = 'black', width = 0.75, size = 0.25) +
  574. scale_x_discrete(expand = c(0,0.5), name = 'Feature') +
  575. scale_y_continuous(expand = c(0,0,0.05,0), breaks = seq(0,300,10), name = 'Number of articles') +
  576. scale_fill_manual(values = brewer.pal(9, 'Pastel1')[c(1,2,5,4,9)],
  577. labels = c('Spectral','Event-related','Functional connectivity','Complexity','Other')) +
  578. theme_bw() +
  579. theme(text = element_text(size = 10, family = 'sans'),
  580. axis.title = element_text(size = 12, face = 'bold'),
  581. legend.position = c(0.88,0.88),
  582. legend.background = element_rect(colour = 'black', fill = 'white', linetype='solid', linewidth = 0.25),
  583. legend.title = element_blank())
  584. ggsave('Features.pdf')
  585. #MACHINE LEARNING (Fig. 5e, 5f, & 5g) ====
  586. #total frequency and percentage
  587. machine <- data.frame(machine = unique(srdata$machine_learning[1:942]),
  588. frequency = as.vector(table(srdata$machine_learning)),
  589. percentage = as.vector(prop.table(table(srdata$machine_learning))*100))
  590. #pie chart
  591. ggplot(machine, aes(x = '', y = percentage, fill = machine)) +
  592. geom_bar(stat = 'identity', color = 'black') +
  593. coord_polar('y', start = 0) +
  594. geom_text(aes(label = paste0(c(round(percentage, digits = 2)), '%')),
  595. position = position_stack(vjust = 0.5), size = 3) +
  596. scale_fill_brewer(palette = 'Pastel1') +
  597. theme_classic() +
  598. theme(text = element_text(size = 15, family = 'sans'),
  599. axis.title = element_blank(),
  600. axis.line = element_blank(),
  601. axis.text = element_blank(),
  602. axis.ticks = element_blank(),
  603. legend.position = 'bottom',
  604. legend.title = element_blank())
  605. ggsave('MachineLearning.pdf')
  606. #bar plot - machine learning & year
  607. dum <- data.frame(table(srdata$year[1:942],srdata$machine_learning[1:942])) #frequency per year
  608. dum <- rbind(dum[1:3, ], data.frame(Var1 = '1984', Var2 = 'Yes', Freq = 0), dum[4:126, ]) #add missing year ('1984')
  609. dum$Var1 <- factor(dum$Var1, levels = unique(dum$Var1)) #reorder year
  610. dum <- dum[complete.cases(dum), ] #remove empty rows
  611. ggplot(dum, aes(x = Var1, y = Freq, fill = Var2)) +
  612. geom_col(color = 'black', width = 0.75, size = 0.25) +
  613. scale_x_discrete(expand = c(0,0.5), breaks = seq(1979,2023,2), name = 'Year') +
  614. scale_y_continuous(expand = c(0,0,0.05,0), breaks = seq(0,800,10), name = 'Number of publications') +
  615. scale_fill_brewer(palette = 'Pastel1', direction = 1, labels = c('No ML','ML')) +
  616. theme_bw() +
  617. theme(text = element_text(size = 10, family = 'sans'),
  618. axis.title = element_text(size = 12, face = 'bold'),
  619. legend.position = c(0.07,0.94),
  620. legend.background = element_rect(colour = 'black', fill = 'white', linetype='solid', linewidth = 0.25),
  621. legend.title = element_blank())
  622. ggsave('MachineLearning_Year.pdf')
  623. #ratio of machine learning studies to publications per year
  624. ratio <- data.frame(year = srdata$year[1:942], var = srdata$machine_learning[1:942])
  625. ratio <- ratio %>%
  626. group_by(year) %>%
  627. summarise(total_studies = n(), var1 = sum(var == 'No'), var2 = sum(var == 'Yes'),
  628. ratio_var1 = var1 / total_studies, ratio_var2 = var2 / total_studies)
  629. ratio <- ratio %>%
  630. pivot_longer(cols = starts_with('var'), names_to = 'var', values_to = 'value') %>%
  631. mutate(ratio = ifelse(var == 'var1', ratio_var1, ratio_var2)) %>%
  632. select(year, ratio, var)
  633. ggplot(ratio, aes(x = year, y = ratio, group = var)) +
  634. geom_line(aes(color = var)) +
  635. geom_point(aes(color = var)) +
  636. scale_x_continuous(expand = c(0,0.5), breaks = seq(1979,2023,2), name = 'Publication year') +
  637. scale_y_continuous(expand = c(0.05,0,0.05,0),breaks = seq(0,1,0.1),name = 'Machine learning ratio') +
  638. scale_color_brewer(palette = 'Pastel1', labels = c('No ML', 'ML')) +
  639. theme_bw() +
  640. theme(text = element_text(size = 10, family = 'sans'),
  641. axis.title = element_text(size = 12, face = 'bold'),
  642. legend.position = c(0.9,0.5),
  643. legend.background = element_rect(colour = 'black', fill = 'white', linetype='solid', linewidth = 0.25),
  644. legend.title = element_blank())
  645. ggsave('MachineLearning_Ratio.pdf')
  646. #SOURCE RECONSTRUCTION (Fig. 5h, 5i, & 5j) ====
  647. #total frequency and percentage
  648. source <- data.frame(source = unique(srdata$source_reconstruction[1:942]),
  649. frequency = as.vector(table(srdata$source_reconstruction)),
  650. percentage = as.vector(prop.table(table(srdata$source_reconstruction))*100))
  651. #pie chart
  652. ggplot(source, aes(x = '', y = percentage, fill = source)) +
  653. geom_bar(stat = 'identity', color = 'black') +
  654. coord_polar('y', start = 0) +
  655. geom_text(aes(label = paste0(c(round(percentage, digits = 2)), '%')),
  656. position = position_stack(vjust = 0.5), size = 3) +
  657. scale_fill_brewer(palette = 'Pastel1') +
  658. theme_classic() +
  659. theme(text = element_text(size = 15, family = 'sans'),
  660. axis.title = element_blank(),
  661. axis.line = element_blank(),
  662. axis.text = element_blank(),
  663. axis.ticks = element_blank(),
  664. legend.position = 'bottom',
  665. legend.title = element_blank())
  666. ggsave('SourceReconstruction.pdf')
  667. #bar plot - neuroimaging & source reconstruction
  668. dum <- data.frame(table(srdata$neuroimaging[1:942],srdata$source_reconstruction[1:942]))
  669. ggplot(dum, aes(x = Var1, y = Freq, fill = Var2)) +
  670. geom_col(color = 'black', width = 0.75, size = 0.25) +
  671. scale_x_discrete(limits = c('EEG','MEG','M/EEG'), expand = c(0,0.5), name = 'Neuroimaging technique') +
  672. scale_y_continuous(expand = c(0,0,0.05,0), breaks = seq(0,800,40), name = 'Number of articles') +
  673. scale_fill_brewer(palette = 'Pastel1', labels = c('No SR', 'SR')) +
  674. theme_bw() +
  675. theme(text = element_text(size = 10, family = 'sans'),
  676. axis.title = element_text(size = 12, face = 'bold'),
  677. legend.position = c(0.9,0.9),
  678. legend.background = element_rect(colour = 'black', fill = 'white', linetype='solid', linewidth = 0.25),
  679. legend.title = element_blank())
  680. ggsave('SourceReconstruction_Year.pdf')
  681. #ratio of source reconstruction studies to year
  682. ratio <- data.frame(year = srdata$year[1:942], var = srdata$source_reconstruction[1:942])
  683. ratio <- ratio %>%
  684. group_by(year) %>%
  685. summarise(total_studies = n(), var1 = sum(var == 'No'), var2 = sum(var == 'Yes'),
  686. ratio_var1 = var1 / total_studies, ratio_var2 = var2 / total_studies)
  687. ratio <- ratio %>%
  688. pivot_longer(cols = starts_with('var'), names_to = 'var', values_to = 'value') %>%
  689. mutate(ratio = ifelse(var == 'var1', ratio_var1, ratio_var2)) %>%
  690. select(year, ratio, var)
  691. ggplot(ratio, aes(x = year, y = ratio, group = var)) +
  692. geom_line(aes(color = var)) +
  693. geom_point(aes(color = var)) +
  694. scale_x_continuous(expand = c(0,0.5), breaks = seq(1979,2023,2), name = 'Publication year') +
  695. scale_y_continuous(expand = c(0.05,0,0.05,0),breaks = seq(0,1,0.1),name = 'Source reconstruction ratio') +
  696. scale_color_brewer(palette = 'Pastel1', labels = c('No SR', 'SR')) +
  697. theme_bw() +
  698. theme(text = element_text(size = 10, family = 'sans'),
  699. axis.title = element_text(size = 12, face = 'bold'),
  700. legend.position = c(0.9,0.5),
  701. legend.background = element_rect(colour = 'black', fill = 'white', linetype='solid', linewidth = 0.25),
  702. legend.title = element_blank())
  703. ggsave('SourceReconstruction_Ratio.pdf')

code.r at commit c0f73c0, no license · at the source

Overview

Authors: Gemma Fernández-Rubio1, Peter Vuust1, Morten L. Kringelbach1,2,3, Leonardo Bonetti1,2,3
  1. Center for Music in the Brain, Department of Clinical Medicine, Aarhus University, & The Royal Academy of Music, Aarhus/Aalborg,Aarhus, Denmark
  2. Centre for Eudaimonia and Human Flourishing, Linacre College, University of Oxford,Oxford, UK
  3. Department of Psychiatry, University of Oxford,Oxford, UK
Institutions: Aarhus University (Denmark); University of Oxford (United Kingdom)
Journal: n/a, volume 230, issue 8, article 146
Dates: received 19 May 2025; accepted 4 September 2025; published online 24 September 2025; in print 2025
Type: Research article · Language: English
License: none stated
Identifiers: DOI 10.1007/s00429-025-03012-5 · PMCID PMC12460461 · OpenAlex W4414472522
Open access: hybrid, a free copy (OpenAlex)
Status: code verified
Categories: EEG (modality), MEG (modality), human (organism), Alzheimer's / dementia (population), clinical / translational (subfield)
Keywords: Dementia, Mild cognitive impairment (MCI), Healthy aging, Electroencephalography (EEG), Magnetoencephalography (MEG)
MeSH: Aging*, Brain*, Cognitive Dysfunction*, Dementia*, Healthy Aging*, Aged, Electroencephalography, Humans, Magnetoencephalography (* major topic)
Topic: EEG and Brain-Computer Interfaces (Cognitive Neuroscience, Neuroscience), according to OpenAlex
Funding: Aarhus Universitet
Citations: cited by 9 papers (Europe PMC); 119 references in the paper

Abstract

The abstract is not reproduced here: the paper's license (none stated) does not allow it. Read it in the paper, at the publisher or on Europe PMC.

Repository

Its files are read in the Code ↔ Paper reader above, with 1 match between paragraphs and lines of code.

gemmaferu/systematic-review-neurophysiology-aging

License: none: the authors keep all their rights
State: the link answers, verified on 26 September 2026
Evidence: files inventoried
Commit: c0f73c077e339416fd099c9c1b749759cbed20ca, 13 September 2024
Languages: R (1)
Size: 2 files, 1 script
Software Heritage: not archived
Found in: “Data availability”
Holds: README
Not found: license file, CITATION.cff, environment file, tests, continuous integration, documentation
Tools: ggplot2 (1 file), tidyverse (1 file)
Availability: 1 check, the latest on 26 September 2026: the link answers
  • 26 September 2026: the link answers
2 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;
  • 1 match between paragraphs of the paper and lines of the code (method lexical-v1);
  • neither the text of the paper nor the code itself.

Its JSON (tracing-map.json) is deposited on Zenodo with its DOI once the map is validated.

Data

No dataset and no data link were found in the paper.

Code and data availability statement

The paper has a code and data availability statement. Its license (none stated) does not allow reproducing it here; in short, from what the harvester recognized in it:

Read it in the paper: doi.org/10.1007/s00429-025-03012-5.

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

  • Publisher: n/a → Springer Science+Business Media

Version 1, 27 September 2026: the first record

Recorded: type, language, journal, volume, issue, pages, dates, 4 authors, 5 keywords, 9 MeSH terms, 1 funder, 111 references.

Cite

This paper

Fernández-Rubio, G., Vuust, P., Kringelbach, M. L., & Bonetti, L. (2025). The neurophysiology of healthy and pathological aging: a comprehensive systematic review. Brain Structure & Function, 230(8), 146. https://doi.org/10.1007/s00429-025-03012-5

BibTeX

@article{fernandezrubio2025neurophysiology,
author = {Fernández-Rubio, Gemma and Vuust, Peter and Kringelbach, Morten L. and Bonetti, Leonardo},
title = {{The neurophysiology of healthy and pathological aging: a comprehensive systematic review}},
journal = {Brain Structure \& Function},
year = {2025},
volume = {230},
number = {8},
pages = {146},
publisher = {Springer Science+Business Media},
issn = {1863-2653},
doi = {10.1007/s00429-025-03012-5},
url = {https://doi.org/10.1007/s00429-025-03012-5},
pmcid = {PMC12460461}
}

RIS

TY - JOUR
AU - Fernández-Rubio, Gemma
AU - Vuust, Peter
AU - Kringelbach, Morten L.
AU - Bonetti, Leonardo
TI - The neurophysiology of healthy and pathological aging: a comprehensive systematic review
T2 - Brain Structure & Function
J2 - Brain Struct Funct
PY - 2025
DA - 2025
VL - 230
IS - 8
SP - 146
SN - 1863-2653
PB - Springer Science+Business Media
DO - 10.1007/s00429-025-03012-5
UR - https://doi.org/10.1007/s00429-025-03012-5
LA - en
ER -

CSL-JSON

{
"id": "10.1007/s00429-025-03012-5",
"type": "article-journal",
"title": "The neurophysiology of healthy and pathological aging: a comprehensive systematic review",
"container-title": "Brain Structure & Function",
"author": [
{
"family": "Fernández-Rubio",
"given": "Gemma"
},
{
"family": "Vuust",
"given": "Peter"
},
{
"family": "Kringelbach",
"given": "Morten L."
},
{
"family": "Bonetti",
"given": "Leonardo"
}
],
"container-title-short": "Brain Struct Funct",
"volume": "230",
"issue": "8",
"page": "146",
"DOI": "10.1007/s00429-025-03012-5",
"PMCID": "PMC12460461",
"ISSN": "1863-2653",
"publisher": "Springer Science+Business Media",
"URL": "https://doi.org/10.1007/s00429-025-03012-5",
"language": "en",
"issued": {
"date-parts": [
[
2025
]
]
}
}

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/nyas.70349 [code]
FREQ-NESS Reveals Age-Related Differences in Frequency-Resolved Brain Networks During Auditory Recognition and Resting State.
Journal: Annals of the New York Academy of Sciences
In common: MEG, 30 references, 2 authors
[2] doi:10.1002/advs.77857 [code]
Brain Network Dynamics of Local and Global Predictive Processing in Aging.
Journal: Advanced science (Weinheim, Baden-Wurttemberg, Germany)
In common: 3 references, 2 authors
[3] doi:10.1126/sciadv.aee2305 [code]
Prediction of mild cognitive impairment progression using time-sensitive multimodal biomarkers.
Journal: Science advances
In common: ggplot2, tidyverse, MEG, Alzheimer's / dementia, clinical / translational, 2 references
[4] doi:10.1007/s10548-026-01196-5
A Quantitative Comparison of Two Methods for Higher-Order EEG Microstate Syntax Analysis.
Journal: Brain topography
In common: Alzheimer's / dementia, EEG, 3 references
[5] doi:10.1093/cercor/bhag113 [code]
Long-term reliability and stability of parameterized resting state EEG: evidence from a five-year follow-up.
Journal: Cerebral cortex (New York, N.Y. : 1991)
In common: ggplot2, tidyverse, EEG, 2 references
[6] doi:10.1523/eneuro.0407-25.2026 [code]
Connectome-Guided Personalization of Optimal TDCS Intervention Selection in Alzheimer's Disease: A Modeling Study.
Journal: eNeuro
In common: MEG, Alzheimer's / dementia, 2 references
[7] doi:10.1093/braincomms/fcag329
A meta-analysis of periodic and aperiodic electrophysiological features in Parkinson's disease.
Journal: Brain communications
In common: MEG, EEG, 2 references
[8] doi:10.3390/bios16050258 [code]
A Two-Stage EEG Microstate Fusion Framework for Dementia Screening and Alzheimer's Disease/Frontotemporal Dementia Differentiation.
Journal: Biosensors
In common: Alzheimer's / dementia, EEG, clinical / translational, 2 references
[9] doi:10.1038/s41514-026-00390-w [code]
Mild cognitive impairment cases affect the predictive power of Alzheimer's disease diagnostic models using routine clinical variables.
Journal: npj aging
In common: ggplot2, tidyverse, Alzheimer's / dementia, clinical / translational, 1 reference
[10] doi:10.3389/fnins.2026.1871265
Clustered pattern projection for EEG dementia classification: evaluating the reliability of disorder patterns.
Journal: Frontiers in neuroscience
In common: Alzheimer's / dementia, EEG, 2 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.

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.