OSCR

The longitudinal development of intrinsic timescales in infancy and their relation to alpha brain rhythm.

Code ↔ Paper

9 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.

5 blocks of code here have a permanent identifier (oscr:b:…), listed with the matches below: citable for good, with a page of its own. Select a match and press Cite to copy it. What a block identifier is.

The 9 matches · 2 of them tie a paragraph to a whole file without given lines: weak matches, whose lines are not tinted
  1. [1] § Materials and methods › Analysis › Relationship between intrinsic timescales and properties of alpha activity ↔ 5_Tau_Correlations_AlphaProperties.R, lines 40 to 128 · score 0.72 · alpha band, alpha properties, oscillatory power, peak frequency, R2, fit · block oscr:b:8TNZW1Y7J0SRC-V · Report a mismatch
  2. [2] § Materials and methods › Analysis › Longitudinal analysis ↔ 4_Tau_Development_LMMAnalysis.R, lines 71 to 128 · score 0.70 · random slope, random intercept, lme4, LMM, Squared, covariates · block oscr:b:TM30H014MKQTV-A · Report a mismatch
  3. [3] § Materials and methods › Electroencephalography parameters › Intrinsic timescales ↔ tau_estimate.py, lines 167 to 234 · score 0.67 · exponential fit models, autocorrelation decays, optimization, curves, lag, timescale · block oscr:b:9VGCM4C8KQ6PG-I · Report a mismatch
  4. [4] § Materials and methods › Analysis › Relationship between intrinsic timescales and properties of alpha activity ↔ AdditionalScripts/SAF_ModelFit_OscillatoryPowerSpectrum.R, the whole file · a weak match · score 0.61 · power spectrum, oscillatory power, peak frequency, fit, band, models · block oscr:b:D4RF73H376H8A-I · Report a mismatch
  5. [5] § Materials and methods › Electroencephalography parameters › Alpha-band oscillatory parameters and rhythmicity ↔ AdditionalScripts/SAF_ModelFit_OscillatoryPowerSpectrum.R, the whole file · a weak match · score 0.61 · oscillatory power, power spectrum, peak frequency, absolute, band, exploratory · block oscr:b:D4RF73H376H8A-I · Report a mismatch
  6. [6] § Materials and methods › Electroencephalography parameters › Intrinsic timescales ↔ tau_estimate.py, lines 167 to 234 · score 0.60 · exponential fit, curve fit, optimize, decay, autocorrelation, epoch · block oscr:b:9VGCM4C8KQ6PG-I · Report a mismatch
  7. [7] § Results › Early development of the intrinsic timescales ↔ 4_Tau_Development_LMMAnalysis.R, lines 71 to 128 · score 0.55 · random intercept, best model, slope, LMM, Squared, exploratory · block oscr:b:TM30H014MKQTV-A · Report a mismatch
  8. [8] § Materials and methods › Electroencephalography parameters › Alpha-band oscillatory parameters and rhythmicity ↔ 5_Tau_Correlations_AlphaProperties.R, lines 395 to 436 · score 0.54 · Lagged coherence, alpha band, metric, burst, properties · block oscr:b:2J23QRZ15T3M7-Q · Report a mismatch
  9. [9] § Materials and methods › Electroencephalography parameters › Alpha-band oscillatory parameters and rhythmicity ↔ 5_Tau_Correlations_AlphaProperties.R, lines 40 to 128 · score 0.51 · alpha band, oscillatory power, R2, fit, peak, models · block oscr:b:8TNZW1Y7J0SRC-V · Report a mismatch

Paper

Loaded from Europe PMC by your browser; OSCR does not store it: doi.org · Europe PMC

The paper is loaded when this pane is shown.

The authors' code

