OSCR

Habitual coffee intake shapes the gut microbiome and modifies host physiology and cognition.

Code ↔ Paper

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

9 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 10 matches
  1. [1] § Methods › Self-reported questionnaires › During visits 2, 3 and 4 ↔ scripts/fig_1_behav_cog_health_data.R, lines 62 to 118 · score 0.86 · Physical Activity, emotional reactivity, BSC, SCL, GI, Trait · block oscr:b:C38BQSSBMYVAY-B · Report a mismatch
  2. [2] § Results › Behavioural and cognitive modulation by coffee consumption and withdrawal in habitual and non-habitual drinkers ↔ scripts/fig_1_behav_cog_health_data.R, lines 62 to 118 · score 0.82 · STAI Trait, physical activity, emotional reactivity, HSCL, health, sleep · block oscr:b:C38BQSSBMYVAY-B · Report a mismatch
  3. [3] § Results › Coffee consumption shapes fecal metabolite profiles through caffeine and microbial pathways ↔ scripts/fig_2_gi_metabolome_data.R, lines 1 to 67 · score 0.81 · propionic acid, aminobutyric acid, fumaric acid, hippuric acid, carboxyaldehyde, indoles · block oscr:b:0JKGS079Q4JSY-Q · Report a mismatch
  4. [4] § Results › Coffee consumption shapes fecal metabolite profiles through caffeine and microbial pathways ↔ scripts/fig_final_integration.R, lines 108 to 167 · score 0.80 · propionic acid, aminobutyric acid, fumaric acid, hippuric acid, carboxyaldehyde, indoles · block oscr:b:ZVD7X7VZ89XMT-W · Report a mismatch
  5. [5] § Results ↔ scripts/fig_1_behav_cog_health_data.R, lines 120 to 185 · score 0.79 · GIS VAS, physical activity, ModRey, sleep, BDI, PSS · block oscr:b:EK35NG624NWDE-C · Report a mismatch
  6. [6] § Results › Coffee intake drives targeted shifts in gut microbial populations without changing overall diversity ↔ scripts/fig_2_gi_microbiome_data.R, lines 1 to 61 · score 0.72 · Haemophilus parainfluenzae, Eggerthela sp, Cryptobacterium curtum, ACP1, parvula, CAG · block oscr:b:RPGSHWK3JQYGB-Y · Report a mismatch
  7. [7] § Results › Coffee intake drives targeted shifts in gut microbial populations without changing overall diversity ↔ scripts/fig_final_integration_MB_fecmet_cog.R, lines 1 to 50 · score 0.71 · Haemophilus parainfluenzae, Eggerthela sp, Cryptobacterium curtum, ACP1, parvula, CAG · block oscr:b:7J1HKG7BP99G7-L · Report a mismatch
  8. [8] § Results › Phenolic acid metabolites in feces and urine reflect coffee-derived dietary signatures independent of caffeine ↔ scripts/fig_final_integration_MB_urmet_cog.R, lines 1 to 55 · score 0.64 · cinnamic acid, propanoic acid, hydroxybenzoic acid, phenylacetic, NCDs, caffeinated · block oscr:b:QBNPNP6EX0611-N · Report a mismatch
  9. [9] § Results › Phenolic acid metabolites in feces and urine reflect coffee-derived dietary signatures independent of caffeine ↔ scripts/fig_final_integration_urmet_MB_behav.R, lines 1 to 55 · score 0.64 · cinnamic acid, propanoic acid, hydroxybenzoic acid, phenylacetic, NCDs, caffeinated · block oscr:b:T1JFG9RFY9HWN-K · Report a mismatch
  10. [10] § Methods › Bioinformatics ↔ subscripts/load_and_clean_data.R, lines 1 to 32 · score 0.61 · clr transformed, Alpha diversity, PERMANOVA · block oscr:b:NP74R6W6P43Y0-1 · 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 · 429 lines · 21 KB · GPL-3.0 · 3 matches

  1. # 1=NCD 0=F
  2. # 2=CD 1=M
  3. s1 = readxl::read_xlsx("raw/cognition/raw_xlsx/V2 - SPSS Template.xlsx")
  4. s2 = readxl::read_xlsx("raw/cognition/raw_xlsx/V2 vs V3 - SPSS Template.xlsx")
  5. s3 = readxl::read_xlsx("raw/cognition/raw_xlsx/V2 vs V4 - SPSS Template.xlsx")
  6. s4 = readxl::read_xlsx("raw/cognition/raw_xlsx/V3 vs V4 - SPSS Template.xlsx")
  7. si = readxl::read_xlsx("raw/cognition/raw_xlsx/Intervention timepoints - SPSS template.xlsx")
  8. sw = readxl::read_xlsx("raw/cognition/raw_xlsx/Washout timepoints - SPSS template.xlsx")
  9. colnames(s1) <- str_remove(colnames(s1), pattern = "V2_|v2_|V2-|v2-")
  10. s1 <- s1 %>% mutate(BMI = as.numeric(BMI),
  11. BP_D = as.numeric(BP_D))
  12. s2 <- s2 %>% mutate(BMI = as.numeric(BMI),
  13. BP_D = as.numeric(BP_D))
  14. s3 <- s3 %>% mutate(BMI = as.numeric(BMI),
  15. BP_D = as.numeric(BP_D))
  16. s4 <- s4 %>% mutate(BMI = as.numeric(BMI),
  17. BP_D = as.numeric(BP_D))
  18. do.call(rbind,
  19. list(s1[,1:3],
  20. s2[,1:3],
  21. s3[,c(1,3,2)],
  22. s4[,c(1,3,2)],
  23. sw[,c(1,3,2)],
  24. si[,c(1,3,2)])) %>%
  25. distinct() %>%
  26. left_join(., s1, by = c("ID" = "ID", "visit" = "visit", "Coffee_Type" = "Coffee_Type"), keep = FALSE) %>%
  27. left_join(., s2, by = c("ID" = "ID", "visit" = "visit", "Coffee_Type" = "Coffee_Type"), keep = FALSE) %>%
  28. left_join(., s3, by = c("ID" = "ID", "visit" = "visit", "Coffee_Type" = "Coffee_Type"), keep = FALSE) %>%
  29. left_join(., s4, by = c("ID" = "ID", "visit" = "visit", "Coffee_Type" = "Coffee_Type"), keep = FALSE) %>%
  30. left_join(., sw, by = c("ID" = "ID", "visit" = "visit", "Coffee_Type" = "Coffee_Type"), keep = FALSE) %>%
  31. left_join(., si , by = c("ID" = "ID", "visit" = "visit", "Coffee_Type" = "Coffee_Type"), keep = FALSE) %>%
  32. pivot_longer(!c(ID, Coffee_Type, visit, Gender)) %>%
  33. mutate(name = str_remove(name, "\\.x.*|\\.y.*")) %>%
  34. mutate(name = str_remove(name, "V2_|v2_|V3_|v3_")) %>%
  35. mutate(name = str_replace(name, "IPAQ-", "IPAQ_")) %>%
  36. distinct() %>%
  37. filter(!is.na(value)) %>%
  38. mutate(visit = factor(visit, levels = c("V2", "T2W", "T4W", "V3", "T2I", "T4I", "T14", "V4"))) %>%
  39. mutate(Visit = case_when(visit == "V2" ~ "Baseline",
  40. visit %in% c("T2W", "T4W", "V3") ~ "Post-\nwashout",
  41. visit %in% c("T2I", "T4I", "T14", "V4") ~ "Post-\nreintroduction")) %>%
  42. dplyr::select(!Gender) %>%
  43. mutate(Visit = factor(Visit, levels = c("Baseline","Post-\nwashout", "Post-\nreintroduction")),
  44. Coffee_Type = factor(Coffee_Type, levels = c("NCD", "Coffee", "No Coffee", "DECAF", "CAF"))) %>%
  45. filter(!str_detect(name, "7DFD")) %>%
  46. filter(!str_detect(name, "BLVAS")) %>%
  47. filter(!str_detect(name, "post-pre")) %>%
  48. filter(str_detect(name, "UPPS|ERS|PASAT|MdR|STAI|PSS|BDI|GIS|SCL|PSQI|IPAQ|VAS|QCC|CWSQ")) %>%
  49. mutate(name = str_remove(name, "preSECPT_")) %>%
  50. mutate(meas_group = case_when(str_detect(name, "7DFD_") ~ "Dietary",
  51. str_detect(name, "Blood") ~ "Blood",
  52. str_detect(name, "Plasma") ~ "Blood",
  53. str_detect(name, "Plasma") ~ "Blood",
  54. str_detect(name, "BP_D|BDI") ~ "Mood",
  55. str_detect(name, "UPPS") ~ "Impulsivity",
  56. str_detect(name, "SCL") ~ "Mental Health",
  57. str_detect(name, "PASA") ~ "Stress\n&\nAnxiety",
  58. str_detect(name, "PASAT") ~ "Attention",
  59. str_detect(name, "PSQI") ~ "Sleep",
  60. str_detect(name, "BMI|BSC|GIS_VAS") ~ "GI\nHealth",
  61. str_detect(name, "CAR|STAI|PSS") ~ "Stress\n&\nAnxiety",
  62. str_detect(name, "MdR") ~ "Memory",
  63. str_detect(name, "ERS") ~ "Emotional Reactivity",
  64. str_detect(name, "IPAQ") ~ "Physical Activity",
  65. str_detect(name, "CWSQ_Tot") ~ "Coffee Withdrawal",
  66. str_detect(name, "VASF_Fatigue") ~ "Coffee Withdrawal",
  67. str_detect(name, "VASF_Energy") ~ "Coffee Withdrawal",
  68. str_detect(name, "QCC_Tot") ~ "Coffee Withdrawal",
  69. .default = NA)
  70. ) %>%
  71. filter(!is.na(meas_group)) %>%
  72. mutate(name = str_replace(name, "UPPS_|UPPS", "(UPPS) ")) %>%
  73. mutate(name = str_replace(name, "ERS_|ERS", "(ERS) ")) %>%
  74. mutate(name = str_replace(name, "MdR_", "(ModRey) ")) %>%
  75. mutate(name = str_replace(name, "SCL_", "(HSCL) ")) %>%
  76. mutate(name = str_replace(name, "GIS_VAS_Total", "(GIS-VAS) Tot ")) %>%
  77. mutate(name = str_replace(name, "PASAT_|PASAT", "(PASAT) ")) %>%
  78. mutate(name = str_replace(name, "STAI_TRAIT", "(STAI-T) ")) %>%
  79. mutate(name = str_replace(name, "PSS", "(PSS)")) %>%
  80. mutate(name = str_replace(name, "BDITot", "(BDI) Tot")) %>%
  81. mutate(name = str_replace(name, "IPAQ_MET", "(IPAQ)\nMET-minutes")) %>%
  82. mutate(name = str_replace(name, "PSQI_GlobalScore", "(PSQI) Tot")) %>%
  83. mutate(name = str_replace(name, "TotalA_F1", "Tot")) %>%
  84. mutate(name = str_replace(name, "Tot ", "Tot")) %>%
  85. mutate(name = str_replace(name, "CWSQ_Tot", "(CWSQ) Tot")) %>%
  86. mutate(name = str_replace(name, "QCC_Tot", "(QCC) Tot")) %>%
  87. filter(!str_detect(name, "\\) [^TM]")) %>%
  88. mutate(name = str_replace(name, "VASF_", "(VASF) ")) %>%
  89. mutate(name = str_replace(name, "IPAQ-|IPAQ_", "(IPAQ) ")) %>%
  90. #mutate(value = case_when(is.na(value)~ 0, .default = value)) %>%
  91. mutate(meas_group = factor(meas_group, levels = c("Impulsivity", "Emotional Reactivity",
  92. "Attention","Memory", "Stress\n&\nAnxiety",
  93. "Mood", "Mental Health", "GI\nHealth",
  94. "Sleep", "Physical Activity", "Coffee Withdrawal"))) %>%
  95. filter(!is.na(meas_group)) %>%
  96. group_by(name) %>%
  97. mutate(avg_cof = case_when(name %in% c("(CWSQ) Tot", "(VASF) Fatigue", "(VASF) Energy", "(QCC) Tot") ~ mean(value[Coffee_Type == "CAF" & visit == "V4"], na.rm = T),
  98. !name %in% c("(CWSQ) Tot", "(VASF) Fatigue", "(VASF) Energy", "(QCC) Tot") ~ mean(value[Coffee_Type == "Coffee"], na.rm = T),
  99. .default = NA)
  100. ) %>%
  101. mutate(sd_tot = sd(value, na.rm = T)) %>%
  102. mutate(value = (value - avg_cof)/sd_tot) %>%
  103. ungroup() %>%
  104. mutate(name = str_replace(name, "\\) ", "\\)\n")) %>%
  105. mutate(name = factor(name, levels = (c("(UPPS)\nTot", "(ERS)\nTot", "(ModRey)\nTot", "(PASAT)\nTot",
  106. "(PSS)", "(STAI-T)\nTot", "(BDI)\nTot", "(GIS-VAS)\nTot",
  107. "(PSQI)\nTot", "(IPAQ)\nMET-minutes",
  108. "(CWSQ)\nTot", "(VASF)\nFatigue", "(VASF)\nEnergy", "(QCC)\nTot")))) %>%
  109. mutate(caffeine = case_when(
  110. ID %in% c("APC115-003", "APC115-005", "APC115-014", "APC115-017", "APC115-037",
  111. "APC115-038", "APC115-039", "APC115-043", "APC115-054", "APC115-069",
  112. "APC115-072", "APC115-087", "APC115-101", "APC115-108", "APC115-109") ~ "DECAF",
  113. ID %in% c("APC115-008", "APC115-011","APC115-016", "APC115-033","APC115-036",
  114. "APC115-042", "APC115-052","APC115-058", "APC115-059", "APC115-060",
  115. "APC115-061","APC115-063","APC115-090","APC115-103","APC115-105","APC115-113") ~ "CAF")) %>%
  116. mutate(caffeine = factor(caffeine, levels = c("CAF", "DECAF"))) %>%
  117. mutate(Visit = factor(Visit, levels = c("Baseline","Post-\nwashout", "Post-\nreintroduction")),
  118. Coffee_Type = factor(Coffee_Type, levels = c("NCD", "Coffee", "No Coffee", "DECAF", "CAF"))) %>%
  119. mutate(mdlab = case_when(Coffee_Type == "NCD" ~ "<img \n src='raw/icons/NCD.png' width='50' />",
  120. Coffee_Type == "Coffee" ~ "<img \n src='raw/icons/CD.png' width='50' />",
  121. Coffee_Type == "No Coffee" ~ "<img \n src='raw/icons/WASHOUT.png' width='50' />",
  122. Coffee_Type == "DECAF" ~ "<img \n src='raw/icons/REINTRO.png' width='50' />",
  123. Coffee_Type == "CAF" ~ "<img \n src='raw/icons/REINTRO.png' width='50' />"),
  124. mdlab = factor(mdlab, levels = c("<img \n src='raw/icons/NCD.png' width='50' />",
  125. "<img \n src='raw/icons/CD.png' width='50' />",
  126. "<img \n src='raw/icons/WASHOUT.png' width='50' />",
  127. "<img \n src='raw/icons/REINTRO.png' width='50' />"))
  128. ) %>%
  129. group_by(name, visit, Coffee_Type) %>%
  130. mutate(avg_by_caf_timepoint = mean(value)) %>%
  131. ungroup() %>% #filter(name == "Cryptobacterium curtum") %>% View
  132. group_by(name, visit, mdlab) %>%
  133. mutate(avg_delta_caf_decaf = case_when(visit == "V2" ~ 0,
  134. visit != "V2" ~ abs(
  135. mean(avg_by_caf_timepoint[caffeine == "CAF"]) - mean(avg_by_caf_timepoint[caffeine == "DECAF"])
  136. ),
  137. .default = NA)
  138. ) %>%
  139. mutate(plot_label = case_when((max(abs(avg_by_caf_timepoint)) > 0.5 | max(abs(avg_delta_caf_decaf)) > 0.5 ) ~ 'moderate',
  140. .default = "less")) %>%
  141. ungroup() %>%
  142. group_by(name, mdlab) %>%
  143. mutate(max_per_group = max(abs(avg_by_caf_timepoint))) %>%
  144. ungroup() %>%
  145. group_by(name) %>%
  146. mutate(abs_delta_NCD = mean(abs(avg_by_caf_timepoint[Coffee_Type == "NCD"]))) %>%
  147. #Currently no filters for cognition
  148. # filter(any(plot_label == "moderate")) %>%
  149. # filter(any(max_per_group > 0.5) ) %>%
  150. #
  151. # filter(abs_delta_NCD > 0.5) %>%
  152. ungroup() -> df_long_cog
  153. CAF_DECAF_order <- c(df_long_cog %>%
  154. filter(Visit == "Post-\nreintroduction") %>%
  155. filter(Coffee_Type == "CAF") %>% .$ID %>% sort %>% unique,
  156. df_long_cog %>%
  157. filter(Visit == "Post-\nreintroduction") %>%
  158. filter(Coffee_Type == "DECAF") %>% .$ID %>% sort %>% unique)
  159. plot_cog_NCD <-
  160. df_long_cog %>%
  161. filter(Coffee_Type =="NCD") %>%
  162. mutate(mdlab = factor("<img \n src='raw/icons/NCD.png' width='50' /> \nNon-Coffee", levels = c("<img \n src='raw/icons/NCD.png' width='50' /> \nNon-Coffee"))) %>%
  163. mutate(visit = factor("V2", levels = c("V2"))) %>%
  164. mutate(lab = "NCD") %>%
  165. group_by(Coffee_Type, name) %>%
  166. mutate(avg_by_group = round(mean(value, na.rm = T), digits = 2)) %>%
  167. ungroup() %>%
  168. mutate( facet_name = factor(
  169. x = paste0(
  170. str_replace_all(meas_group, "\n", " "),
  171. "\n",
  172. str_replace(str_remove(name, "\\)"),"\n", " "),
  173. ")"),
  174. levels = paste0(
  175. str_replace_all(levels(meas_group)[c(1:2, 4, 5, 5, 5, 6, 8, 9, 10)], "\n", " "),
  176. "\n",
  177. str_replace(levels(name)[c(1:10)], "\\)\n", " "),
  178. ")") %>% str_replace(., "\\)\\)", ")"))
  179. ) %>%
  180. # rbind(., c(ID = "APC115-001", visit = "V2", Coffee_Type = "NCD", name = "(CWSQ) Tot", value = 0, Visit = "Baseline", meas_group = "Coffee Withdrawal", mdlab = "<img \n src='raw/icons/NCD.png' width='50' />", lab = "NCD")) %>%
  181. # rbind(., c(ID = "APC115-001", visit = "V2", Coffee_Type = "NCD", name = "(VASF) Energy", value = 0, Visit = "Baseline", meas_group = "Coffee Withdrawal", mdlab = "<img \n src='raw/icons/NCD.png' width='50' />", lab = "NCD")) %>%
  182. # rbind(., c(ID = "APC115-001", visit = "V2", Coffee_Type = "NCD", name = "(VASF) Fatigue", value = 0, Visit = "Baseline", meas_group = "Coffee Withdrawal", mdlab = "<img \n src='raw/icons/NCD.png' width='50' />", lab = "NCD")) %>%
  183. # rbind(., c(ID = "APC115-001", visit = "V2", Coffee_Type = "NCD", name = "(QCC) Tot", value = 0, Visit = "Baseline", meas_group = "Coffee Withdrawal", mdlab = "<img \n src='raw/icons/NCD.png' width='50' />", lab = "NCD")) %>%
  184. #
  185. # mutate(value = as.numeric(value)) %>%
  186. ggplot() +
  187. aes(y = ID, x = visit, fill = value, label = avg_by_group) +
  188. geom_tile() +
  189. geom_label(data = . %>% group_by(visit, Coffee_Type, name, mdlab, meas_group, facet_name) %>%
  190. summarise(n = length(unique(ID)),
  191. avg_by_group = mean(avg_by_group)) %>% ungroup(),
  192. # x = 1,
  193. aes(x = visit, y = n/2, fill = avg_by_group, label = avg_by_group)) +
  194. #geom_point(shape = 24) +
  195. scale_fill_gradientn(colours = c(
  196. "#053061","#053061",
  197. "#2166ac","#2166ac",
  198. "#4393c3","#4393c3",
  199. "#f7f7f7","#f7f7f7",
  200. "#d6604d","#d6604d",
  201. "#d73027","#d73027",
  202. "#a50026", "#a50026"
  203. ),
  204. limits = c(-4.5, 4.5), "Effect size (d)"
  205. ) +
  206. scale_y_discrete(position = "right") +
  207. scale_x_discrete(expand = expansion(mult = c(0))) +
  208. facet_grid(facet_name~mdlab, scales = "free", switch = "y") +
  209. # geom_image(x = 1, y = 3, image = "/home/thomaz/Downloads/Cryan, John 2015.png", size = 3)+
  210. xlab(NULL) + ylab(NULL) +
  211. theme_test() +
  212. theme(
  213. strip.text.x = element_markdown(angle = 0, vjust = 0),
  214. strip.text.y.left = element_text(angle = 0),
  215. axis.text.y = element_blank(), axis.ticks.y = element_blank(),
  216. # axis.text.x = element_text(angle = 330, hjust = 0),
  217. axis.text.x = element_blank(), axis.ticks.x = element_blank(),
  218. panel.spacing.x = unit(0, "lines")
  219. )
  220. plot_cog_CD <- df_long_cog %>%
  221. filter(Coffee_Type != "NCD") %>%
  222. filter(visit %in% c("V2", "V3","V4")) %>%
  223. filter(meas_group != "Coffee Withdrawal") %>%
  224. mutate(mdlab = paste0(mdlab, " \n", Visit) %>%
  225. str_remove(., "Post-\n") %>%
  226. str_replace(., "Baseline", "Coffee") %>%
  227. str_replace(., "reintroduction$", "Reintroduction") %>%
  228. str_replace(., "washout$", "Washout")
  229. ) %>%
  230. mutate(mdlab = factor(mdlab, levels = unique(mdlab))) %>%
  231. mutate(caffeine = case_when(
  232. ID %in% c("APC115-003", "APC115-005", "APC115-014", "APC115-017", "APC115-037",
  233. "APC115-038", "APC115-039", "APC115-043", "APC115-054", "APC115-069",
  234. "APC115-072", "APC115-087", "APC115-101", "APC115-108", "APC115-109") ~ "DECAF",
  235. ID %in% c("APC115-008", "APC115-011","APC115-016", "APC115-033","APC115-036",
  236. "APC115-042", "APC115-052","APC115-058", "APC115-059", "APC115-060",
  237. "APC115-061","APC115-063","APC115-090","APC115-103","APC115-105","APC115-113") ~ "CAF")) %>%
  238. mutate(caffeine = factor(caffeine, levels = c("CAF", "DECAF"))) %>%
  239. mutate(lab = case_when(Visit == "Baseline" ~ "Coffee\n(baseline)", .default = Visit),
  240. lab = factor(lab, levels = c("Coffee\n(baseline)", "Post-\nwashout", "Post-\nreintroduction"))) %>%
  241. mutate(facet_lab = case_when(Visit == "Baseline" ~ "CD",
  242. Visit == "Post-\nwashout" ~ "wash\nout",
  243. Visit == "Post-\nreintroduction" ~ "inter\nvention"),
  244. facet_lab = factor(facet_lab, levels = c("CD","wash\nout", "inter\nvention"))) %>%
  245. group_by(Coffee_Type, caffeine, name) %>%
  246. mutate(avg_by_group = round(mean(value, na.rm = T), digits = 2)) %>%
  247. ungroup() %>%
  248. ggplot() +
  249. aes(y = ID, x = visit, fill = value, label = avg_by_group)+
  250. geom_tile() +
  251. geom_label(data = . %>% group_by(visit, Coffee_Type, caffeine, name, mdlab, plot_label) %>%
  252. summarise(n = length(unique(ID)),
  253. avg_by_group = mean(avg_by_group)) %>%
  254. ungroup() %>% group_by(name, mdlab)
  255. %>% filter(any(plot_label == "moderate")) %>% ungroup(),
  256. aes(x = visit, y = n/2, fill = avg_by_group, label = avg_by_group)) +
  257. scale_fill_gradientn(colours = c(
  258. "#053061","#053061",
  259. "#2166ac","#2166ac",
  260. "#4393c3","#4393c3",
  261. "#f7f7f7","#f7f7f7",
  262. "#d6604d","#d6604d",
  263. "#d73027","#d73027",
  264. "#a50026", "#a50026"
  265. ),
  266. limits = c(-4.5, 4.5), "Effect size (d)"
  267. ) +
  268. scale_y_discrete(position = "right" ) +
  269. scale_x_discrete(expand = expansion(mult = c(0))) +
  270. ggh4x::facet_nested(name * caffeine ~ mdlab, scales = "free", space = "free_x",
  271. strip = ggh4x::strip_nested(size = "variable",
  272. background_y = list(element_blank(), element_rect(), element_rect()),
  273. text_y = list(element_blank(), element_text(), element_text()),
  274. by_layer_y = TRUE )) +
  275. xlab(NULL) + ylab(NULL) +
  276. theme_test() +
  277. theme(#strip.text.y = element_blank(),
  278. strip.text.x = element_markdown(vjust = 0), #,
  279. # strip.text.x = element_blank(), strip.background.x = element_blank()
  280. strip.text.y = element_text(angle =0),
  281. axis.text.y = element_blank(), axis.ticks.y = element_blank(),
  282. #axis.text.x = element_text(angle = 330, hjust = 0)#, panel.spacing.x =unit(0, "lines")
  283. axis.text.x = element_blank(),
  284. axis.ticks.x = element_blank(),
  285. panel.spacing.x = unit(0, "lines")
  286. )
  287. plot_cog_craving <- df_long_cog %>%
  288. filter(Coffee_Type != "NCD") %>%
  289. filter(name %in% c("(CWSQ)\nTot", "(VASF)\nFatigue", "(VASF)\nEnergy", "(QCC)\nTot")) %>%
  290. mutate(mdlab = paste0(mdlab, " \n", Visit) %>%
  291. str_remove(., "Post-\n") %>%
  292. str_replace(., "Baseline", "Coffee") %>%
  293. str_replace(., "reintroduction$", "Reintroduction") %>%
  294. str_replace(., "washout$", "Washout")) %>%
  295. mutate(mdlab = factor(mdlab, levels = unique(mdlab))) %>%
  296. mutate(caffeine = case_when(
  297. ID %in% c("APC115-003", "APC115-005", "APC115-014", "APC115-017", "APC115-037",
  298. "APC115-038", "APC115-039", "APC115-043", "APC115-054", "APC115-069",
  299. "APC115-072", "APC115-087", "APC115-101", "APC115-108", "APC115-109") ~ "DECAF",
  300. ID %in% c("APC115-008", "APC115-011","APC115-016", "APC115-033","APC115-036",
  301. "APC115-042", "APC115-052","APC115-058", "APC115-059", "APC115-060",
  302. "APC115-061","APC115-063","APC115-090","APC115-103","APC115-105","APC115-113") ~ "CAF")) %>%
  303. mutate(caffeine = factor(caffeine, levels = c("CAF", "DECAF"))) %>%
  304. mutate(lab = case_when(Visit == "Baseline" ~ "Coffee\n(baseline)", .default = Visit),
  305. lab = factor(lab, levels = c("Coffee\n(baseline)", "Post-\nwashout", "Post-\nreintroduction"))) %>%
  306. mutate(facet_lab = case_when(Visit == "Baseline" ~ "CD",
  307. Visit == "Post-\nwashout" ~ "wash\nout",
  308. Visit == "Post-\nreintroduction" ~ "inter\nvention"),
  309. facet_lab = factor(facet_lab, levels = c("CD","wash\nout", "inter\nvention"))) %>%
  310. group_by(Coffee_Type, caffeine, name, visit) %>%
  311. mutate(avg_by_group = round(mean(value, na.rm = T), digits = 2)) %>%
  312. ungroup() %>%
  313. ggplot() +
  314. aes(y = ID, x = visit, fill = value, label = avg_by_group)+
  315. geom_tile() +
  316. geom_label(data = . %>% group_by(visit, Coffee_Type, caffeine, name, mdlab, plot_label) %>%
  317. summarise(n = length(unique(ID)),
  318. avg_by_group = mean(avg_by_group)) %>%
  319. ungroup() %>% group_by(name, mdlab)
  320. %>% filter(any(plot_label == "moderate")) %>% ungroup(),
  321. aes(x = visit, y = n/2, fill = avg_by_group, label = avg_by_group)) +
  322. scale_fill_gradientn(colours = c(
  323. "#053061","#053061",
  324. "#2166ac","#2166ac",
  325. "#4393c3","#4393c3",
  326. "#f7f7f7","#f7f7f7",
  327. "#d6604d","#d6604d",
  328. "#d73027","#d73027",
  329. "#a50026", "#a50026"
  330. ),
  331. limits = c(-4.5, 4.5), "Effect size (d)"
  332. ) +
  333. scale_y_discrete(position = "right" ) +
  334. scale_x_discrete(expand = expansion(mult = c(0))) +
  335. ggh4x::facet_nested(name * caffeine ~ mdlab, scales = "free", space = "free_x", switch = "y",
  336. strip = ggh4x::strip_nested(size = "variable",
  337. background_y = list(element_rect(), element_rect(), element_rect()),
  338. text_y = list(element_text(), element_text(), element_text()),
  339. by_layer_y = TRUE )) +
  340. xlab(NULL) + ylab(NULL) +
  341. theme_test() +
  342. theme(
  343. strip.text.y.left = element_text(angle =0),
  344. strip.text.x = element_markdown(angle = 0, vjust = 0), #,
  345. # strip.text.x = element_blank(), strip.background.x = element_blank()
  346. #strip.text.y = element_text(angle =0),
  347. axis.text.y = element_blank(), axis.ticks.y = element_blank(),
  348. #axis.text.x = element_text(angle = 330, hjust = 0)#, panel.spacing.x =unit(0, "lines")
  349. axis.text.x = element_blank(), axis.ticks.x = element_blank(),
  350. panel.spacing.x = unit(0, "lines")
  351. )

