OSCR

Neural integrator and orchestrator communities shape spontaneous signaling in the human brain.

Code ↔ Paper

2 matches between paragraphs of the paper and lines of its authors' code, computed by the harvester (lexical-v1). Click a colored paragraph or line to see its counterpart.

2 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 2 matches
  1. [1] § Results › Brain macroregion estimates ↔ p1_ts.R, lines 121 to 143 · score 0.54 · aTHA, AMY, GP, HIP, NAc, CAU · block oscr:b:YFZ4GF8TN8Q9P-I · Report a mismatch
  2. [2] § Results › Brain macroregion estimates ↔ p2_par.R, lines 47 to 90 · score 0.54 · aTHA, AMY, GP, HIP, NAc, CAU · block oscr:b:P4J364YN9DPSM-L · 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 · 516 lines · 17 KB · no license · 1 match

  1. library(tidyverse)
  2. ################################################################################
  3. # IMPORT #
  4. ################################################################################
  5. library(foreach)
  6. library(doParallel)
  7. cl <- makeCluster(8)
  8. registerDoParallel(cl)
  9. cDirecS = "C:/Users/dugor/OneDrive - Universita' degli Studi di Roma Tor Vergata/phd/2. neuro/brain_data/CSV/"
  10. cDirecC = "C:/Users/dugor/OneDrive - Universita' degli Studi di Roma Tor Vergata/phd/2. neuro/brain_data/HCP_Net_BOLD/"
  11. vcFilenamesS = list.files(cDirecS)
  12. vcFilenamesC = list.files(cDirecC)
  13. vcNetworks = c("Vis", "SomMot", "DorsAttn", "SalVentAttn", "Limbic", "Cont", "Default")
  14. vID = gsub("\\D", "", vcFilenamesS)
  15. lAll =
  16. foreach(i = 1 : length(vcFilenamesS),
  17. .packages = c("tidyverse")) %dopar% {
  18. cID = vID[i]
  19. # import sottocort
  20. tInS =
  21. readr::read_csv(paste0(cDirecS, cID, ".nii.gz.csv"), show_col_types = FALSE) |>
  22. dplyr::select(- "...1")
  23. # if(i == 1){
  24. vcSottocort = colnames(tInS)[!str_detect(string = colnames(tInS),
  25. pattern = str_c(vcNetworks, collapse = "|"))]
  26. # }
  27. # import cort
  28. tInC = readr::read_csv(paste0(cDirecC, cID, ".nii.gz.csvnetwork.csv"),
  29. show_col_types = FALSE) |>
  30. dplyr::select(- "...1")
  31. return(list("S" = tInS[, vcSottocort], "C" = tInC))
  32. }
  33. stopCluster(cl)
  34. tS = data.frame(matrix(NA, nrow = 0, ncol = length(colnames(lAll[[1]]$S))))
  35. colnames(tS) <- colnames(lAll[[1]]$S)
  36. tC = data.frame(matrix(NA, nrow = 0, ncol = length(colnames(lAll[[1]]$C))))
  37. colnames(tC) <- colnames(lAll[[1]]$C)
  38. for(i in 1 : length(lAll)){
  39. tS = rbind(tS,
  40. lAll[[i]]$S |>
  41. mutate(id = vID[i],
  42. t = row_number()))
  43. tC = rbind(tC,
  44. lAll[[i]]$C |>
  45. mutate(id = vID[i],
  46. t = row_number()))
  47. }
  48. colnames(tS)[1 : 16] = gsub("\\-(rh|lh)$", "_\\U\\1", colnames(lAll[[i]]$S), perl = TRUE)
  49. colnames(tC)[1 : 14] = sub("^(LH|RH)_(.*)", "\\2_\\1", gsub("_mean", "", colnames(lAll[[i]]$C)))
  50. rm(lAll)
  51. ################################################################################
  52. # STUDY #
  53. ################################################################################
  54. tC |>
  55. select(- c("id", "t")) |> apply(MARGIN = 2, FUN = mean)
  56. library(vars)
  57. library(Spillover)
  58. # plot series
  59. tmax = 3600; nd = 77
  60. tS |>
  61. filter(t < tmax,
  62. id == vID[nd]) |>
  63. pivot_longer(!c("t", "id"),
  64. values_to = "val",
  65. names_to = "reg") |>
  66. separate(reg, into = c("reg", "hemi")) |>
  67. rename(Hemisphere = hemi) |>
  68. mutate(id = as.factor(id),
  69. Hemisphere = as.factor(Hemisphere)) |>
  70. group_by(id, Hemisphere) |>
  71. ggplot(aes(x = t, y = val, col = Hemisphere, group = interaction(id, Hemisphere))) +
  72. geom_line() +
  73. facet_wrap(~ reg) +
  74. ylab("Value") +
  75. xlab("Time (seconds)") +
  76. ggtitle("Subcortical structures") +
  77. theme_minimal()
  78. nd = 151
  79. tC |>
  80. filter(t < tmax,
  81. id == vID[nd]) |>
  82. pivot_longer(!c("t", "id"),
  83. values_to = "val",
  84. names_to = "reg") |>
  85. separate(reg, into = c("reg", "hemi")) |>
  86. rename(Hemisphere = hemi) |>
  87. mutate(id = as.factor(id),
  88. Hemisphere = as.factor(Hemisphere)) |>
  89. group_by(id, Hemisphere) |>
  90. ggplot(aes(x = t, y = val, col = Hemisphere, group = interaction(id, Hemisphere))) +
  91. geom_line() +
  92. facet_wrap(~ reg) +
  93. ylab("Value") +
  94. xlab("Time (seconds)") +
  95. ggtitle("Cortical structures (aggregates)") +
  96. theme_minimal()
  97. # stationarity test
  98. library(tseries)
  99. tS |> # h0: unit root, all rejected
  100. group_by(id) %>%
  101. summarise(across(starts_with("HIP") | starts_with("AMY") | starts_with("pTHA") | starts_with("aTHA") |
  102. starts_with("NAc") | starts_with("GP") | starts_with("PUT") | starts_with("CAU"),
  103. ~ adf.test(.x)$p.value,
  104. .names = "adf_{.col}")) %>%
  105. ungroup() |>
  106. View()
  107. # write.csv("C:/Users/dugor/OneDrive - Universita' degli Studi di Roma Tor Vergata/phd/2. neuro/draft/ts_analysis/adf_subcortical.csv")
  108. tC |> # h0: unit root, all rejected
  109. group_by(id) %>%
  110. summarise(across(starts_with("VIS") | starts_with("SMN") | starts_with("DAN") | starts_with("VAN") |
  111. starts_with("LIM") | starts_with("FPN") | starts_with("DMN"),
  112. ~ adf.test(.x)$p.value,
  113. .names = "adf_{.col}")) %>%
  114. ungroup() |>
  115. View()
  116. # write.csv("C:/Users/dugor/OneDrive - Universita' degli Studi di Roma Tor Vergata/phd/2. neuro/draft/ts_analysis/adf_cortical.csv")
  117. # fractality test
  118. vOutS = c("178243", "198653", "115825", "550439", "562345", "706040",
  119. "169747", "158035", "581450", "412528")
  120. source("C:/Users/dugor/OneDrive - Universita' degli Studi di Roma Tor Vergata/phd/2fou/functions/fWXY23.R")
  121. tHS =
  122. tS |>
  123. pivot_longer(!c("id", "t"), names_to = "net", values_to = "val") |>
  124. arrange(id, net, t) |>
  125. group_by(id, net) |>
  126. summarise(H = H.hat(val),
  127. se = H.se(val)) |>
  128. mutate(
  129. t = (H - 0.5) / se,
  130. less = t < qnorm(0.05)
  131. )
  132. tHS = read_csv("C:/Users/dugor/OneDrive - Universita' degli Studi di Roma Tor Vergata/phd/2. neuro/draft/ts_analysis/cof_subcortical.csv")
  133. tHS |>
  134. dplyr::select(id, net, H) |>
  135. filter(!id %in% vOutS) |>
  136. separate(net, into = c("net", "hemi"), sep = "_") |>
  137. group_by(net) |>
  138. ggplot(aes(x = H, fill = hemi)) +
  139. # geom_density(alpha = 0.7, adjust = 1.5, color = "black") +
  140. geom_histogram(binwidth = 0.03, alpha = 0.7, position = "identity", color = "black") +
  141. geom_vline(xintercept = 0.5, linetype = "dashed", color = "black", size = 0.5) +
  142. facet_wrap(~ net) + # Creates a separate plot for each 'net'
  143. labs(x = latex2exp::TeX("H"),
  144. y = "Density",
  145. fill = "Hemisphere") +
  146. theme_minimal() +
  147. theme(legend.position = "top",
  148. axis.title = element_text(size = 12),
  149. axis.text = element_text(size = 10),
  150. plot.title = element_text(size = 14, face = "bold"))
  151. tHS |>
  152. dplyr::select(id, net, less) |>
  153. filter(!id %in% vOutS) |>
  154. separate(net, into = c("net", "hemi"), sep = "_") |>
  155. group_by(net) |>
  156. summarise(
  157. rough = sum(less == TRUE),
  158. nonrough = sum(less == FALSE),
  159. proportion_rough = mean(less == TRUE),
  160. .groups = 'drop'
  161. ) # |>
  162. # write_csv("C:/Users/dugor/OneDrive - Universita' degli Studi di Roma Tor Vergata/phd/2. neuro/draft/ts_analysis/cof_subcortical_summary.csv")
  163. tHC =
  164. tC |>
  165. pivot_longer(!c("id", "t"), names_to = "net", values_to = "val") |>
  166. arrange(id, net, t) |>
  167. group_by(id, net) |>
  168. summarise(H = H.hat(val),
  169. se = H.se(val)) |>
  170. mutate(
  171. t = (H - 0.5) / se,
  172. less = t < qnorm(0.05),
  173. equal = abs(t) > qnorm(0.025)
  174. )
  175. tHC = read_csv("C:/Users/dugor/OneDrive - Universita' degli Studi di Roma Tor Vergata/phd/2. neuro/draft/ts_analysis/cof_cortical.csv")
  176. vOutC = c("115825", "198653", "178243", "706040", "412528", "581450", "550439",
  177. "463040", "172130", "145834")
  178. tHC |>
  179. dplyr::select(id, net, H) |>
  180. filter(!id %in% vOutC) |>
  181. separate(net, into = c("net", "hemi"), sep = "_") |>
  182. group_by(net) |>
  183. ggplot(aes(x = H, fill = hemi)) +
  184. # geom_density(alpha = 0.7, adjust = 1.5, color = "black") +
  185. geom_histogram(binwidth = 0.03, alpha = 0.7, position = "identity", color = "black") +
  186. geom_vline(xintercept = 0.5, linetype = "dashed", color = "black", size = 0.5) +
  187. facet_wrap(~ net) + # Creates a separate plot for each 'net'
  188. labs(x = latex2exp::TeX("H"),
  189. y = "Density",
  190. fill = "Hemisphere") +
  191. theme_minimal() +
  192. theme(legend.position = "top",
  193. axis.title = element_text(size = 12),
  194. axis.text = element_text(size = 10),
  195. plot.title = element_text(size = 14, face = "bold"))
  196. tHC |>
  197. dplyr::select(id, net, less) |>
  198. filter(!id %in% vOutC) |>
  199. separate(net, into = c("net", "hemi"), sep = "_") |>
  200. group_by(net) |>
  201. summarise(
  202. rough = sum(less == TRUE),
  203. nonrough = sum(less == FALSE),
  204. proportion_rough = mean(less == TRUE),
  205. .groups = 'drop'
  206. ) # |>
  207. # write_csv("C:/Users/dugor/OneDrive - Universita' degli Studi di Roma Tor Vergata/phd/2. neuro/draft/ts_analysis/cof_cortical_summary.csv")
  208. # comparison with MDE estimates of H
  209. cIn = "C:/Users/dugor/OneDrive - Universita' degli Studi di Roma Tor Vergata/phd/2. neuro/estimates/"
  210. for(j in 1 : length(vID)){
  211. cID = vID[j]
  212. if(j == 1){
  213. tHS_post =
  214. read.csv(paste0(cIn, "sottocort/est_sottocort_l51015_", cID, ".csv")) |>
  215. filter(grepl("^H_", par))
  216. tHC_post =
  217. read.csv(paste0(cIn, "cort_aggr/est_cortaggr_l51015_", cID, ".csv")) |>
  218. filter(grepl("^H_", par))
  219. } else {
  220. tHS_post =
  221. tHS_post |>
  222. left_join(
  223. read.csv(paste0(cIn, "sottocort/est_sottocort_l51015_", cID, ".csv")) |>
  224. filter(grepl("^H_", par)),
  225. by = "par"
  226. )
  227. tHC_post =
  228. tHC_post |>
  229. left_join(
  230. read.csv(paste0(cIn, "cort_aggr/est_cortaggr_l51015_", cID, ".csv")) |>
  231. filter(grepl("^H_", par)),
  232. by = "par"
  233. )
  234. }
  235. }
  236. colnames(tHC_post) <- colnames(tHS_post) <- c("par", vID)
  237. # tHS_post |>
  238. tHC_post |>
  239. pivot_longer(!par, names_to = "id", values_to = "H") |>
  240. rename(net = par) |>
  241. mutate(net = gsub("^H_", "", net)) |>
  242. # filter(!id %in% vOutS) |>
  243. filter(!id %in% vOutC) |>
  244. # separate(net, into = c("net", "hemi"), sep = "_") |>
  245. mutate(net = gsub("_mean", "", net)) |>
  246. separate(net, into = c("hemi", "net"), sep = "_") |>
  247. group_by(net) |>
  248. ggplot(aes(x = H, fill = hemi)) +
  249. # geom_density(alpha = 0.7, adjust = 1.5, color = "black") +
  250. geom_histogram(binwidth = 0.03, alpha = 0.7, position = "identity", color = "black") +
  251. geom_vline(xintercept = 0.5, linetype = "dashed", color = "black", size = 0.5) +
  252. facet_wrap(~ net) + # Creates a separate plot for each 'net'
  253. labs(x = latex2exp::TeX("\\hat{H}"),
  254. y = "Density",
  255. fill = "Hemisphere") +
  256. theme_minimal() +
  257. theme(legend.position = "top",
  258. axis.title = element_text(size = 12),
  259. axis.text = element_text(size = 10),
  260. plot.title = element_text(size = 14, face = "bold"))
  261. tHS_post |>
  262. pivot_longer(!par, names_to = "id", values_to = "H") |>
  263. rename(net = par) |>
  264. mutate(net = gsub("^H_", "", net),
  265. id = as.integer(id)) |>
  266. left_join(tHS, by = c("net", "id")) |>
  267. select(net, id, H.x, H.y) |>
  268. rename(post = H.x, pre = H.y) |>
  269. mutate(net = str_sub(net, 1, - 4)) |>
  270. ggplot(aes(x = pre, y = post, color = net)) +
  271. geom_point() +
  272. ylim(0, 1) +
  273. xlim(0, 1) +
  274. ggtitle("Subcortical")
  275. tHC_post |>
  276. pivot_longer(!par, names_to = "id", values_to = "H") |>
  277. rename(net = par) |>
  278. mutate(net = gsub("^H_|_mean", "", net),
  279. id = as.integer(id)) |>
  280. separate(net, into = c("part1", "part2"), sep = "_") |>
  281. unite(net, part2, part1, sep = "_") |>
  282. left_join(tHC, by = c("net", "id")) |>
  283. select(net, id, H.x, H.y) |>
  284. rename(post = H.x, pre = H.y) |>
  285. mutate(net = str_sub(net, 1, - 4)) |>
  286. ggplot(aes(x = pre, y = post, color = net)) +
  287. geom_point() +
  288. ylim(0, 1) +
  289. xlim(0, 1) +
  290. ggtitle("Cortical")
  291. # corr lh-rh
  292. t_corr_S =
  293. tS |>
  294. pivot_longer(!c("t", "id"),
  295. values_to = "val",
  296. names_to = "reg") |>
  297. separate(reg, into = c("reg", "hemi")) |>
  298. pivot_wider(id_cols = c("id", "t", "reg"),
  299. names_from = "hemi", values_from = "val") |>
  300. group_by(id, reg) |>
  301. summarise(rho = cor(rh, lh))
  302. t_corr_C =
  303. tC |>
  304. pivot_longer(!c("t", "id"),
  305. values_to = "val",
  306. names_to = "reg") |>
  307. separate(reg, into = c("hemi", "reg")) |>
  308. pivot_wider(id_cols = c("id", "t", "reg"),
  309. names_from = "hemi", values_from = "val") |>
  310. group_by(id, reg) |>
  311. summarise(rho = cor(RH, LH))
  312. # plot corr
  313. t_corr_S |>
  314. ggplot(aes(x = reg, y = rho, col = id)) +
  315. geom_point() +
  316. ggtitle("Sottocorticali: correlazioni LH - RH") +
  317. theme(legend.position = "none")
  318. t_corr_C |>
  319. ggplot(aes(x = reg, y = rho, col = id)) +
  320. geom_point() +
  321. ggtitle("Corticali: correlazioni LH - RH") +
  322. theme(legend.position = "none")
  323. ################################################################################
  324. # OUTLIERS #
  325. ################################################################################
  326. # Campi, Marta, et al. "Signature Isolation Forest." arXiv preprint arXiv:2403.04405 (2024).
  327. library(isotree)
  328. # import
  329. tSignS = read_csv("C:/Users/dugor/OneDrive - Universita' degli Studi di Roma Tor Vergata/phd/2. neuro/brain_data/sign_d3_sottocort.csv")
  330. tSignC = read_csv("C:/Users/dugor/OneDrive - Universita' degli Studi di Roma Tor Vergata/phd/2. neuro/brain_data/sign_d3_cort.csv")
  331. # outlier detection (consider standard deviations)
  332. oIfS = isolation.forest(data = tSignS, output_score = TRUE)
  333. v10iS = order(oIfS$scores, decreasing = TRUE)[1:10]
  334. oIfC = isolation.forest(data = tSignC, output_score = TRUE)
  335. v10iC = order(oIfC$scores, decreasing = TRUE)[1:10]
  336. # plot scores
  337. scores_S <- data.frame(Index = 1:length(oIfS$scores), Score = oIfS$scores)
  338. top10_S <- data.frame(Index = v10iS, Score = oIfS$scores[v10iS], Label = vID[v10iS])
  339. scores_C <- data.frame(Index = 1:length(oIfC$scores), Score = oIfC$scores)
  340. top10_C <- data.frame(Index = v10iC, Score = oIfC$scores[v10iC], Label = vID[v10iC])
  341. p1 <- ggplot(scores_S, aes(x = Index, y = Score)) +
  342. geom_point(color = "blue") +
  343. geom_point(data = top10_S, aes(x = Index, y = Score), color = "red") +
  344. geom_text(data = top10_S, aes(x = Index, y = Score, label = Label),
  345. position = position_nudge(y = 0.02), size = 3) +
  346. labs(title = "Subcortical", y = "Isolation Forest Score") +
  347. theme_minimal() # +
  348. # theme(axis.text = element_blank(), axis.title.x = element_blank(),
  349. # panel.grid.major = element_line(color = "gray", linetype = "dashed"))
  350. p2 <- ggplot(scores_C, aes(x = Index, y = Score)) +
  351. geom_point(color = "blue") +
  352. geom_point(data = top10_C, aes(x = Index, y = Score), color = "red") +
  353. geom_text(data = top10_C, aes(x = Index, y = Score, label = Label),
  354. position = position_nudge(y = 0.02), size = 3) +
  355. labs(title = "Cortical", y = "Isolation Forest Score") +
  356. theme_minimal() # +
  357. # theme(axis.text = element_blank(), axis.title.x = element_blank(),
  358. # panel.grid.major = element_line(color = "gray", linetype = "dashed"))
  359. library(gridExtra)
  360. grid.arrange(p1, p2, ncol = 2)
  361. # plot outlier time series
  362. vOutS = vID[v10iS]
  363. for(i in 1 : length(vOutS)){
  364. p =
  365. tS |>
  366. filter(id ==
  367. vID[77]) |> # least outlier
  368. # vOutS[i]) |>
  369. pivot_longer(!c("t", "id"),
  370. values_to = "val",
  371. names_to = "reg") |>
  372. separate(reg, into = c("reg", "hemi")) |>
  373. rename(Hemisphere = hemi) |>
  374. mutate(id = as.factor(id),
  375. Hemisphere = as.factor(Hemisphere)) |>
  376. group_by(id, Hemisphere) |>
  377. ggplot(aes(x = t, y = val, col = Hemisphere, group = interaction(id, Hemisphere))) +
  378. geom_line() +
  379. facet_wrap(~ reg) +
  380. ylab("Value") +
  381. xlab("Time (seconds)") +
  382. ggtitle(paste0("Subcortical structures (ID: ", vOutS[i], ")")) +
  383. theme_minimal()
  384. print(p)
  385. }
  386. vOutC = vID[v10iC]
  387. for(i in 1 : length(vOutC)){
  388. p =
  389. tC |>
  390. filter(id ==
  391. # vID[151]) |> # least outlier
  392. vOutC[i]) |>
  393. pivot_longer(!c("t", "id"),
  394. values_to = "val",
  395. names_to = "reg") |>
  396. separate(reg, into = c("reg", "hemi")) |>
  397. rename(Hemisphere = hemi) |>
  398. mutate(id = as.factor(id),
  399. Hemisphere = as.factor(Hemisphere)) |>
  400. group_by(id, Hemisphere) |>
  401. ggplot(aes(x = t, y = val, col = Hemisphere, group = interaction(id, Hemisphere))) +
  402. geom_line() +
  403. facet_wrap(~ reg) +
  404. ylab("Value") +
  405. xlab("Time (seconds)") +
  406. ggtitle(paste0("Cortical structures (ID: ", vOutC[i], ")")) +
  407. theme_minimal()
  408. print(p)
  409. }
  410. # outliers characteristics
  411. vOutliers = unique(c(vID[v10iC], vID[v10iS]))
  412. readxl::read_excel("C:/Users/dugor/OneDrive - Universita' degli Studi di Roma Tor Vergata/phd/2. neuro/brain_data/cognitive_variables.xlsx") |>
  413. rename(crist = FA1, fluid = FA2) |>
  414. left_join(
  415. y =
  416. read_delim("C:/Users/dugor/OneDrive - Universita' degli Studi di Roma Tor Vergata/phd/2. neuro/brain_data/volatility_brain_project.csv",
  417. delim = ";") |>
  418. rename(ID = Subject),
  419. by = "ID"
  420. ) |>
  421. mutate(outlier = ID %in% unique(c(vID[v10iC], vID[v10iS]))) |>
  422. select(- ID) |>
  423. group_by(outlier) |>
  424. summarise(
  425. across(where(is.numeric),
  426. list(mean = ~ mean(.x, na.rm = TRUE), sd = ~ sd(.x, na.rm = TRUE)),
  427. .names = "{.col}_{.fn}"),
  428. .groups = "drop"
  429. ) |>
  430. pivot_longer(!outlier, names_to = "var", values_to = "val") |>
  431. mutate(
  432. type = ifelse(grepl("mean", var), "mean", "sd"),
  433. var = gsub("_mean|_sd", "", var)
  434. ) |>
  435. # pivot_wider(id_cols = c("outlier", "var"), names_from = type, values_from = val) |>
  436. pivot_wider(id_cols = "var", names_from = c(type, outlier), values_from = val) |>
  437. mutate(t_stat =
  438. (mean_FALSE - mean_TRUE) /
  439. sqrt(sd_FALSE ^ 2 / 13 + sd_TRUE ^ 2 / (173 - 13)),
  440. nu = (sd_FALSE ^ 2 / 13 + sd_TRUE ^ 2 / (173 - 13)) ^ 2 /
  441. (sd_FALSE ^ 4 / (13 ^ 2 * 12) + sd_TRUE ^ 4 / (160 ^ 2 * 159)),
  442. pval = 2 * (1 - pt(q = abs(t_stat), df = nu)),
  443. h0 = pval > 0.05)