R · 684 lines · 30 KB · MIT · 3 matches

  1. # ITS Tau correlation with the oscillatory and rhythmic alpha variables ---------------------------
  2. ## Load the required packages -------------------------------------------------
  3. required_packages <- c(
  4. "tidyverse", # Load this first because it includes ggplot2 and dplyr
  5. "ggpubr",
  6. "psych",
  7. "reshape2",
  8. "flextable",
  9. "rempsyc",
  10. "ppcor",
  11. "boot")
  12. new_packages <- required_packages[!required_packages %in% installed.packages()[,"Package"]]
  13. if (length(new_packages) > 0) {
  14. install.packages(new_packages)
  15. }
  16. sapply(required_packages, library, character.only = TRUE)
  17. ## Functions and plot settings ------------------------------------------------
  18. ## Plot themes -----------------
  19. settheme = theme(strip.text.x = element_text(size = 9.5, face = "bold"), strip.text.y = element_text(size = 9.5, face = "bold")) +
  20. theme(axis.text.x = element_text(size = 10), axis.text.y = element_text(size = 10), title = element_text(size = 10), axis.title.x = element_text(size = 10, face = "bold"), axis.title.y = element_text(size = 10, face = "bold"))
  21. ## Partial correlation function for bootstrapping-----------------------
  22. partial_corr <- function(data, indices) {
  23. cormat <- data[indices, ] # Resample with replacement
  24. pcor_results <- ppcor::pcor.test(cormat$tau, cormat$voi, cormat[c("pernan", "rsq")], method = "spearman") # alpha oscillatory power also controls for R2
  25. return(pcor_results$estimate)}
  26. partial_corr_lag <- function(data, indices) {
  27. cormat <- data[indices, ] # Resample with replacement
  28. pcor_results <- ppcor::pcor.test(cormat$tau, cormat$voi, cormat[c("pernan")], method = "spearman")
  29. return(pcor_results$estimate)}
  30. #set seed for reproducibility
  31. set.seed(42)
  32. ## Load the data ---------------------------------------------------------------
  33. ## Data parameters -------------------------------------------------------------
  34. cohorts = c('exploratory', 'validation')
  35. # Where do you want to save the results?
  36. tablepath = "~/Library/CloudStorage/OneDrive-Personal/Documentos/Papers_msi/Thesis/Shared_Code_and_Data/"
  37. ## Tau data load, preparation, and analysis ------------------------------------
  38. for (cohort in cohorts) {
  39. if (cohort == "exploratory") {
  40. taudata <- read_csv("Desktop/Tau_data/tau_development_exploratory_v4.csv")%>%
  41. rename(sex = Gender, area = Area, channel_number = channel, channel = Label)
  42. } else {
  43. taudata <- read_csv("Desktop/Tau_data/tau_development_validation_v4.csv")%>%
  44. rename(sex = Gender, area = Area, channel_number = channel, channel = Label)}
  45. # Exclude 9999 events (social/high movement) and the epochs with low convergence
  46. taudata_space <- taudata%>%filter(pernan < .25, event != 9999)%>%
  47. group_by(subject, sex, ses_age, channel, area)%>% # Average the remaining epochs
  48. summarise(tau = mean(tauimp, na.rm = T),
  49. pernan = mean(is.na(tauorg), na.rm = T))%>%filter(pernan < .25)
  50. taudata_space <- dplyr::select(taudata_space, subject, sex, ses_age, channel, area, tau, pernan) #select only the relevant variables
  51. taudata <- taudata%>%filter(pernan < .25, event != 9999)%>% # Create a dataset with one value per electrode and area
  52. mutate(trials = mean(n()) / length(unique(channel)), .by = c(subject, ses_age))%>%
  53. group_by(subject, sex, ses_age, channel, area)%>%
  54. summarise(tau = mean(tauimp, na.rm = T),
  55. trials = mean(trials, na.rm = T),
  56. pernan = mean(pernan, na.rm = T))
  57. colnames(taudata) <- c("suj", "sex", "sesage", "elect", "area", "tau","trials", "pernan")
  58. colnames(taudata_space) <- c("suj", "sex", "sesage", "elect", "area", "tau","pernan")
  59. ## 1) Oscillatory alpha activity ----------------------------------------------
  60. ### Load the oscillatory alpha activity data --------------------------------
  61. pow <- read_csv("~/Library/CloudStorage/OneDrive-Personal/Documentos/Papers_msi/Thesis/Shared_Code_and_Data/pow_20Hz_6m_16m_ITS.csv")
  62. pow <- filter(pow, band == "Alpha" & rsquared > .949) # Select only the alpha band and the epochs with good R2
  63. fit_descriptives <- pow%>%filter(incluelect == 1, !is.na(trials), develop_f == 1, suj %in% taudata$suj)%>%
  64. group_by(sesage)%>%
  65. summarise(mtrials = mean(trials, na.rm = T),
  66. sdtrials = sd(trials, na.rm = T),
  67. mrsquared = mean(rsquared, na.rm = T),
  68. sdrsquared = sd(rsquared, na.rm = T))
  69. pow <- pow%>%dplyr::select(suj, sex, sesage, elect, area, oscpow, abspow, relpow, slope, offset, rsquared, peak, freq)%>%
  70. group_by(suj, sex, sesage, elect, area)%>%
  71. summarise(osc = mean(oscpow, na.rm= TRUE),
  72. peak = mean(peak, na.rm = TRUE),
  73. freq = mean(freq, na.rm = TRUE),
  74. rsq = mean(rsquared, na.rm = T))
  75. descriptives <- pow%>%filter(suj %in% taudata$suj) # model fit, power, and peak frequency descriptives
  76. descriptives <- dplyr::select(descriptives, suj, sex, sesage, area, osc, peak, freq, rsq)%>%
  77. group_by(suj, sex, sesage, area)%>%
  78. summarise(osc = mean(osc, na.rm = T),
  79. freq= mean(freq[peak==1], na.rm = T),
  80. rsq = mean(rsq, na.rm = T))
  81. descriptives <- melt(descriptives, id.vars = c("suj", "sex", "sesage", "area"))%>% # parse the descriptives to more standardized name
  82. group_by(sesage, sex, variable, area)%>%
  83. summarise(m = mean(as.double(value), na.rm = T),
  84. sd =sd(value,na.rm = T))
  85. descriptives$m <- round(descriptives$m, 2) # round descriptives to the second decimal point
  86. descriptives$sd <- round(descriptives$sd, 2)
  87. descriptives$stat <- paste(descriptives$m, " (", descriptives$sd, ")", sep ="") # create a statistic column with the mean and sd as m (sd)
  88. descriptives <- descriptives%>%dplyr::select(-m,-sd) # remove the mean and sd columns
  89. desctable <- dcast(descriptives, variable + sesage + sex ~ area) # reshape the descriptive table
  90. desctable <- nice_table(desctable, separate.header = F) # Formated table
  91. path2table = paste(tablepath, "oscpow_descriptives_", cohort, ".docx", sep="")
  92. save_as_docx(desctable,path = path2table) # save the table
  93. pow <- melt(pow, id.vars = c("suj", "sex", "sesage", "elect", "area", "peak"))
  94. varnames <- as.vector(unique(pow$variable))[1:2] # frequency and oscillatory power
  95. ses <- c(6,9,16)
  96. ### Within-participant correlations between alpha oscillatory activity and tau --------------------
  97. session = NA
  98. variable = NA
  99. rs = NA
  100. n = NA
  101. ci_min = NA
  102. ci_max = NA
  103. pval = NA
  104. sesidx = 0
  105. loopidx = 1
  106. for (age in ses){
  107. sesidx = sesidx + 1
  108. varidx = 0
  109. data1 <- taudata%>%filter(sesage == age)%>% # prepare tau data filtering only the relevant age
  110. group_by(suj, sex)%>%summarise(tau = mean(tau, na.rm = TRUE),
  111. trials = mean(trials, na.rm = TRUE),
  112. pernan = mean(trials, na.rm = TRUE))
  113. for (items in varnames) {
  114. varidx = varidx + 1
  115. if (varnames[varidx] != "freq"){ # we divide into frequency and oscillatory because frequency can only be computed in electrodes that had an oscillatory peak (i.e., peak == 1)
  116. data2 <- pow%>%filter(sesage == ses[sesidx] & (variable == varnames[varidx] | variable == "rsq"))%>% # select the variable of interest and the rsq
  117. group_by(suj, variable)%>%summarise(M = mean(value, na.rm = T))%>%dcast(suj ~ variable)
  118. colnames(data2) <- c("suj", "voi", "rsq") # rename the variable of interest to "voi" so it matches the general function below
  119. } else {
  120. data2 <- pow%>%filter(sesage == ses[sesidx] & (variable == varnames[varidx] | variable == "rsq") & peak == 1)%>%
  121. group_by(suj, variable)%>%summarise(M = mean(value, na.rm = T))%>%dcast(suj ~ variable)
  122. colnames(data2) <- c("suj", "voi", "rsq")
  123. }
  124. cormat <-merge(data1,data2, by = "suj") #merge tau and oscpow with tau data
  125. cor_results <- pcor.test(cormat$tau, cormat$voi, cormat[c("pernan", "rsq")], method = "spearman") #partial correlation controlling for rsq and percentage of nan electrodes
  126. boot_results <- boot(cormat, partial_corr, R = 5000) # bootstrap the partial correlation to create the confidence intervals
  127. ci <- boot.ci(boot_results, type = "perc") # save the CI
  128. #store the results
  129. session[loopidx] = age
  130. variable[loopidx] = items
  131. rs[loopidx] = cor_results$estimate
  132. n[loopidx] = cor_results$n
  133. ci_min[loopidx] = ci$percent[4]
  134. ci_max[loopidx] = ci$percent[5]
  135. pval[loopidx] = cor_results$p
  136. loopidx = loopidx + 1
  137. }
  138. }
  139. session <- c(session)
  140. variable <- c(variable)
  141. rs <- c(rs)
  142. n <- c(n)
  143. ci_min <- c(ci_min)
  144. ci_max <- c(ci_max)
  145. pval <- c(pval)
  146. pval <- p.adjust(pval, method = "fdr") # correct with FDR
  147. results_correlation <- data.frame(n, session, variable, rs, pval, ci_min, ci_max, stringsAsFactors = TRUE) # create data frame with the results
  148. results_correlation$significance[results_correlation$pval < .001] <- "***" # significance levels after FDR
  149. results_correlation$significance[results_correlation$pval < .01 & results_correlation$pval > .001] <- "**"
  150. results_correlation$significance[results_correlation$pval < .05 & results_correlation$pval > .01] <- "*"
  151. results_correlation$significance[results_correlation$pval < .1 & results_correlation$pval > .05] <- ""
  152. results_correlation$significance[results_correlation$pval > .1] <- ""
  153. results_correlation$session[results_correlation$session==6] <- "6-mo." #rename the ages
  154. results_correlation$session[results_correlation$session==9] <- "9-mo."
  155. results_correlation$session[results_correlation$session==16] <- "16-mo."
  156. results_correlation$session <- factor(results_correlation$session, levels = c("6-mo.", "9-mo.", "16-mo.")) #reorder the ages
  157. results_table <- dplyr::select(results_correlation, c("session", "n", "variable", "rs", "ci_min", "ci_max", "significance")) #select significant variables
  158. results_table$rs <- round(results_table$rs, 2) #round parameters
  159. results_table$ci_min <- round(results_table$ci_min,2)
  160. results_table$ci_max <- round(results_table$ci_max,2)
  161. results_table$stats <- paste(results_table$rs, results_table$significance, " [", results_table$ci_min, " - ", results_table$ci_max, "]", sep ="") #create a single correlation value as r-significance [ci]
  162. results_table <- dplyr::select(results_table, c("session", "variable", "n", "stats")) # Keep only the relevant columns
  163. results_table <- dcast(results_table, session + n ~ variable, value.var = "stats") #format the table
  164. path2table = paste(tablepath, "tau_correlation_powvars_", cohort, ".docx", sep ="")
  165. save_as_docx(nice_table(results_table),path = path2table) #save a formated table as docx
  166. #### Within-participant correlation plots --------------------------------------
  167. powplot <- pow%>% filter(variable != 'rsq')%>%
  168. group_by(suj, sesage)%>%
  169. summarise(freq = mean(value[variable == "freq" & peak == 1], na.rm = TRUE),
  170. osc = mean(value[variable == "osc"], na.rm = TRUE))
  171. powplot <- melt(powplot, id.vars = c("suj", "sesage")) # reshape to long format
  172. tauplot <- taudata%>% # prepare tau data filtering only the relevant age
  173. group_by(suj, sesage)%>%summarise(tau = mean(tau, na.rm = TRUE),
  174. trials = mean(trials, na.rm = TRUE),
  175. pernan = mean(trials, na.rm = TRUE))
  176. plotdataset <- merge(powplot, tauplot, by = c("suj", "sesage"))
  177. plotdataset$sesage[plotdataset$sesage == 6] <- "6-mo."
  178. plotdataset$sesage[plotdataset$sesage == 9] <- "9-mo."
  179. plotdataset$sesage[plotdataset$sesage == 16] <- "16-mo."
  180. path2plot <- paste(tablepath, "individualcor_its_osc_", cohort, ".svg", sep ="")
  181. plot_osc = ggplot(filter(plotdataset, variable == "osc"), aes(y=tau, x=value)) +
  182. geom_smooth(method = "lm", se = T, color = "black", alpha = .30, fill = "grey75") + ggpubr::theme_pubr() +
  183. geom_point(aes(color = "lightpink")) +
  184. facet_grid(.~factor(sesage, levels = c("6-mo.", "9-mo.", "16-mo.")), scales = "free") +
  185. theme(legend.position = "none") +
  186. settheme +
  187. xlab("Oscillatory Power") +
  188. ylab("Tau (s)")
  189. plot_freq = ggplot(filter(plotdataset, variable == "freq"), aes(y=tau, x=value)) +
  190. geom_smooth(method = "lm", se = T, color = "black", alpha = .30, fill = "grey75") + ggpubr::theme_pubr() +
  191. geom_point(aes(color = "lightpink")) +
  192. facet_grid(.~factor(sesage, levels = c("6-mo.", "9-mo.", "16-mo.")), scales = "free") +
  193. theme(legend.position = "none") +
  194. settheme +
  195. xlab("Peak Frequency (Hz)") +
  196. ylab("Tau (s)")
  197. ggpubr::ggarrange(plot_osc, plot_freq, nrow = 2)
  198. ggsave(path2plot, width = 14.2, height = 11, units = "cm")
  199. ### Space correlations between alpha oscillatory actiivty and tau --------------
  200. varnames <- as.vector(unique(pow$variable))[1:2]
  201. ses <- c(6,9,16)
  202. session = NA
  203. variable = NA
  204. rs = NA
  205. n = NA
  206. ci_min = NA
  207. ci_max = NA
  208. pval = NA
  209. loopidx = 1
  210. for (sesi in ses){
  211. data1 <- taudata_space%>%filter(sesage == sesi)%>% #Now we reorder by electrode
  212. group_by(elect)%>%summarise(tau = mean(tau, na.rm = TRUE),
  213. pernan = mean(pernan, na.rm = TRUE))
  214. for (vari in varnames) {
  215. varidx = varidx + 1
  216. if (vari != "freq"){
  217. data2 <- pow%>%filter(sesage == sesi & (variable == vari | variable == "rsq"))%>%
  218. group_by(elect, variable)%>%summarise(M = mean(value, na.rm = T))%>%dcast(elect ~ variable)
  219. colnames(data2) <- c("elect", "voi", "rsq")
  220. } else {
  221. data2 <- pow%>%filter(sesage == sesi & (variable == vari | variable == "rsq") & peak == 1)%>%
  222. group_by(elect, variable)%>%summarise(M = mean(value, na.rm = T))%>%dcast(elect ~ variable)
  223. colnames(data2) <- c("elect", "voi", "rsq")
  224. }
  225. cormat <-merge(data1,data2, by = "elect")
  226. cor_results <- pcor.test(cormat$tau, cormat$voi, cormat[c("pernan", "rsq")], method = "spearman")
  227. boot_results <- boot(cormat, partial_corr, R = 5000)
  228. ci <- boot.ci(boot_results, type = "perc")
  229. session[loopidx] = sesi
  230. variable[loopidx] = vari
  231. rs[loopidx] = cor_results$estimate
  232. n[loopidx] = cor_results$n
  233. ci_min[loopidx] = ci$percent[4]
  234. ci_max[loopidx] = ci$percent[5]
  235. pval[loopidx] = cor_results$p
  236. loopidx = loopidx + 1
  237. }
  238. }
  239. session <- c(session)
  240. varaible <- c(variable)
  241. rs <- c(rs)
  242. n <- c(n)
  243. ci_min <- c(ci_min)
  244. ci_max <- c(ci_max)
  245. pval <- c(pval)
  246. pval <- p.adjust(pval, method = "fdr")
  247. results_correlation <- data.frame(n, session, variable, rs, pval, ci_min, ci_max, stringsAsFactors = TRUE)
  248. results_correlation$significance[results_correlation$pval < .001] <- "***"
  249. results_correlation$significance[results_correlation$pval < .01 & results_correlation$pval > .001] <- "**"
  250. results_correlation$significance[results_correlation$pval < .05 & results_correlation$pval > .01] <- "*"
  251. results_correlation$significance[results_correlation$pval < .1 & results_correlation$pval > .05] <- ""
  252. results_correlation$significance[results_correlation$pval > .1] <- ""
  253. results_correlation$session[results_correlation$session==6] <- "6-mo."
  254. results_correlation$session[results_correlation$session==9] <- "9-mo."
  255. results_correlation$session[results_correlation$session==16] <- "16-mo."
  256. results_correlation$session <- factor(results_correlation$session, levels = c("6-mo.", "9-mo.", "16-mo."))
  257. results_table <- dplyr::select(results_correlation, c("session", "n", "variable", "rs", "ci_min", "ci_max", "significance"))
  258. results_table$rs <- round(results_table$rs, 2)
  259. results_table$ci_min <- round(results_table$ci_min,2)
  260. results_table$ci_max <- round(results_table$ci_max,2)
  261. results_table$stats <- paste(results_table$rs, results_table$significance, " [", results_table$ci_min, " - ", results_table$ci_max, "]", sep ="")
  262. results_table <- dplyr::select(results_table, c("session", "variable", "n", "stats"))
  263. results_table <- dcast(results_table, session + n ~ variable, value.var = "stats")
  264. path2table = paste(tablepath, "tau_correlation_powvars_space_", cohort, ".docx", sep ="")
  265. save_as_docx(nice_table(results_table),path = path2table)
  266. #### Space correlation plots --------------------------------------------------
  267. powplot <- pow%>% filter(variable != 'rsq')%>%
  268. group_by(sesage, elect, area)%>%
  269. summarise(freq = mean(value[variable == "freq" & peak == 1], na.rm = TRUE),
  270. osc = mean(value[variable == "osc"], na.rm = TRUE))
  271. powplot <- melt(powplot, id.vars = c("sesage", "elect", "area")) # reshape to long format
  272. tauplot <- taudata_space%>%
  273. group_by(sesage, elect, area)%>%summarise(tau = mean(tau, na.rm = TRUE))
  274. plotdataset <- merge(powplot, tauplot, by = c("sesage", "elect", "area"))
  275. plotdataset$sesage[plotdataset$sesage == 6] <- "6-mo."
  276. plotdataset$sesage[plotdataset$sesage == 9] <- "9-mo."
  277. plotdataset$sesage[plotdataset$sesage == 16] <- "16-mo."
  278. plotdataset$sesage <- factor(plotdataset$sesage, levels = c("6-mo.", "9-mo.", "16-mo."))
  279. path2plot <- paste(tablepath, "spatial_stability_its_osc_", cohort, ".svg", sep ="")
  280. plot_osc = ggplot(filter(plotdataset, variable == "osc"), aes(y=tau, x=value)) + geom_point(aes(color = area)) +
  281. geom_smooth(method = "lm", color = "black", se = T, alpha = .30, fill = "grey75") +
  282. scale_color_manual(values =c("#C4961A","#D16103", "#C3D7A4", "#52854C", "#4E84C4", "#293352")) +
  283. theme_pubr() + facet_grid(.~factor(sesage, levels = c("6-mo.", "9-mo.", "16-mo.")), scales = "free") +
  284. settheme +
  285. labs(x = "Oscillatory Power",
  286. y = "Tau (s)",
  287. color = "Area")
  288. plot_freq = ggplot(filter(plotdataset, variable == "freq"), aes(y=tau, x=value)) + geom_point(aes(color = area)) +
  289. geom_smooth(method = "lm", color = "black", se = T, alpha = .30, fill = "grey75") +
  290. scale_color_manual(values =c("#C4961A","#D16103", "#C3D7A4", "#52854C", "#4E84C4", "#293352")) +
  291. theme_pubr() + facet_grid(.~factor(sesage, levels = c("6-mo.", "9-mo.", "16-mo.")), scales = "free") +
  292. settheme +
  293. labs(x = "Frequency (Hz)",
  294. y = "Tau (s)",
  295. color = "Area")
  296. ggarrange(plot_osc, plot_freq, nrow = 2, common.legend = T, legend = "bottom")
  297. ggsave(path2plot, width = 16, height = 12, units = "cm")
  298. ## 2) Lagged coherence correlations --------------------------------------------
  299. #Load the raw lagged coherence data and compute the metrics of interest
  300. #pow <- read_csv("~/Library/CloudStorage/OneDrive-Personal/Documentos/Papers_msi/Thesis/Shared_Code_and_Data/pow_burst_rythm_6m_36m_ITS.csv") #Load the lagged coherence data
  301. #pow <- filter(pow, band == "Alpha") # We keep only the alpha band
  302. #pow <- pow%>%dplyr::select(suj, sex, sesage, elect, incluelect, area, lag, lag_pow)%>% # Relevant variables
  303. #group_by(suj, sex, sesage, elect, area)%>%
  304. #summarise(rhythmlag = mean(lag_pow[lag>2.5&lag<3.5], na.rm= TRUE), # Burst lags
  305. #burstlag = mean(lag_pow[lag<2.5], na.rm = TRUE)) # Rhythm lags
  306. ### Save for future use
  307. #write.csv(pow, "~/Library/CloudStorage/OneDrive-Personal/Documentos/Papers_msi/Thesis/Shared_Code_and_Data/lagged_coherence_alpha_6_16m_metrics.csv", row.names = F)
  308. # Load the dataset with the lagged coherence data
  309. pow <- read_csv("~/Library/CloudStorage/OneDrive-Personal/Documentos/Papers_msi/Thesis/Shared_Code_and_Data/lagged_coherence_alpha_6_16m_metrics.csv")
  310. descriptives <- pow%>%filter(suj %in% taudata$suj)
  311. descriptives <- melt(descriptives, id.vars = c("suj", "sex", "sesage", "elect", "area"))%>% #Descriptive table
  312. group_by(sesage, sex, variable, area)%>%
  313. summarise(m = mean(as.double(value), na.rm = T),
  314. sd =sd(value,na.rm = T))
  315. descriptives$m <- round(descriptives$m, 2)
  316. descriptives$sd <- round(descriptives$sd, 2)
  317. descriptives$stat <- paste(descriptives$m, " (", descriptives$sd, ")", sep ="")
  318. descriptives <- descriptives%>%dplyr::select(-m,-sd)
  319. desctable <- dcast(descriptives, variable + sesage + sex ~ area)
  320. desctable <- nice_table(desctable, separate.header = F)
  321. path2table = paste(tablepath, "lagcoh_descriptives_", cohort, ".docx", sep="")
  322. save_as_docx(desctable,path = path2table)
  323. pow <- melt(pow, id.vars = c("suj", "sex", "sesage", "elect", "area"))
  324. varnames <- as.vector(unique(pow$variable))
  325. ses <- c(6,9,16)
  326. #### Within-subject correlations between lagged coherence and tau -------------
  327. session = NA
  328. variable = NA
  329. rs = NA
  330. n = NA
  331. ci_min = NA
  332. ci_max = NA
  333. pval = NA
  334. loopidx = 1
  335. for (sesi in ses){
  336. data1 <- taudata%>%filter(sesage == sesi)%>%
  337. group_by(suj)%>%summarise(tau = mean(tau, na.rm = TRUE),
  338. pernan = mean(pernan, na.rm = TRUE))
  339. for (vari in varnames) {
  340. if (vari != "freq"){
  341. data2 <- pow%>%filter(sesage == sesi & variable == vari)%>%
  342. group_by(suj)%>%summarise(voi = mean(value, na.rm = TRUE))}
  343. else {
  344. data2 <- filter(pow, peak == 1)
  345. data2 <- data2%>%filter(sesage == sesi & variable == vari)%>%
  346. group_by(suj)%>%summarise(voi = mean(value, na.rm = TRUE))
  347. }
  348. cormat <-merge(data1,data2, by = "suj")
  349. cor_results <- pcor.test(cormat$tau, cormat$voi, cormat[c("pernan")], method = "spearman")
  350. boot_results <- boot(cormat, partial_corr_lag, R = 5000) # Different correlation function because we cannot control for R2
  351. ci <- boot.ci(boot_results, type = "perc")
  352. session[loopidx] = sesi
  353. variable[loopidx] = vari
  354. rs[loopidx] = cor_results$estimate
  355. n[loopidx] = cor_results$n
  356. ci_min[loopidx] = ci$percent[4]
  357. ci_max[loopidx] = ci$percent[5]
  358. pval[loopidx] = cor_results$p
  359. loopidx = loopidx + 1
  360. }
  361. }
  362. session <- c(session)
  363. varaible <- c(variable)
  364. rs <- c(rs)
  365. n <- c(n)
  366. ci_min <- c(ci_min)
  367. ci_max <- c(ci_max)
  368. pval <- c(pval)
  369. pval <- p.adjust(pval, method = "fdr")
  370. results_correlation <- data.frame(n, session, variable, rs, pval, ci_min, ci_max, stringsAsFactors = TRUE)
  371. results_correlation$significance[results_correlation$pval < .001] <- "***"
  372. results_correlation$significance[results_correlation$pval < .01 & results_correlation$pval > .001] <- "**"
  373. results_correlation$significance[results_correlation$pval < .05 & results_correlation$pval > .01] <- "*"
  374. results_correlation$significance[results_correlation$pval < .1 & results_correlation$pval > .05] <- ""
  375. results_correlation$significance[results_correlation$pval > .1] <- ""
  376. results_correlation$session[results_correlation$session==6] <- "6-mo."
  377. results_correlation$session[results_correlation$session==9] <- "9-mo."
  378. results_correlation$session[results_correlation$session==16] <- "16-mo."
  379. results_correlation$session <- factor(results_correlation$session, levels = c("6-mo.", "9-mo.", "16-mo."))
  380. results_table <- dplyr::select(results_correlation, c("session", "n", "variable", "rs", "ci_min", "ci_max", "significance"))
  381. results_table$rs <- round(results_table$rs, 2)
  382. results_table$ci_min <- round(results_table$ci_min,2)
  383. results_table$ci_max <- round(results_table$ci_max,2)
  384. results_table$stats <- paste(results_table$rs, results_table$significance, " [", results_table$ci_min, " - ", results_table$ci_max, "]", sep ="")
  385. results_table <- dplyr::select(results_table, c("session", "variable", "n", "stats"))
  386. results_table <- dcast(results_table, session + n ~ variable, value.var = "stats")
  387. path2table = paste(tablepath, "tau_correlation_brythm_", cohort, ".docx", sep ="")
  388. save_as_docx(nice_table(results_table),path = path2table)
  389. #### Within participants correlation plots ------------------------------------
  390. powplot <- pow%>%group_by(suj, sesage, variable)%>%
  391. summarise(value = mean(value, na.rm = TRUE))
  392. tauplot <- taudata%>% # prepare tau data filtering only the relevant age
  393. group_by(suj, sesage)%>%summarise(tau = mean(tau, na.rm = TRUE))
  394. plotdataset <- merge(powplot, tauplot, by = c("suj", "sesage"))
  395. plotdataset <- filter(plotdataset, variable == "rhythmlag" | variable == "burstlag")
  396. plotdataset$sesage[plotdataset$sesage == 6] <- "6-mo."
  397. plotdataset$sesage[plotdataset$sesage == 9] <- "9-mo."
  398. plotdataset$sesage[plotdataset$sesage == 16] <- "16-mo."
  399. plotdataset$sesage <- factor(plotdataset$sesage, levels = c("6-mo.", "9-mo.", "16-mo."))
  400. path2plot <- paste(tablepath, "individualcor_its_lcoh_", cohort, ".svg", sep ="")
  401. plot_osc = ggplot(filter(plotdataset, variable == "burstlag"), aes(y=tau, x=value)) +
  402. geom_smooth(method = "lm", se = T, color = "black", alpha = .30, fill = "grey75") + ggpubr::theme_pubr() +
  403. geom_point(aes(color = "lightpink")) +
  404. facet_grid(.~factor(sesage, levels = c("6-mo.", "9-mo.", "16-mo.")), scales = "free") +
  405. theme(legend.position = "none") +
  406. settheme +
  407. xlab("Lagged Coh. Burst") +
  408. ylab("Tau (s)")
  409. plot_freq = ggplot(filter(plotdataset, variable == "rhythmlag"), aes(y=tau, x=value)) +
  410. geom_smooth(method = "lm", se = T, color = "black", alpha = .30, fill = "grey75") + ggpubr::theme_pubr() +
  411. geom_point(aes(color = "lightpink")) +
  412. facet_grid(.~factor(sesage, levels = c("6-mo.", "9-mo.", "16-mo.")), scales = "free") +
  413. theme(legend.position = "none") +
  414. settheme +
  415. xlab("Lagged Coh. Rhythm") +
  416. ylab("Tau (s)")
  417. ggpubr::ggarrange(plot_osc, plot_freq, nrow = 2)
  418. ggsave(path2plot, width = 14.2, height = 11, units = "cm")
  419. #### Space correlations between lagged coherence and tau ----------------------
  420. varnames <- as.vector(unique(pow$variable))
  421. ses <- c(6,9,16)
  422. session = NA
  423. variable = NA
  424. rs = NA
  425. n = NA
  426. ci_min = NA
  427. ci_max = NA
  428. pval = NA
  429. loopidx = 1
  430. for (sesi in ses){
  431. data1 <- taudata_space%>%filter(sesage == sesi)%>%
  432. group_by(elect)%>%summarise(tau = mean(tau, na.rm = TRUE),
  433. pernan = mean(pernan, na.rm = TRUE))
  434. for (vari in varnames) {
  435. data2 <- pow%>%filter(sesage == sesi & variable == vari)%>%
  436. group_by(elect)%>%summarise(voi = mean(value, na.rm = TRUE))
  437. cormat <-merge(data1,data2, by = "elect")
  438. cor_results <- pcor.test(cormat$tau, cormat$voi, cormat[c("pernan")], method = "spearman")
  439. boot_results <- boot(cormat, partial_corr_lag, R = 5000)
  440. ci <- boot.ci(boot_results, type = "perc")
  441. session[loopidx] = sesi
  442. variable[loopidx] = vari
  443. rs[loopidx] = cor_results$estimate
  444. n[loopidx] = cor_results$n
  445. ci_min[loopidx] = ci$percent[4]
  446. ci_max[loopidx] = ci$percent[5]
  447. pval[loopidx] = cor_results$p
  448. loopidx = loopidx + 1
  449. }
  450. }
  451. session <- c(session)
  452. varaible <- c(variable)
  453. rs <- c(rs)
  454. n <- c(n)
  455. ci_min <- c(ci_min)
  456. ci_max <- c(ci_max)
  457. pval <- c(pval)
  458. pval <- p.adjust(pval, method = "fdr")
  459. results_correlation <- data.frame(n, session, variable, rs, pval, ci_min, ci_max, stringsAsFactors = TRUE)
  460. results_correlation$significance[results_correlation$pval < .001] <- "***"
  461. results_correlation$significance[results_correlation$pval < .01 & results_correlation$pval > .001] <- "**"
  462. results_correlation$significance[results_correlation$pval < .05 & results_correlation$pval > .01] <- "*"
  463. results_correlation$significance[results_correlation$pval < .1 & results_correlation$pval > .05] <- ""
  464. results_correlation$significance[results_correlation$pval > .1] <- ""
  465. results_correlation$session[results_correlation$session==6] <- "6-mo."
  466. results_correlation$session[results_correlation$session==9] <- "9-mo."
  467. results_correlation$session[results_correlation$session==16] <- "16-mo."
  468. results_correlation$session <- factor(results_correlation$session, levels = c("6-mo.", "9-mo.", "16-mo."))
  469. results_table <- dplyr::select(results_correlation, c("session", "n", "variable", "rs", "ci_min", "ci_max", "significance"))
  470. results_table$rs <- round(results_table$rs, 2)
  471. results_table$ci_min <- round(results_table$ci_min,2)
  472. results_table$ci_max <- round(results_table$ci_max,2)
  473. results_table$stats <- paste(results_table$rs, results_table$significance, " [", results_table$ci_min, " - ", results_table$ci_max, "]", sep ="")
  474. results_table <- dplyr::select(results_table, c("session", "variable", "n", "stats"))
  475. results_table <- dcast(results_table, session + n ~ variable, value.var = "stats")
  476. path2table = paste(tablepath, "tau_correlation_brythm_space_", cohort, ".docx", sep ="")
  477. save_as_docx(nice_table(results_table),path = path2table)
  478. #### Space correlation plots --------------------------------------------------
  479. plotdataset <- merge(pow, taudata_space, by = c("suj", "sex", "sesage", "elect", "area"))
  480. plotdataset <- plotdataset%>%group_by(elect, sesage, area, variable)%>%
  481. summarise(value = mean(value, na.rm = TRUE),
  482. tau = mean(tau, na.rm = TRUE))
  483. plotdataset <- filter(plotdataset, variable == "rhythmlag" | variable == "burstlag")
  484. plotdataset$sesage[plotdataset$sesage == 6] <- "6-mo."
  485. plotdataset$sesage[plotdataset$sesage == 9] <- "9-mo."
  486. plotdataset$sesage[plotdataset$sesage == 16] <- "16-mo."
  487. plotdataset$sesage <- factor(plotdataset$sesage, levels = c("6-mo.", "9-mo.", "16-mo."))
  488. path2plot <- paste(tablepath, "spatial_stability_its_burstlag_", cohort, ".svg", sep ="")
  489. plot_osc = ggplot(filter(plotdataset, variable == "burstlag"), aes(y=tau, x=value)) + geom_point(aes(color = area)) +
  490. geom_smooth(method = "lm", color = "black", se = T, alpha = .30, fill = "grey75") +
  491. scale_color_manual(values =c("#C4961A","#D16103", "#C3D7A4", "#52854C", "#4E84C4", "#293352")) +
  492. theme_pubr() + facet_grid(.~factor(sesage, levels = c("6-mo.", "9-mo.", "16-mo.")), scales = "free") +
  493. settheme +
  494. labs(x = "Lagged Coh. Burst",
  495. y = "Tau (s)",
  496. color = "Area")
  497. plot_freq = ggplot(filter(plotdataset, variable == "rhythmlag"), aes(y=tau, x=value)) + geom_point(aes(color = area)) +
  498. geom_smooth(method = "lm", color = "black", se = T, alpha = .30, fill = "grey75") +
  499. scale_color_manual(values =c("#C4961A","#D16103", "#C3D7A4", "#52854C", "#4E84C4", "#293352")) +
  500. theme_pubr() + facet_grid(.~factor(sesage, levels = c("6-mo.", "9-mo.", "16-mo.")), scales = "free") +
  501. settheme +
  502. labs(x = "Lagged Coh. Rhythm",
  503. y = "Tau (s)",
  504. color = "Area")
  505. ggarrange(plot_osc, plot_freq, nrow = 2, common.legend = T, legend = "bottom")
  506. ggsave(path2plot, width = 16, height = 12, units = "cm")
  507. }