fig_1_behav_cog_health_data.R at commit 6c80dad, under GPL-3.0 · at the source

Overview

Authors: Serena Boscaini1,2, Thomaz F S Bastiaanssen1,2, Gerard M Moloney1,2, Federica Bergamo3, Laila Zeraik3, Caroline O’Leary1, Aimone Ferri1,2, Maha Irfan1, Maaike van der Rhee1,2, Thaïs I F Lindemann1,2, Elizabeth Schneider1,4, Arthi Chinna Meyyappan1, Kirsten Berding Harold1, Caitríona M Long-Smith1, Carina Carbia1, Kenneth J O’Riordan1, José Fernando Rinaldi de Alvarenga3, Nicole Tosi3, Daniele Del Rio3,5, Alice Rosi3, Letizia Bresciani3, Pedro Mena3,5, Gerard Clarke1,6, John F Cryan1,2
  1. APC Microbiome Ireland, University College Cork, Cork, Ireland
  2. Department of Anatomy and Neuroscience, University College Cork, Cork, Ireland
  3. Department of Food and Drug, University of Parma, Parma, Italy
  4. School of Applied Psychology, University College Cork, Cork, Ireland
  5. Microbiome Research Hub, University of Parma, Parma, Italy
  6. Department of Psychiatry and Neurobehavioural Science, University College Cork, Cork, Ireland