p1_ts.R at commit 1d7f860, no license · at the source

Overview

Authors: Lorenzo Pini1,2, Ranieri Dugo3, Paolo Pigato3, Maurizio Corbetta1,2,4
  1. Department of Neuroscience, University of Padova, Via Giustiniani 2, 35128 Padova, Italy
  2. Padova Neuroscience Center, University of Padova, Via Orus 2/B, 35129 Padova, Italy
  3. Department of Economics and Finance, University of Rome Tor Vergata, Via Columbia 2, 00133 Rome, Italy
  4. Veneto Institute of Molecular Medicine (VIMM), Via Orus 2, 35129 Padova, Italy
Journal: PNAS nexus, volume 5, issue 9, article pgag285
Dates: received 10 February 2026; accepted 10 August 2026; published online 24 August 2026
Type: Research article · Language: English
License: CC BY-NC
Identifiers: DOI 10.1093/pnasnexus/pgag285 · PMID 42713480 · PMCID PMC13552504 · OpenAlex W7128024266
Open access: gold, a free copy (OpenAlex)
Status: code verified (how the code is found and verified)
Categories: fMRI (modality), human (organism)
Methods: Complexity, fMRI & imaging
Keywords: intrinsic activity, resting-state fMRI, fractional models, multivariate models, intelligence
Journal subjects: Biological, Health, and Medical Sciences, Neuroscience
Topic: Functional Brain Connectivity Studies (Cognitive Neuroscience, Neuroscience), according to OpenAlex
Funding: HORIZON-ERC-SyG (101071900); Neurological Mechanisms Of Injury And Sleep-Like Cellular Dynamics (NEMESIS); HORIZON-INFRA-2022 SERV (101147319); EBRAINS 2.0: A Research Infrastructure to Advance Neuroscience and Brain Health; Cariparo Foundation Excellence grant 2023-2024 (68076); Associazione Italiana Ricerca Alzheimer Onlus (AGYR 2025)
Citations: not cited yet (Europe PMC); 69 references in the paper