5_Tau_Correlations_AlphaProperties.R at commit 03333a8, under MIT · at the source

Overview

Authors: Anna Truzzi1, Josué Rico-Picó2, Maria Rosario Rueda3,4, Rhodri Cusack5,6
ORCID iDs: Anna Truzzi
  1. School of Psychology, Queen’s University Belfast, David Keir Building, 18-30 Malone Road, BELFAST, BT9 5BN, United Kingdom
  2. Department of Biobehavioural Sciences, Teachers College, Columbia University, Building 528, 525 W 120th St Suite 1159, New York, NY 10027, United States
  3. Mind, Brain and Behaviour Research Center, University of Granada, Campus de Cartuja, s/n 18071 Granada, Spain
  4. Department of Experimental Psychology, University of Granada, Campus Universitario de Cartuja, s/n18071 Granada, Spain
  5. School of Psychology, Trinity College Dublin, Pearse St, Dublin, 2, Ireland
  6. Trinity College Institute of Neuroscience, Trinity College Dublin, Dublin, Ireland
Journal: Cerebral cortex (New York, N.Y. : 1991), volume 36, issue 6, article bhag077
Dates: received 2 February 2026; accepted 18 May 2026; published online 24 June 2026; in print June 2026
Type: Research article · Language: English
License: CC BY
Identifiers: DOI 10.1093/cercor/bhag077 · PMID 42341187 · PMCID PMC13293257 · OpenAlex W4412034202
Open access: hybrid, a free copy (OpenAlex)
Status: code verified (how the code is found and verified)
Categories: EEG (modality), human (organism), developmental (subfield)
Methods: Statistics, Smoothing, state filtering, decompositions, Spectral & time-frequency, Connectivity, Preprocessing
Keywords: brain timescales, developmental trajectory, infant, longitudinal, oscillatory, resting state EEG
MeSH: Alpha Rhythm*, Brain*, Child Development*, Adult, Brain Mapping, Electroencephalography, Female, Humans, Infant, Longitudinal Studies, Magnetic Resonance Imaging, Male, Young Adult (* major topic)
Topic: Child and Animal Learning Development (Developmental and Educational Psychology, Psychology), according to OpenAlex
Funding: ERC advanced (ERC - 2017-ADG); FOUNDCOG (787981); MCIN/AEI (PID2020-113996GB-I00, PSI2017-82670-P); Fundación Tatiana in Neuroscience
Citations: not cited yet (Europe PMC); 56 references in the paper