Institutions: University College Cork (Ireland); APC Microbiome Institute (Ireland); University of Parma (Italy)
Journal: Nature communications, volume 17, issue 1, article 3439
Dates: received 21 October 2024; accepted 17 March 2026; published online 21 April 2026
Type: Research article · Language: English
License: CC BY-NC-ND
Identifiers: DOI 10.1038/s41467-026-71264-8 · PMID 42014402 · PMCID PMC13100100 · OpenAlex W7155099732
Open access: gold, a free copy (OpenAlex)
Status: code verified (how the code is found and verified)
Categories: genetics / omics (modality), human (organism), cognitive (subfield)
Methods: Statistics, Smoothing, state filtering, decompositions, Preprocessing, Connectivity, fMRI & imaging
Keywords: Predictive markers, Metabolomics
MeSH: Coffee*, Cognition*, Gastrointestinal Microbiome*, Adult, Brain, Caffeine, Feces, Female, Humans, Male, Metabolome (* major topic)
Topic: Coffee research and impacts (Pharmacology (medical), Medicine), according to OpenAlex
Funding: EC | Horizon 2020 Framework Programme (EU Framework Programme for Research and Innovation H2020) (950050); ISIC Institute for Scientific Information on Coffee
Citations: cited by 4 papers (Europe PMC); 97 references in the paper