Abstract

Understanding how intrinsic brain dynamics are organized is critical for explaining cognition and sensory processing. Theoretical frameworks propose a hierarchical architecture in which some neural systems behave as orchestrators, broadcasting information across the brain, whereas others serve as net receivers (integrators), transforming incoming signals. Here, we test whether this orchestration–integration framework is embedded in intrinsic brain activity, that is, in the absence of cognitive/sensorial tasks. We adopt a multivariate fractional modeling framework originally developed in financial mathematics to characterize how volatility propagates across interacting markets, thereby identifying systems that act as orchestrators or integrators. We then test whether this integrator–orchestrator axis is related to human intelligence. To this end, using 7T resting-state functional magnetic resonance imaging data from 173 healthy young adults, we model spontaneous brain fluctuations with a multivariate fractional Ornstein–Uhlenbeck process to derive directional influence indices. Consistent with our predictions, we identified a bipartite organization, stable across modeling choices. At the subcortical level, the anterior thalamus, putamen, and caudate emerged as orchestrating transmitters, whereas the posterior thalamus, globus pallidus, hippocampus, amygdala, and nucleus accumbens acted as integrating receivers. At the cortical level, attentional and sensory networks functioned as orchestrating transmitters, while higher-order cognitive networks served as integrating receivers. These findings provide support for a theoretically grounded integration–orchestration framework, showing that directional asymmetries in brain spontaneous fluctuations are organized along this axis, with a moderate association with intelligence scores. The proposed fractional framework offers a principled tool to investigate how disruptions of this balance may contribute to brain disorders.

