Habitual coffee intake shapes the gut microbiome and modifies host physiology and cognition.
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] § 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] § 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] § 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] § 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] § 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] § 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] § 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] § 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] § 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] § 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=NCD 0=F
- # 2=CD 1=M
- s1 = readxl::read_xlsx("raw/cognition/raw_xlsx/V2 - SPSS Template.xlsx")
- s2 = readxl::read_xlsx("raw/cognition/raw_xlsx/V2 vs V3 - SPSS Template.xlsx")
- s3 = readxl::read_xlsx("raw/cognition/raw_xlsx/V2 vs V4 - SPSS Template.xlsx")
- s4 = readxl::read_xlsx("raw/cognition/raw_xlsx/V3 vs V4 - SPSS Template.xlsx")
- si = readxl::read_xlsx("raw/cognition/raw_xlsx/Intervention timepoints - SPSS template.xlsx")
- sw = readxl::read_xlsx("raw/cognition/raw_xlsx/Washout timepoints - SPSS template.xlsx")
- colnames(s1) <- str_remove(colnames(s1), pattern = "V2_|v2_|V2-|v2-")
- s1 <- s1 %>% mutate(BMI = as.numeric(BMI),
- BP_D = as.numeric(BP_D))
- s2 <- s2 %>% mutate(BMI = as.numeric(BMI),
- BP_D = as.numeric(BP_D))
- s3 <- s3 %>% mutate(BMI = as.numeric(BMI),
- BP_D = as.numeric(BP_D))
- s4 <- s4 %>% mutate(BMI = as.numeric(BMI),
- BP_D = as.numeric(BP_D))
- do.call(rbind,
- list(s1[,1:3],
- s2[,1:3],
- s3[,c(1,3,2)],
- s4[,c(1,3,2)],
- sw[,c(1,3,2)],
- si[,c(1,3,2)])) %>%
- distinct() %>%
- left_join(., s1, by = c("ID" = "ID", "visit" = "visit", "Coffee_Type" = "Coffee_Type"), keep = FALSE) %>%
- left_join(., s2, by = c("ID" = "ID", "visit" = "visit", "Coffee_Type" = "Coffee_Type"), keep = FALSE) %>%
- left_join(., s3, by = c("ID" = "ID", "visit" = "visit", "Coffee_Type" = "Coffee_Type"), keep = FALSE) %>%
- left_join(., s4, by = c("ID" = "ID", "visit" = "visit", "Coffee_Type" = "Coffee_Type"), keep = FALSE) %>%
- left_join(., sw, by = c("ID" = "ID", "visit" = "visit", "Coffee_Type" = "Coffee_Type"), keep = FALSE) %>%
- left_join(., si , by = c("ID" = "ID", "visit" = "visit", "Coffee_Type" = "Coffee_Type"), keep = FALSE) %>%
- pivot_longer(!c(ID, Coffee_Type, visit, Gender)) %>%
- mutate(name = str_remove(name, "\\.x.*|\\.y.*")) %>%
- mutate(name = str_remove(name, "V2_|v2_|V3_|v3_")) %>%
- mutate(name = str_replace(name, "IPAQ-", "IPAQ_")) %>%
- distinct() %>%
- filter(!is.na(value)) %>%
- mutate(visit = factor(visit, levels = c("V2", "T2W", "T4W", "V3", "T2I", "T4I", "T14", "V4"))) %>%
- mutate(Visit = case_when(visit == "V2" ~ "Baseline",
- visit %in% c("T2W", "T4W", "V3") ~ "Post-\nwashout",
- visit %in% c("T2I", "T4I", "T14", "V4") ~ "Post-\nreintroduction")) %>%
- dplyr::select(!Gender) %>%
- mutate(Visit = factor(Visit, levels = c("Baseline","Post-\nwashout", "Post-\nreintroduction")),
- Coffee_Type = factor(Coffee_Type, levels = c("NCD", "Coffee", "No Coffee", "DECAF", "CAF"))) %>%
- filter(!str_detect(name, "7DFD")) %>%
- filter(!str_detect(name, "BLVAS")) %>%
- filter(!str_detect(name, "post-pre")) %>%
- filter(str_detect(name, "UPPS|ERS|PASAT|MdR|STAI|PSS|BDI|GIS|SCL|PSQI|IPAQ|VAS|QCC|CWSQ")) %>%
- mutate(name = str_remove(name, "preSECPT_")) %>%
- mutate(meas_group = case_when(str_detect(name, "7DFD_") ~ "Dietary",
- str_detect(name, "Blood") ~ "Blood",
- str_detect(name, "Plasma") ~ "Blood",
- str_detect(name, "Plasma") ~ "Blood",
- str_detect(name, "BP_D|BDI") ~ "Mood",
- str_detect(name, "UPPS") ~ "Impulsivity",
- str_detect(name, "SCL") ~ "Mental Health",
- str_detect(name, "PASA") ~ "Stress\n&\nAnxiety",
- str_detect(name, "PASAT") ~ "Attention",
- str_detect(name, "PSQI") ~ "Sleep",
- str_detect(name, "BMI|BSC|GIS_VAS") ~ "GI\nHealth",
- str_detect(name, "CAR|STAI|PSS") ~ "Stress\n&\nAnxiety",
- str_detect(name, "MdR") ~ "Memory",
- str_detect(name, "ERS") ~ "Emotional Reactivity",
- str_detect(name, "IPAQ") ~ "Physical Activity",
- str_detect(name, "CWSQ_Tot") ~ "Coffee Withdrawal",
- str_detect(name, "VASF_Fatigue") ~ "Coffee Withdrawal",
- str_detect(name, "VASF_Energy") ~ "Coffee Withdrawal",
- str_detect(name, "QCC_Tot") ~ "Coffee Withdrawal",
- .default = NA)
- ) %>%
- filter(!is.na(meas_group)) %>%
- mutate(name = str_replace(name, "UPPS_|UPPS", "(UPPS) ")) %>%
- mutate(name = str_replace(name, "ERS_|ERS", "(ERS) ")) %>%
- mutate(name = str_replace(name, "MdR_", "(ModRey) ")) %>%
- mutate(name = str_replace(name, "SCL_", "(HSCL) ")) %>%
- mutate(name = str_replace(name, "GIS_VAS_Total", "(GIS-VAS) Tot ")) %>%
- mutate(name = str_replace(name, "PASAT_|PASAT", "(PASAT) ")) %>%
- mutate(name = str_replace(name, "STAI_TRAIT", "(STAI-T) ")) %>%
- mutate(name = str_replace(name, "PSS", "(PSS)")) %>%
- mutate(name = str_replace(name, "BDITot", "(BDI) Tot")) %>%
- mutate(name = str_replace(name, "IPAQ_MET", "(IPAQ)\nMET-minutes")) %>%
- mutate(name = str_replace(name, "PSQI_GlobalScore", "(PSQI) Tot")) %>%
- mutate(name = str_replace(name, "TotalA_F1", "Tot")) %>%
- mutate(name = str_replace(name, "Tot ", "Tot")) %>%
- mutate(name = str_replace(name, "CWSQ_Tot", "(CWSQ) Tot")) %>%
- mutate(name = str_replace(name, "QCC_Tot", "(QCC) Tot")) %>%
- filter(!str_detect(name, "\\) [^TM]")) %>%
- mutate(name = str_replace(name, "VASF_", "(VASF) ")) %>%
- mutate(name = str_replace(name, "IPAQ-|IPAQ_", "(IPAQ) ")) %>%
- #mutate(value = case_when(is.na(value)~ 0, .default = value)) %>%
- mutate(meas_group = factor(meas_group, levels = c("Impulsivity", "Emotional Reactivity",
- "Attention","Memory", "Stress\n&\nAnxiety",
- "Mood", "Mental Health", "GI\nHealth",
- "Sleep", "Physical Activity", "Coffee Withdrawal"))) %>%
- filter(!is.na(meas_group)) %>%
- group_by(name) %>%
- 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),
- !name %in% c("(CWSQ) Tot", "(VASF) Fatigue", "(VASF) Energy", "(QCC) Tot") ~ mean(value[Coffee_Type == "Coffee"], na.rm = T),
- .default = NA)
- ) %>%
- mutate(sd_tot = sd(value, na.rm = T)) %>%
- mutate(value = (value - avg_cof)/sd_tot) %>%
- ungroup() %>%
- mutate(name = str_replace(name, "\\) ", "\\)\n")) %>%
- mutate(name = factor(name, levels = (c("(UPPS)\nTot", "(ERS)\nTot", "(ModRey)\nTot", "(PASAT)\nTot",
- "(PSS)", "(STAI-T)\nTot", "(BDI)\nTot", "(GIS-VAS)\nTot",
- "(PSQI)\nTot", "(IPAQ)\nMET-minutes",
- "(CWSQ)\nTot", "(VASF)\nFatigue", "(VASF)\nEnergy", "(QCC)\nTot")))) %>%
- mutate(caffeine = case_when(
- ID %in% c("APC115-003", "APC115-005", "APC115-014", "APC115-017", "APC115-037",
- "APC115-038", "APC115-039", "APC115-043", "APC115-054", "APC115-069",
- "APC115-072", "APC115-087", "APC115-101", "APC115-108", "APC115-109") ~ "DECAF",
- ID %in% c("APC115-008", "APC115-011","APC115-016", "APC115-033","APC115-036",
- "APC115-042", "APC115-052","APC115-058", "APC115-059", "APC115-060",
- "APC115-061","APC115-063","APC115-090","APC115-103","APC115-105","APC115-113") ~ "CAF")) %>%
- mutate(caffeine = factor(caffeine, levels = c("CAF", "DECAF"))) %>%
- mutate(Visit = factor(Visit, levels = c("Baseline","Post-\nwashout", "Post-\nreintroduction")),
- Coffee_Type = factor(Coffee_Type, levels = c("NCD", "Coffee", "No Coffee", "DECAF", "CAF"))) %>%
- mutate(mdlab = case_when(Coffee_Type == "NCD" ~ "<img \n src='raw/icons/NCD.png' width='50' />",
- Coffee_Type == "Coffee" ~ "<img \n src='raw/icons/CD.png' width='50' />",
- Coffee_Type == "No Coffee" ~ "<img \n src='raw/icons/WASHOUT.png' width='50' />",
- Coffee_Type == "DECAF" ~ "<img \n src='raw/icons/REINTRO.png' width='50' />",
- Coffee_Type == "CAF" ~ "<img \n src='raw/icons/REINTRO.png' width='50' />"),
- mdlab = factor(mdlab, levels = c("<img \n src='raw/icons/NCD.png' width='50' />",
- "<img \n src='raw/icons/CD.png' width='50' />",
- "<img \n src='raw/icons/WASHOUT.png' width='50' />",
- "<img \n src='raw/icons/REINTRO.png' width='50' />"))
- ) %>%
- group_by(name, visit, Coffee_Type) %>%
- mutate(avg_by_caf_timepoint = mean(value)) %>%
- ungroup() %>% #filter(name == "Cryptobacterium curtum") %>% View
- group_by(name, visit, mdlab) %>%
- mutate(avg_delta_caf_decaf = case_when(visit == "V2" ~ 0,
- visit != "V2" ~ abs(
- mean(avg_by_caf_timepoint[caffeine == "CAF"]) - mean(avg_by_caf_timepoint[caffeine == "DECAF"])
- ),
- .default = NA)
- ) %>%
- mutate(plot_label = case_when((max(abs(avg_by_caf_timepoint)) > 0.5 | max(abs(avg_delta_caf_decaf)) > 0.5 ) ~ 'moderate',
- .default = "less")) %>%
- ungroup() %>%
- group_by(name, mdlab) %>%
- mutate(max_per_group = max(abs(avg_by_caf_timepoint))) %>%
- ungroup() %>%
- group_by(name) %>%
- mutate(abs_delta_NCD = mean(abs(avg_by_caf_timepoint[Coffee_Type == "NCD"]))) %>%
- #Currently no filters for cognition
- # filter(any(plot_label == "moderate")) %>%
- # filter(any(max_per_group > 0.5) ) %>%
- #
- # filter(abs_delta_NCD > 0.5) %>%
- ungroup() -> df_long_cog
- CAF_DECAF_order <- c(df_long_cog %>%
- filter(Visit == "Post-\nreintroduction") %>%
- filter(Coffee_Type == "CAF") %>% .$ID %>% sort %>% unique,
- df_long_cog %>%
- filter(Visit == "Post-\nreintroduction") %>%
- filter(Coffee_Type == "DECAF") %>% .$ID %>% sort %>% unique)
- plot_cog_NCD <-
- df_long_cog %>%
- filter(Coffee_Type =="NCD") %>%
- 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"))) %>%
- mutate(visit = factor("V2", levels = c("V2"))) %>%
- mutate(lab = "NCD") %>%
- group_by(Coffee_Type, name) %>%
- mutate(avg_by_group = round(mean(value, na.rm = T), digits = 2)) %>%
- ungroup() %>%
- mutate( facet_name = factor(
- x = paste0(
- str_replace_all(meas_group, "\n", " "),
- "\n",
- str_replace(str_remove(name, "\\)"),"\n", " "),
- ")"),
- levels = paste0(
- str_replace_all(levels(meas_group)[c(1:2, 4, 5, 5, 5, 6, 8, 9, 10)], "\n", " "),
- "\n",
- str_replace(levels(name)[c(1:10)], "\\)\n", " "),
- ")") %>% str_replace(., "\\)\\)", ")"))
- ) %>%
- # 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")) %>%
- # 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")) %>%
- # 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")) %>%
- # 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")) %>%
- #
- # mutate(value = as.numeric(value)) %>%
- ggplot() +
- aes(y = ID, x = visit, fill = value, label = avg_by_group) +
- geom_tile() +
- geom_label(data = . %>% group_by(visit, Coffee_Type, name, mdlab, meas_group, facet_name) %>%
- summarise(n = length(unique(ID)),
- avg_by_group = mean(avg_by_group)) %>% ungroup(),
- # x = 1,
- aes(x = visit, y = n/2, fill = avg_by_group, label = avg_by_group)) +
- #geom_point(shape = 24) +
- scale_fill_gradientn(colours = c(
- "#053061","#053061",
- "#2166ac","#2166ac",
- "#4393c3","#4393c3",
- "#f7f7f7","#f7f7f7",
- "#d6604d","#d6604d",
- "#d73027","#d73027",
- "#a50026", "#a50026"
- ),
- limits = c(-4.5, 4.5), "Effect size (d)"
- ) +
- scale_y_discrete(position = "right") +
- scale_x_discrete(expand = expansion(mult = c(0))) +
- facet_grid(facet_name~mdlab, scales = "free", switch = "y") +
- # geom_image(x = 1, y = 3, image = "/home/thomaz/Downloads/Cryan, John 2015.png", size = 3)+
- xlab(NULL) + ylab(NULL) +
- theme_test() +
- theme(
- strip.text.x = element_markdown(angle = 0, vjust = 0),
- strip.text.y.left = element_text(angle = 0),
- axis.text.y = element_blank(), axis.ticks.y = element_blank(),
- # axis.text.x = element_text(angle = 330, hjust = 0),
- axis.text.x = element_blank(), axis.ticks.x = element_blank(),
- panel.spacing.x = unit(0, "lines")
- )
- plot_cog_CD <- df_long_cog %>%
- filter(Coffee_Type != "NCD") %>%
- filter(visit %in% c("V2", "V3","V4")) %>%
- filter(meas_group != "Coffee Withdrawal") %>%
- mutate(mdlab = paste0(mdlab, " \n", Visit) %>%
- str_remove(., "Post-\n") %>%
- str_replace(., "Baseline", "Coffee") %>%
- str_replace(., "reintroduction$", "Reintroduction") %>%
- str_replace(., "washout$", "Washout")
- ) %>%
- mutate(mdlab = factor(mdlab, levels = unique(mdlab))) %>%
- mutate(caffeine = case_when(
- ID %in% c("APC115-003", "APC115-005", "APC115-014", "APC115-017", "APC115-037",
- "APC115-038", "APC115-039", "APC115-043", "APC115-054", "APC115-069",
- "APC115-072", "APC115-087", "APC115-101", "APC115-108", "APC115-109") ~ "DECAF",
- ID %in% c("APC115-008", "APC115-011","APC115-016", "APC115-033","APC115-036",
- "APC115-042", "APC115-052","APC115-058", "APC115-059", "APC115-060",
- "APC115-061","APC115-063","APC115-090","APC115-103","APC115-105","APC115-113") ~ "CAF")) %>%
- mutate(caffeine = factor(caffeine, levels = c("CAF", "DECAF"))) %>%
- mutate(lab = case_when(Visit == "Baseline" ~ "Coffee\n(baseline)", .default = Visit),
- lab = factor(lab, levels = c("Coffee\n(baseline)", "Post-\nwashout", "Post-\nreintroduction"))) %>%
- mutate(facet_lab = case_when(Visit == "Baseline" ~ "CD",
- Visit == "Post-\nwashout" ~ "wash\nout",
- Visit == "Post-\nreintroduction" ~ "inter\nvention"),
- facet_lab = factor(facet_lab, levels = c("CD","wash\nout", "inter\nvention"))) %>%
- group_by(Coffee_Type, caffeine, name) %>%
- mutate(avg_by_group = round(mean(value, na.rm = T), digits = 2)) %>%
- ungroup() %>%
- ggplot() +
- aes(y = ID, x = visit, fill = value, label = avg_by_group)+
- geom_tile() +
- geom_label(data = . %>% group_by(visit, Coffee_Type, caffeine, name, mdlab, plot_label) %>%
- summarise(n = length(unique(ID)),
- avg_by_group = mean(avg_by_group)) %>%
- ungroup() %>% group_by(name, mdlab)
- %>% filter(any(plot_label == "moderate")) %>% ungroup(),
- aes(x = visit, y = n/2, fill = avg_by_group, label = avg_by_group)) +
- scale_fill_gradientn(colours = c(
- "#053061","#053061",
- "#2166ac","#2166ac",
- "#4393c3","#4393c3",
- "#f7f7f7","#f7f7f7",
- "#d6604d","#d6604d",
- "#d73027","#d73027",
- "#a50026", "#a50026"
- ),
- limits = c(-4.5, 4.5), "Effect size (d)"
- ) +
- scale_y_discrete(position = "right" ) +
- scale_x_discrete(expand = expansion(mult = c(0))) +
- ggh4x::facet_nested(name * caffeine ~ mdlab, scales = "free", space = "free_x",
- strip = ggh4x::strip_nested(size = "variable",
- background_y = list(element_blank(), element_rect(), element_rect()),
- text_y = list(element_blank(), element_text(), element_text()),
- by_layer_y = TRUE )) +
- xlab(NULL) + ylab(NULL) +
- theme_test() +
- theme(#strip.text.y = element_blank(),
- strip.text.x = element_markdown(vjust = 0), #,
- # strip.text.x = element_blank(), strip.background.x = element_blank()
- strip.text.y = element_text(angle =0),
- axis.text.y = element_blank(), axis.ticks.y = element_blank(),
- #axis.text.x = element_text(angle = 330, hjust = 0)#, panel.spacing.x =unit(0, "lines")
- axis.text.x = element_blank(),
- axis.ticks.x = element_blank(),
- panel.spacing.x = unit(0, "lines")
- )
- plot_cog_craving <- df_long_cog %>%
- filter(Coffee_Type != "NCD") %>%
- filter(name %in% c("(CWSQ)\nTot", "(VASF)\nFatigue", "(VASF)\nEnergy", "(QCC)\nTot")) %>%
- mutate(mdlab = paste0(mdlab, " \n", Visit) %>%
- str_remove(., "Post-\n") %>%
- str_replace(., "Baseline", "Coffee") %>%
- str_replace(., "reintroduction$", "Reintroduction") %>%
- str_replace(., "washout$", "Washout")) %>%
- mutate(mdlab = factor(mdlab, levels = unique(mdlab))) %>%
- mutate(caffeine = case_when(
- ID %in% c("APC115-003", "APC115-005", "APC115-014", "APC115-017", "APC115-037",
- "APC115-038", "APC115-039", "APC115-043", "APC115-054", "APC115-069",
- "APC115-072", "APC115-087", "APC115-101", "APC115-108", "APC115-109") ~ "DECAF",
- ID %in% c("APC115-008", "APC115-011","APC115-016", "APC115-033","APC115-036",
- "APC115-042", "APC115-052","APC115-058", "APC115-059", "APC115-060",
- "APC115-061","APC115-063","APC115-090","APC115-103","APC115-105","APC115-113") ~ "CAF")) %>%
- mutate(caffeine = factor(caffeine, levels = c("CAF", "DECAF"))) %>%
- mutate(lab = case_when(Visit == "Baseline" ~ "Coffee\n(baseline)", .default = Visit),
- lab = factor(lab, levels = c("Coffee\n(baseline)", "Post-\nwashout", "Post-\nreintroduction"))) %>%
- mutate(facet_lab = case_when(Visit == "Baseline" ~ "CD",
- Visit == "Post-\nwashout" ~ "wash\nout",
- Visit == "Post-\nreintroduction" ~ "inter\nvention"),
- facet_lab = factor(facet_lab, levels = c("CD","wash\nout", "inter\nvention"))) %>%
- group_by(Coffee_Type, caffeine, name, visit) %>%
- mutate(avg_by_group = round(mean(value, na.rm = T), digits = 2)) %>%
- ungroup() %>%
- ggplot() +
- aes(y = ID, x = visit, fill = value, label = avg_by_group)+
- geom_tile() +
- geom_label(data = . %>% group_by(visit, Coffee_Type, caffeine, name, mdlab, plot_label) %>%
- summarise(n = length(unique(ID)),
- avg_by_group = mean(avg_by_group)) %>%
- ungroup() %>% group_by(name, mdlab)
- %>% filter(any(plot_label == "moderate")) %>% ungroup(),
- aes(x = visit, y = n/2, fill = avg_by_group, label = avg_by_group)) +
- scale_fill_gradientn(colours = c(
- "#053061","#053061",
- "#2166ac","#2166ac",
- "#4393c3","#4393c3",
- "#f7f7f7","#f7f7f7",
- "#d6604d","#d6604d",
- "#d73027","#d73027",
- "#a50026", "#a50026"
- ),
- limits = c(-4.5, 4.5), "Effect size (d)"
- ) +
- scale_y_discrete(position = "right" ) +
- scale_x_discrete(expand = expansion(mult = c(0))) +
- ggh4x::facet_nested(name * caffeine ~ mdlab, scales = "free", space = "free_x", switch = "y",
- strip = ggh4x::strip_nested(size = "variable",
- background_y = list(element_rect(), element_rect(), element_rect()),
- text_y = list(element_text(), element_text(), element_text()),
- by_layer_y = TRUE )) +
- xlab(NULL) + ylab(NULL) +
- theme_test() +
- theme(
- strip.text.y.left = element_text(angle =0),
- strip.text.x = element_markdown(angle = 0, vjust = 0), #,
- # strip.text.x = element_blank(), strip.background.x = element_blank()
- #strip.text.y = element_text(angle =0),
- axis.text.y = element_blank(), axis.ticks.y = element_blank(),
- #axis.text.x = element_text(angle = 330, hjust = 0)#, panel.spacing.x =unit(0, "lines")
- axis.text.x = element_blank(), axis.ticks.x = element_blank(),
- panel.spacing.x = unit(0, "lines")
- )
fig_1_behav_cog_health_data.R at commit 6c80dad, under GPL-3.0 · at the source
Overview
- APC Microbiome Ireland, University College Cork, Cork, Ireland
- Department of Anatomy and Neuroscience, University College Cork, Cork, Ireland
- Department of Food and Drug, University of Parma, Parma, Italy
- School of Applied Psychology, University College Cork, Cork, Ireland
- Microbiome Research Hub, University of Parma, Parma, Italy
- Department of Psychiatry and Neurobehavioural Science, University College Cork, Cork, Ireland
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
42df8869da98af3721b4bd29c40ef9b28d925118, 8 September 2025Availability: 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
- doc/
wolsop.sh , Shell, 283 lines - woltka/
__init__.py , Python, 17 lines - woltka/
align.py , Python, 1,213 lines - woltka/
biom.py , Python, 351 lines - woltka/
classify.py , Python, 317 lines - woltka/
cli.py , Python, 341 lines - woltka/
file.py , Python, 522 lines - woltka/
ordinal.py , Python, 896 lines - woltka/
q2/ , Python, 1 line__init__.py - woltka/
q2/ , Python, 75 lines_format.py - woltka/
q2/ , Python, 48 lines_transformer.py - woltka/
q2/ , Python, 20 lines_type.py - woltka/
q2/ , Python, 164 linesplugin.py - woltka/
q2/ , Python, 198 linesplugin_setup.py - woltka/
range.py , Python, 254 lines - woltka/
table.py , Python, 775 lines - woltka/
tests/ , Python, 1 line__init__.py - woltka/
tests/ , Python, 623 linestest_align.py - woltka/
tests/ , Python, 429 linestest_biom.py - woltka/
tests/ , Python, 223 linestest_classify.py - woltka/
tests/ , Python, 263 linestest_cli.py - woltka/
tests/ , Python, 430 linestest_file.py - woltka/
tests/ , Python, 533 linestest_ordinal.py - woltka/
tests/ , Python, 215 linestest_range.py - woltka/
tests/ , Python, 877 linestest_table.py - woltka/
tests/ , Python, 280 linestest_tools.py - woltka/
tests/ , Python, 557 linestest_tree.py - woltka/
tests/ , Python, 212 linestest_util.py - woltka/
tests/ , Python, 704 linestest_workflow.py - woltka/
tools.py , Python, 317 lines - woltka/
tree.py , Python, 566 lines - woltka/
util.py , Python, 464 lines - woltka/
workflow.py , Python, 1,205 lines - LICENSE, License, 29 lines
- README.md, Text, 176 lines
thomazbastiaanssen/coffee
6c80dad8d30f79c2d8fb1e17692a7c4d6a79c56e, 25 September 2025Availability: 1 check, the latest on 29 September 2026: the link answers
- 29 September 2026: the link answers
22 files
- README.Rmd, R, 247 lines
- scripts/
annotate_metabs_WIP.R , R, 25 lines - scripts/
fig_1_behav_cog_health_d , R, 429 lines, 3 matchesata.R - scripts/
fig_2_cytokine_data.R , R, 448 lines - scripts/
fig_2_faecal_metabolome_ , R, 329 linesdata_reclassed.R - scripts/
fig_2_gi_metabolome_data , R, 328 lines, 1 match.R - scripts/
fig_2_gi_microbiome_data , R, 277 lines, 1 match.R - scripts/
fig_2_gi_omics_data.R , R, 285 lines - scripts/
fig_2_urine_metabolome_d , R, 247 linesata.R - scripts/
fig_2_urine_metabolome_d , R, 310 linesata_reclassed.R - scripts/
fig_final_integration.R , R, 320 lines, 1 match - scripts/
fig_final_integration_MB , R, 336 lines, 1 match_fecmet_cog.R - scripts/
fig_final_integration_MB , R, 339 lines, 1 match_urmet_cog.R - scripts/
fig_final_integration_fe , R, 332 linescmet_MB_behav.R - scripts/
fig_final_integration_ur , R, 336 lines, 1 matchmet_MB_behav.R - scripts/
generate_stats_tables.R , R, 1,020 lines - subscripts/
calc_alpha.R , R, 29 lines - subscripts/
load_and_clean_data.R , R, 99 lines, 1 match - subscripts/
prep_cognition.R , R, 58 lines - subscripts/
prep_cytokines.R , R, 325 lines - LICENSE, License, 674 lines
- README.md, Text, 231 lines
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:
- it points to the authors' code: thomazbastiaanssen/
coffee
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
- ebi.ac.uk/
metabolights/ , at EMBL-EBI; found in “Data availability”mtbls13401 - ebi.ac.uk/
metabolights/ , at EMBL-EBI; found in “Data availability”mtbls13494 - zenodo:18348935, at Zenodo; found in “Data availability”
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:
- it points to 3 datasets: ebi.ac.uk/
metabolights/ , ebi.ac.uk/mtbls13401 metabolights/ , Zenodo 18348935mtbls13494 - it points to the authors' code: thomazbastiaanssen/
coffee
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://
BibTeX
@article{boscaini2026hab
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/
url = {https://
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/
VL - 17
IS - 1
SP - 3439
SN - 2041-1723
PB - Nature Publishing Group
DO - 10.1038/
UR - https://
LA - en
ER -
CSL-JSON
{
"id": "10.1038/
"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":
"volume": "17",
"issue": "1",
"page": "3439",
"DOI": "10.1038/
"PMID": "42014402",
"PMCID": "PMC13100100",
"ISSN": "2041-1723",
"publisher": "Nature Publishing Group",
"URL": "https://
"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 stressIn 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 microbiologyIn 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 psychiatryIn 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: EBioMedicineIn 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 microbiomesIn 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 communicationsIn 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 AmericaIn 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 immunityIn 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: iScienceIn 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 - healthIn 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.
Claim this paper
Correct its record
Say what each link of this record is, remove the ones that are not the paper's, add the ones that are missing. The correction becomes a new version of the record, in its Versions section.
Validate its tracing map
You validate the map as this page shows it: 2 repositories of the authors' code, each at its verified commit and with its license, 53 scripts, and 10 matches between paragraphs and code (see the Code and Map sections). It then receives a DOI on Zenodo, with you (your ORCID iD) and OSCR as its creators; the code itself is not deposited.
The map's fingerprint: sha256:9126ca6c12c126ee…
Add the badge to the code's README
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 -->
[](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:endHTML
<!-- 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.