Abstract

Adult brain regions differ in the intrinsic timescales (INT) over which they integrate information. This spatial organization appears to emerge gradually: infants’ brain activity recorded during sleep with functional magnetic resonance imaging (fMRI) shows overall longer INT and a different spatial structure. However, since fMRI is sensitive to hemodynamic confounds and is affected by arousal state, these factors may have accounted for observed age-related differences. Here, we used electroencephalography (EEG) to investigate for the first time how INT develop in infancy in a longitudinal sample from 6 to 16-months-old (exploratory cohort, n = 45; validation cohort, n = 45) and adults (n = 10). Infants were awake and engaged in baseline visual protocol, and adults were recorded under comparable (and distinct) conditions. Infant intrinsic timescales shortened from 6 to 16-months but remained longer than those of adults at all ages. Finally, INT correlated with alpha lagged coherence, a metric of self-predictability and, to lesser extent, with alpha peak frequency, suggesting that alpha oscillatory activity may contribute to the emergence of INT. Identifying the mechanisms underlying longer INT early in infancy—a finding replicated across fMRI and EEG—is a crucial step toward understanding the neural computations that allow infants to extract and learn patterns from their environment.

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

AnnaTruzzi/longitudinal_EEG_timescales

License: MIT
State: the link answers, verified on 27 September 2026
Evidence: files inventoried
Commit: 03333a87aa28e8d7454512295f706f80a79f11d7, 22 January 2026
Languages: R (9), Python (6), MATLAB (1)
Size: 32 files, 16 scripts
Software Heritage: not archived
Found in: “Data availability”
Holds: README, license file
Not found: CITATION.cff, environment file, tests, continuous integration, documentation
Tools: tidyverse (8 files), ggpubr (6 files), Matplotlib (6 files), NumPy (6 files), pandas (6 files), ggplot2 (5 files), reshape2 (5 files), SciPy (5 files), MNE-Python (4 files), seaborn (3 files), statsmodels (3 files), lme4 (2 files), lmerTest (2 files), psych (2 files), easystats (1 file), EEGLAB (1 file), FieldTrip (1 file), multcomp (1 file), Pingouin (1 file), scikit-learn (1 file)
Availability: 1 check, the latest on 27 September 2026: the link answers
  • 27 September 2026: the link answers