Reproduced under the paper's license (CC BY-NC), from the paper cited above.

Repository

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

ranieridugo/mfou_bio

License: none: the authors keep all their rights
State: the link answers, verified on 27 September 2026
Evidence: files inventoried
Commit: 1d7f86077235c28f387bec10372d1d210f63d3ea, 18 May 2026
Languages: R (11)
Size: 35 files, 11 scripts
Software Heritage: not archived
Found in: “Data Availability”
Holds: README
Not found: license file, CITATION.cff, environment file, tests, continuous integration, documentation
Tools: tidyverse (5 files), ggplot2 (3 files), reshape2 (2 files), broom (1 file), ggpubr (1 file), rstatix (1 file)
Availability: 1 check, the latest on 27 September 2026: the link answers
  • 27 September 2026: the link answers
12 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;
  • 11 scripts, each with its path and the digest of its content;
  • 2 matches between paragraphs of the paper and lines of the code (method lexical-v1);
  • neither the text of the paper nor the code itself.

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

Data

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

Data Availability

The full model, scripts, and parameters are available at https://github.com/ranieridugo/mfou_bio/tree/main. Imaging data are fully available at https://www.humanconnectome.org/.

Reproduced under the paper's license (CC BY-NC), 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, 5 keywords, 6 funders, 52 references.