Abstract

The abstract is not reproduced here: the paper's license (CC BY-NC-ND) does not allow it. Read it in the paper, at the publisher or on Europe PMC.

Repositories

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

qiyunzhu/woltka

License: BSD-3-Clause
State: the link answers, verified on 14 November 2026
Evidence: files inventoried
Commit: 42df8869da98af3721b4bd29c40ef9b28d925118, 8 September 2025
Languages: Python (32), Shell (1)
Size: 194 files, 33 scripts
Software Heritage: archived
Found in: the text, “Microbiome: taxonomic and functional analysis”
Holds: README, license file, environment (environment.yml, pyproject.toml), tests, continuous integration, documentation
Not found: CITATION.cff
Tools: NumPy (5 files), pandas (3 files), Numba (1 file)
Availability: 2 checks, the latest on 14 November 2026: the link answers
  • 14 November 2026: the link answers
  • 29 September 2026: the link answers
35 files

thomazbastiaanssen/coffee

License: GPL-3.0
State: the link answers, verified on 29 September 2026
Evidence: files inventoried
Commit: 6c80dad8d30f79c2d8fb1e17692a7c4d6a79c56e, 25 September 2025
Languages: R (20)
Size: 119 files, 20 scripts
Software Heritage: not archived
Found in: “Code availability”
Holds: README, license file, 1 notebook
Not found: CITATION.cff, environment file, tests, continuous integration, documentation
Tools: tidyverse (18 files), patchwork (3 files), broom (1 file), ggplot2 (1 file), lme4 (1 file), lmerTest (1 file)
Availability: 1 check, the latest on 29 September 2026: the link answers
  • 29 September 2026: the link answers