18 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;
  • 16 scripts, each with its path and the digest of its content;
  • 9 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

Raw data are confidential because they contain sensitive information about infants. The anonymized data reporting the estimated intrinsic timescales together with the code used to process and analyze the data are published in a public GitHub repository (https://github.com/AnnaTruzzi/longitudinal_EEG_timescales).

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, 4 authors, 6 keywords, 13 MeSH terms, 4 funders, 55 references.

Cite

This paper

Truzzi, A., Rico-Picó, J., Rueda, M. R., & Cusack, R. (2026). The longitudinal development of intrinsic timescales in infancy and their relation to alpha brain rhythm. Cerebral cortex (New York, N.Y. : 1991), 36(6), bhag077. https://doi.org/10.1093/cercor/bhag077

BibTeX

@article{truzzi2026longitudinal,
author = {Truzzi, Anna and Rico-Picó, Josué and Rueda, Maria Rosario and Cusack, Rhodri},
title = {{The longitudinal development of intrinsic timescales in infancy and their relation to alpha brain rhythm}},
journal = {Cerebral cortex (New York, N.Y. : 1991)},
year = {2026},
month = jun,
volume = {36},
number = {6},
pages = {bhag077},
publisher = {Oxford University Press},
issn = {1047-3211},
doi = {10.1093/cercor/bhag077},
url = {https://doi.org/10.1093/cercor/bhag077},
pmid = {42341187},
pmcid = {PMC13293257}
}

RIS

TY - JOUR
AU - Truzzi, Anna
AU - Rico-Picó, Josué
AU - Rueda, Maria Rosario
AU - Cusack, Rhodri
TI - The longitudinal development of intrinsic timescales in infancy and their relation to alpha brain rhythm
T2 - Cerebral cortex (New York, N.Y. : 1991)
J2 - Cereb Cortex
PY - 2026
DA - 2026/06/01
VL - 36
IS - 6
SP - bhag077
SN - 1047-3211
PB - Oxford University Press
DO - 10.1093/cercor/bhag077
UR - https://doi.org/10.1093/cercor/bhag077
LA - en
ER -

CSL-JSON

{
"id": "10.1093/cercor/bhag077",
"type": "article-journal",
"title": "The longitudinal development of intrinsic timescales in infancy and their relation to alpha brain rhythm",
"container-title": "Cerebral cortex (New York, N.Y. : 1991)",
"author": [
{
"family": "Truzzi",
"given": "Anna"
},
{
"family": "Rico-Picó",
"given": "Josué"
},
{
"family": "Rueda",
"given": "Maria Rosario"
},
{
"family": "Cusack",
"given": "Rhodri"
}
],
"container-title-short": "Cereb Cortex",
"volume": "36",
"issue": "6",
"page": "bhag077",
"DOI": "10.1093/cercor/bhag077",
"PMID": "42341187",
"PMCID": "PMC13293257",
"ISSN": "1047-3211",
"publisher": "Oxford University Press",
"URL": "https://doi.org/10.1093/cercor/bhag077",
"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.1186/s11689-025-09651-3 [code]
The association between infant EEG aperiodic exponent and the trajectory of restricted and repetitive behaviors for toddlers with and without autism.
Journal: Journal of neurodevelopmental disorders
In common: multcomp, Pingouin, easystats, 12 other tools, developmental, EEG, 5 references
[2] doi:10.1038/s41467-024-50204-4 [code]
Developmental trajectories of EEG aperiodic and periodic components in children 2-44 months of age.
Journal: Nature communications
In common: Pingouin, ggpubr, statsmodels, 8 other tools, developmental, EEG, 7 references
[3] doi:10.1371/journal.pcbi.1013931 [code]
Capturing individual variation in children's electroencephalograms during nREM sleep.
Journal: PLoS computational biology
In common: Pingouin, MNE-Python, lme4, 10 other tools, developmental, EEG, 4 references
[4] doi:10.1523/jneurosci.0886-23.2023 [code]
Bursting with Potential: How Sensorimotor Beta Bursts Develop from Infancy to Adulthood.
Journal: The Journal of neuroscience : the official journal of the Society for Neuroscience
In common: EEGLAB, MNE-Python, FieldTrip, 9 other tools, EEG, 6 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: easystats, psych, MNE-Python, 11 other tools, EEG, 3 references
[6] doi:10.1371/journal.pone.0292501 [code]
Augmenting complex and dynamic performance through mindfulness-based cognitive training: An evaluation of training adherence, trait mindfulness, personality and resting-state EEG.
Journal: PloS one
In common: easystats, psych, MNE-Python, 9 other tools, EEG, 4 references
[7] doi:10.1038/s42003-026-09715-7 [code]
Temporal signatures of thought-neurodynamics distinguish on- and off-task thoughts.
Journal: Communications biology
In common: easystats, psych, EEGLAB, 4 other tools, EEG, 7 references
[8] doi:10.1073/pnas.2411098122 [code]
Temporal autocorrelation is predictive of age-An extensive MEG time-series analysis.
Journal: Proceedings of the National Academy of Sciences of the United States of America
In common: multcomp, psych, FieldTrip, 10 other tools, developmental, 3 references
[9] doi:10.1038/s42003-025-07517-x [code]
Mapping and modeling age-related changes in intrinsic neural timescales.
Journal: Communications biology
In common: Pingouin, statsmodels, seaborn, 4 other tools, 8 references
[10] doi:10.1162/imag.a.993 [code]
Multi-scale parameterization of neural rhythmicity with lagged Hilbert autocoherence.
Journal: Imaging neuroscience (Cambridge, Mass.)
In common: MNE-Python, lme4, statsmodels, 6 other tools, 7 references

Contribute

The authors of this paper can claim it, correct its record and validate its tracing map, and the maintainers of its code (its owner, or a public member of its organization) correct what it says of their repository; anyone signed in can ask for its removal. Every request goes to OSCR's own machine, which answers it; your account page follows them.

Sign in with ORCID to claim this paper as one of its authors, correct its record or validate its tracing map: when the paper's metadata lists your ORCID iD, you are recognized at once. Maintainers of its code: sign in with GitHub, then claim the repository on your account page.

Add the badge to the code's README

OSCR: the badge of this paper

If you are an author or a maintainer of this paper's code, you can add this badge. It says what OSCR knows of the paper (its code, its validated tracing map) and links the code to this page. Paste one of these snippets under the README's title. Keep the two marks around it, so that the badge can be replaced in place and is never added twice. OSCR changes nothing in your repository.

Markdown
<!-- oscr-badge:start -->
[![OSCR](https://openscicode.org/badge/doi/10.1093/cercor/bhag077.svg)](https://openscicode.org/badge/doi/10.1093/cercor/bhag077)
<!-- oscr-badge:end -->
reStructuredText
.. oscr-badge:start

.. image:: https://openscicode.org/badge/doi/10.1093/cercor/bhag077.svg
   :target: https://openscicode.org/badge/doi/10.1093/cercor/bhag077
   :alt: OSCR

.. oscr-badge:end
HTML
<!-- oscr-badge:start -->
<a href="https://openscicode.org/badge/doi/10.1093/cercor/bhag077"><img src="https://openscicode.org/badge/doi/10.1093/cercor/bhag077.svg" alt="OSCR"></a>
<!-- oscr-badge:end -->

On GitHub, open the README, choose Edit (the pencil), paste the snippet under the title, then "Commit changes".

If you choose to, you can have the badge kept up to date for you, with oscr badge --write from the command line or with the GitHub Action in your repository's workflows. Every other form and option (a card, AsciiDoc, LaTeX, shields.io) is on the badge page.

Request its removal

To ask OSCR to remove this record, the copies of its authors' scripts or its tracing map, use the removal request page: signed in, you say who you are, what to remove and why, then review and confirm the request. Published rules decide every request (how).

Discussion, reproductions, activity

Discussion: code errors and mismatches between the code and the paper about this paper and its code, from readers and its authors, beside the paper and its tracing map.

Report a mismatch between the code and the paper · Report a code error (signed in)

Reproductions: reports from readers who ran the authors' code and did not get the paper's result, what they ran, with which environment, commit and data.

Report a reproduction failure (signed in)

Versions of its code: the releases of its code tied to a version of this paper (the preprint, the accepted manuscript, the version of record…), each with the tracing map versioned with it.

Activity: what happens around this paper: new versions of its record, its map's validation, discussions and reproductions. It opens with sign-in.