Cite

This paper

Pini, L., Dugo, R., Pigato, P., & Corbetta, M. (2026). Neural integrator and orchestrator communities shape spontaneous signaling in the human brain. PNAS nexus, 5(9), pgag285. https://doi.org/10.1093/pnasnexus/pgag285

BibTeX

@article{pini2026neural,
author = {Pini, Lorenzo and Dugo, Ranieri and Pigato, Paolo and Corbetta, Maurizio},
title = {{Neural integrator and orchestrator communities shape spontaneous signaling in the human brain}},
journal = {PNAS nexus},
year = {2026},
month = aug,
volume = {5},
number = {9},
pages = {pgag285},
publisher = {Oxford University Press},
issn = {2752-6542},
doi = {10.1093/pnasnexus/pgag285},
url = {https://doi.org/10.1093/pnasnexus/pgag285},
pmid = {42713480},
pmcid = {PMC13552504}
}

RIS

TY - JOUR
AU - Pini, Lorenzo
AU - Dugo, Ranieri
AU - Pigato, Paolo
AU - Corbetta, Maurizio
TI - Neural integrator and orchestrator communities shape spontaneous signaling in the human brain
T2 - PNAS nexus
J2 - PNAS Nexus
PY - 2026
DA - 2026/08/24
VL - 5
IS - 9
SP - pgag285
SN - 2752-6542
PB - Oxford University Press
DO - 10.1093/pnasnexus/pgag285
UR - https://doi.org/10.1093/pnasnexus/pgag285
LA - en
ER -

CSL-JSON

{
"id": "10.1093/pnasnexus/pgag285",
"type": "article-journal",
"title": "Neural integrator and orchestrator communities shape spontaneous signaling in the human brain",
"container-title": "PNAS nexus",
"author": [
{
"family": "Pini",
"given": "Lorenzo"
},
{
"family": "Dugo",
"given": "Ranieri"
},
{
"family": "Pigato",
"given": "Paolo"
},
{
"family": "Corbetta",
"given": "Maurizio"
}
],
"container-title-short": "PNAS Nexus",
"volume": "5",
"issue": "9",
"page": "pgag285",
"DOI": "10.1093/pnasnexus/pgag285",
"PMID": "42713480",
"PMCID": "PMC13552504",
"ISSN": "2752-6542",
"publisher": "Oxford University Press",
"URL": "https://doi.org/10.1093/pnasnexus/pgag285",
"language": "en",
"issued": {
"date-parts": [
[
2026,
8,
24
]
]
}
}

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.1016/j.isci.2025.113953
Spontaneously emerging patterns in human motor cortex code for somatotopic specific movements.
Journal: iScience
In common: 7 references, author Lorenzo Pini
[2] doi:10.1093/cercor/bhab149 [code]
Structural Connectivity Gradients of the Temporal Lobe Serve as Multiscale Axes of Brain Organization and Cortical Evolution.
Journal: Cerebral cortex (New York, N.Y. : 1991)
In common: rstatix, reshape2, ggpubr, 2 other tools, 5 references
[3] doi:10.1126/sciadv.abn9516 [code]
Uncovering a tripartite landmark in posterior cingulate cortex.
Journal: Science advances
In common: broom, rstatix, reshape2, 3 other tools, 3 references
[4] doi:10.7554/elife.101950 [code]
From histology to macroscale function in the human amygdala.
Journal: eLife
In common: rstatix, reshape2, ggpubr, 2 other tools, 4 references
[5] doi:10.1162/netn.a.39 [code]
Benchmarking overlapping community detection methods for applications in human connectomics.
Journal: Network neuroscience (Cambridge, Mass.)
In common: rstatix, ggpubr, tidyverse, 6 references
[6] doi:10.7554/elife.103097 [code]
Canonical neurodevelopmental trajectories of structural and functional manifolds.
Journal: eLife
In common: reshape2, ggpubr, ggplot2, 1 other tool, 5 references
[7] doi:10.7554/elife.88173 [code]
A synergistic workspace for human consciousness revealed by Integrated Information Decomposition.
Journal: eLife
In common: fMRI, 8 references
[8] doi:10.1162/netn_a_00323 [code]
Controversies and progress on standardization of large-scale brain network nomenclature.
Journal: Network neuroscience (Cambridge, Mass.)
In common: fMRI, 8 references
[9] doi:10.1186/s13195-022-01145-x
A low-dimensional cognitive-network space in Alzheimer's disease and frontotemporal dementia.
Journal: Alzheimer's research & therapy
In common: 3 references, author Lorenzo Pini
[10] doi:10.1038/s41467-026-68700-0 [code]
The biological role of local and global fMRI BOLD signal variability in multiscale human brain organization.
Journal: Nature communications
In common: ggpubr, ggplot2, tidyverse, fMRI, 4 references

Contribute

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

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

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/pnasnexus/pgag285.svg)](https://openscicode.org/badge/doi/10.1093/pnasnexus/pgag285)
<!-- oscr-badge:end -->
reStructuredText
.. oscr-badge:start

.. image:: https://openscicode.org/badge/doi/10.1093/pnasnexus/pgag285.svg
   :target: https://openscicode.org/badge/doi/10.1093/pnasnexus/pgag285
   :alt: OSCR

.. oscr-badge:end
HTML
<!-- oscr-badge:start -->
<a href="https://openscicode.org/badge/doi/10.1093/pnasnexus/pgag285"><img src="https://openscicode.org/badge/doi/10.1093/pnasnexus/pgag285.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.