22 files

Code availability statement

The paper has a code availability statement. Its license (CC BY-NC-ND) does not allow reproducing it here; in short, from what the harvester recognized in it:

Read it in the paper: doi.org/10.1038/s41467-026-71264-8.

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:

  • 2 repositories of the authors' code, each at its verified commit, with its license and how the link was found in the paper;
  • 53 scripts, each with its path and the digest of its content;
  • 10 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

Datasets cited

Code and data availability statement

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

Read it in the paper: doi.org/10.1038/s41467-026-71264-8.

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, 29 September 2026: the first record

Recorded: type, language, journal, volume, issue, pages, dates, 24 authors, 2 keywords, 11 MeSH terms, 2 funders, 88 references.

Cite

This paper

Boscaini, S., Bastiaanssen, T. F. S., Moloney, G. M., Bergamo, F., Zeraik, L., O’Leary, C., Ferri, A., Irfan, M., van der Rhee, M., Lindemann, T. I. F., Schneider, E., Meyyappan, A. C., Harold, K. B., Long-Smith, C. M., Carbia, C., O’Riordan, K. J., de Alvarenga, J. F. R., Tosi, N., Del Rio, D., . . . Cryan, J. F. (2026). Habitual coffee intake shapes the gut microbiome and modifies host physiology and cognition. Nature communications, 17(1), 3439. https://doi.org/10.1038/s41467-026-71264-8

BibTeX

@article{boscaini2026habitual,
author = {Boscaini, Serena and Bastiaanssen, Thomaz F S and Moloney, Gerard M and Bergamo, Federica and Zeraik, Laila and O’Leary, Caroline and Ferri, Aimone and Irfan, Maha and van der Rhee, Maaike and Lindemann, Thaïs I F and Schneider, Elizabeth and Meyyappan, Arthi Chinna and Harold, Kirsten Berding and Long-Smith, Caitríona M and Carbia, Carina and O’Riordan, Kenneth J and de Alvarenga, José Fernando Rinaldi and Tosi, Nicole and Del Rio, Daniele and Rosi, Alice and Bresciani, Letizia and Mena, Pedro and Clarke, Gerard and Cryan, John F},
title = {{Habitual coffee intake shapes the gut microbiome and modifies host physiology and cognition}},
journal = {Nature communications},
year = {2026},
month = apr,
volume = {17},
number = {1},
pages = {3439},
publisher = {Nature Publishing Group},
issn = {2041-1723},
doi = {10.1038/s41467-026-71264-8},
url = {https://doi.org/10.1038/s41467-026-71264-8},
pmid = {42014402},
pmcid = {PMC13100100}
}

RIS

TY - JOUR
AU - Boscaini, Serena
AU - Bastiaanssen, Thomaz F S
AU - Moloney, Gerard M
AU - Bergamo, Federica
AU - Zeraik, Laila
AU - O’Leary, Caroline
AU - Ferri, Aimone
AU - Irfan, Maha
AU - van der Rhee, Maaike
AU - Lindemann, Thaïs I F
AU - Schneider, Elizabeth
AU - Meyyappan, Arthi Chinna
AU - Harold, Kirsten Berding
AU - Long-Smith, Caitríona M
AU - Carbia, Carina
AU - O’Riordan, Kenneth J
AU - de Alvarenga, José Fernando Rinaldi
AU - Tosi, Nicole
AU - Del Rio, Daniele
AU - Rosi, Alice
AU - Bresciani, Letizia
AU - Mena, Pedro
AU - Clarke, Gerard
AU - Cryan, John F
TI - Habitual coffee intake shapes the gut microbiome and modifies host physiology and cognition
T2 - Nature communications
J2 - Nat Commun
PY - 2026
DA - 2026/04/21
VL - 17
IS - 1
SP - 3439
SN - 2041-1723
PB - Nature Publishing Group
DO - 10.1038/s41467-026-71264-8
UR - https://doi.org/10.1038/s41467-026-71264-8
LA - en
ER -

CSL-JSON

{
"id": "10.1038/s41467-026-71264-8",
"type": "article-journal",
"title": "Habitual coffee intake shapes the gut microbiome and modifies host physiology and cognition",
"container-title": "Nature communications",
"author": [
{
"family": "Boscaini",
"given": "Serena"
},
{
"family": "Bastiaanssen",
"given": "Thomaz F S"
},
{
"family": "Moloney",
"given": "Gerard M"
},
{
"family": "Bergamo",
"given": "Federica"
},
{
"family": "Zeraik",
"given": "Laila"
},
{
"family": "O’Leary",
"given": "Caroline"
},
{
"family": "Ferri",
"given": "Aimone"
},
{
"family": "Irfan",
"given": "Maha"
},
{
"family": "van der Rhee",
"given": "Maaike"
},
{
"family": "Lindemann",
"given": "Thaïs I F"
},
{
"family": "Schneider",
"given": "Elizabeth"
},
{
"family": "Meyyappan",
"given": "Arthi Chinna"
},
{
"family": "Harold",
"given": "Kirsten Berding"
},
{
"family": "Long-Smith",
"given": "Caitríona M"
},
{
"family": "Carbia",
"given": "Carina"
},
{
"family": "O’Riordan",
"given": "Kenneth J"
},
{
"family": "de Alvarenga",
"given": "José Fernando Rinaldi"
},
{
"family": "Tosi",
"given": "Nicole"
},
{
"family": "Del Rio",
"given": "Daniele"
},
{
"family": "Rosi",
"given": "Alice"
},
{
"family": "Bresciani",
"given": "Letizia"
},
{
"family": "Mena",
"given": "Pedro"
},
{
"family": "Clarke",
"given": "Gerard"
},
{
"family": "Cryan",
"given": "John F"
}
],
"container-title-short": "Nat Commun",
"volume": "17",
"issue": "1",
"page": "3439",
"DOI": "10.1038/s41467-026-71264-8",
"PMID": "42014402",
"PMCID": "PMC13100100",
"ISSN": "2041-1723",
"publisher": "Nature Publishing Group",
"URL": "https://doi.org/10.1038/s41467-026-71264-8",
"language": "en",
"issued": {
"date-parts": [
[
2026,
4,
21
]
]
}
}

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.ynstr.2022.100501 [code]
Prebiotic supplementation modulates selective effects of stress on behavior and brain metabolome in aged mice.
Journal: Neurobiology of stress
In common: Numba, lmerTest, lme4, 5 other tools, genetics / omics, 3 authors
[2] doi:10.1038/s41564-023-01564-y [code]
The gut virome is associated with stress-induced changes in behaviour and immune responses in mice.
Journal: Nature microbiology
In common: Numba, lmerTest, lme4, 5 other tools, 2 references, 2 authors
[3] doi:10.1038/s41398-023-02325-5 [code]
The gut microbiome in social anxiety disorder: evidence of altered composition and function.
Journal: Translational psychiatry
In common: lmerTest, lme4, patchwork, 2 other tools, 4 references, 2 authors
[4] doi:10.1016/j.ebiom.2023.104442 [code]
The Microbiome-Gut-Brain axis regulates social cognition & craving in young binge drinkers.
Journal: EBioMedicine
In common: lmerTest, lme4, patchwork, 2 other tools, cognitive, 3 references, 2 authors
[5] doi:10.1038/s41522-025-00820-9 [code]
In vitro assessment of bacterial supernatants on hypothalamic gene expression: implications for appetite regulation.
Journal: NPJ biofilms and microbiomes
In common: broom, patchwork, tidyverse, genetics / omics, 2 references, 2 authors
[6] doi:10.1038/s41467-026-68968-2 [code]
Bifidobacterium longum and prebiotic interventions restore early-life high-fat/high-sugar diet-induced alterations in feeding behavior in adult mice.
Journal: Nature communications
In common: lmerTest, lme4, patchwork, 2 other tools, 2 authors
[7] doi:10.1073/pnas.2308706120
Social anxiety disorder-associated gut microbiota increases social fear.
Journal: Proceedings of the National Academy of Sciences of the United States of America
In common: 3 authors
[8] doi:10.1016/j.bbi.2024.06.009 [code]
Social fear extinction susceptibility is associated with Microbiota-Gut-Brain axis alterations.
Journal: Brain, behavior, and immunity
In common: Numba, lmerTest, lme4, 5 other tools, 1 reference, author John F Cryan
[9] doi:10.1016/j.isci.2026.114968 [code]
Early-life microbiota disruption-induced deficits in the social brain are sensitive to diet.
Journal: iScience
In common: lmerTest, lme4, patchwork, 4 other tools, 1 reference, author Gerard Clarke
[10] doi:10.1016/j.bbih.2025.100992
Acute stress-induced alterations in short-chain fatty acids: Implications for the intestinal and blood brain barriers.
Journal: Brain, behavior, & immunity - health
In common: 2 references, 2 authors

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.1038/s41467-026-71264-8.svg)](https://openscicode.org/badge/doi/10.1038/s41467-026-71264-8)
<!-- oscr-badge:end -->
reStructuredText
.. oscr-badge:start

.. image:: https://openscicode.org/badge/doi/10.1038/s41467-026-71264-8.svg
   :target: https://openscicode.org/badge/doi/10.1038/s41467-026-71264-8
   :alt: OSCR

.. oscr-badge:end
HTML
<!-- oscr-badge:start -->
<a href="https://openscicode.org/badge/doi/10.1038/s41467-026-71264-8"><img src="https://openscicode.org/badge/doi/10.1038/s41467-026-71264-8.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.