OSCR

Effects on hippocampal activity following novel 5-HT4 receptor agonism in unmedicated patients with depression: the RESTAND study.

Code ↔ Paper

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

The 6 matches · 1 of them tie a paragraph to a whole file, not to given lines: a weak match, whose lines are not tinted
  1. [1] § Results › fMRI memory encoding task › Main effect of task ↔ Emotional Cognition paper scripts/06_fmri_wholebrain_clusters.R, lines 1–80 · score 0.82 · frontal pole, paracingulate gyrus, frontal gyrus, lateral occipital, temporal, cerebellum
  2. [2] § Materials and methods › Questionnaire measures ↔ Emotional Cognition paper scripts/09_selfreport.R, lines 1–52 · score 0.77 · depressive symptoms, state anxiety, Research Visit, PANAS, STAI, anhedonia
  3. [3] § Materials and methods › Questionnaire measures ↔ Emotional Cognition paper scripts/02_demographic_comparison.R, the whole file · a weak match · score 0.69 · Trait Anxiety, depressive symptoms, Inventory, STAI, anhedonia, BDI
  4. [4] § Results › Auditory verbal learning task ↔ RESTAND AVLT ANALYSIS_forpublication.Rmd, lines 562–578 · score 0.59 · menstrual cramps, long delay, word recall, unblinding, AVLT
  5. [5] § Materials and methods › Statistical analysis › MRI data acquisition and analysis – primary analyses ↔ Emotional Cognition paper scripts/07_ROI_analysis.R, lines 417–490 · score 0.58 · BOLD signal change, ROI, fMRI, FEAT, cluster, baseline
  6. [6] § Results › Auditory verbal learning task ↔ RESTAND AVLT ANALYSIS_forpublication.Rmd, lines 186–222 · score 0.54 · Word recall, Short Delay, Long Delay, block, Scores

Paper

Loaded from Europe PMC by your browser, not stored by OSCR: doi.org · Europe PMC

The paper is loaded when this pane is shown.

The authors' code

R Markdown · 706 lines · 20 KB · no license · 2 matches

  1. ---
  2. title: "RESTAND Analysis"
  3. author: "Amy Gillespie, adapted by Angharad de Cates "
  4. date: "`r Sys.Date()`"
  5. output:
  6. html_document: default
  7. keep_md: yes
  8. ---
  9. ```{r setup, include=FALSE}
  10. knitr::opts_chunk$set(dev = "svg",
  11. dpi = 300,
  12. echo = FALSE,
  13. message=FALSE,
  14. cache = TRUE,
  15. fig.width = 10,
  16. fig.height = 10)
  17. library(dplyr)
  18. library(ggplot2)
  19. library(rstatix) #mean_sd summaries
  20. library(tidyr)
  21. library(ggpubr) #ggdensity plots
  22. library(moments) #skewness
  23. library(car) #levenetest
  24. library(ez) #anovas for avlt
  25. library(stringr) #manipulating strings of text in columns
  26. library(tidyverse)
  27. library(effectsize)
  28. #set theme for plots
  29. theme = theme_set(theme_minimal())
  30. theme = theme_update(legend.position="bottom",
  31. panel.grid.major.x=element_blank(),
  32. axis.line.x = element_blank(),
  33. axis.line.y = element_blank(),
  34. axis.ticks.y = element_line(colour="grey"),
  35. axis.title.x = element_text(colour="grey26"),
  36. axis.title.y = element_text(colour="grey26"),
  37. axis.text.x = element_text(colour="grey26"),
  38. axis.text.y = element_text(colour="grey26"),
  39. text=element_text(face="bold", size=11))
  40. figgroupnames_twoway <- c("5HT4", "Placebo")
  41. figgroupcolours_twoway <- c("blue", "#A6A6A6")
  42. figgroupnames <- c("PF-04995274 (5HT4 agonist)", "Citalopram", "Placebo")
  43. figgroupcolours <- c("#D55E00", "#99CCFF", "#A6A6A6")
  44. RESTAND_unblinded_allocations <- read.csv("C:/Users/adecates/OneDrive - Nexus365/Shared Documents/Data/Manual_input_data/RESTAND/RESTAND_unblinded_ids.csv") #subjects IDs & medication groups
  45. #read in datatracker with all ids
  46. datatracker <- read.csv("C:/Users/adecates/OneDrive - Nexus365/Shared Documents/Data/Manual_input_data/RESTAND/RESTAND_final_datatrackerAUG2022.csv")
  47. ```
  48. ## Demographics
  49. ```{r}
  50. Demographics <- read.csv("C:/Users/adecates/OneDrive - Nexus365/Shared Documents/Data/Manual_input_data/RESTAND/RESTAND_demographics.csv")
  51. Demographics <- Demographics[-c(91:92),]
  52. Demographics <- Demographics %>%
  53. select(PID, Age_decimal, Sex, Race, First_language, Medical_history:Caff_perday, BMI, Years_Educ)
  54. Demographics$Sex<- toupper(Demographics$Sex)
  55. Demographics$First_language<- tolower(Demographics$First_language)
  56. Demographics[Demographics == "Missing"] <- NA
  57. Demographics[Demographics == "MISSING"] <- NA
  58. Demographics$Years_Educ <- as.numeric(as.character(Demographics$Years_Educ, na.rm = TRUE))
  59. Demographics$BMI <- as.numeric(as.character(Demographics$BMI, na.rm = TRUE))
  60. RESTAND_Demo <- merge (RESTAND_unblinded_allocations, Demographics, by = "PID")
  61. RESTAND_HAMD <- read.csv("C:/Users/adecates/OneDrive - Nexus365/DPhil work/5HT4_novel/Analysis/AVLT/5HT4 RESTAND_HAMD_forR.csv")
  62. RESTAND_HAMD$HAMD_SV <- as.numeric(as.character(RESTAND_HAMD$HAMD_SV, na.rm = TRUE))
  63. RESTAND_HAMD$HAMD_change <- as.numeric(as.character(RESTAND_HAMD$HAMD_change, na.rm = TRUE))
  64. RESTAND_HAMD <- RESTAND_HAMD %>%
  65. select(PID, Rand_no, HAMD_SV, HAMD_change)
  66. #summary(RESTAND_Demo)
  67. ```
  68. ```{r create RESTAND_participants - core demographic and group allocation file}
  69. RESTAND_participants <- merge(RESTAND_Demo, RESTAND_HAMD, by = c("PID", "Rand_no"), all = TRUE)
  70. RESTAND_participants <- merge(RESTAND_participants, datatracker, by = c("PID", "Rand_no"), all = TRUE)
  71. RESTAND_participants <- RESTAND_participants %>%
  72. select(PID, Rand_no, MedicationGroup, Sex, Age_decimal, Rvday, MR_randcode.x, HAMD_SV, HAMD_change)
  73. ```
  74. #Sex
  75. ```{r}
  76. RESTAND_male_participants <- RESTAND_participants %>%
  77. filter (Sex == "M")
  78. RESTAND_female_participants <- RESTAND_participants %>%
  79. filter (Sex == "F")
  80. ```
  81. ## AVLT
  82. ```{r}
  83. RESTAND_AVLT <- read.csv("C:/Users/adecates/OneDrive - Nexus365/Shared Documents/Data/Manual_input_data/RESTAND/RESTAND_AVLT.csv", header=TRUE)
  84. RESTAND_AVLT_wide <- merge (RESTAND_participants, RESTAND_AVLT, by = "PID")
  85. setwd("C:/Users/adecates/OneDrive - Nexus365/DPhil work/5HT4_novel/Analysis/AVLT")
  86. write.csv(RESTAND_AVLT_wide, "AVLT_full_R_allpts.csv")
  87. RESTAND_AVLT_wide$PID <- as.factor(RESTAND_AVLT_wide$PID) #counts the participant IDs as categorical
  88. RESTAND_AVLT_wide$MedicationGroup <- as.factor(RESTAND_AVLT_wide$MedicationGroup) #counts the drug condition as categorical
  89. RESTAND_AVLT_wide_female <- RESTAND_AVLT_wide %>%
  90. filter(Sex == "F")
  91. RESTAND_AVLT_wide_male <- RESTAND_AVLT_wide %>%
  92. filter(Sex == "M")
  93. RESTAND_AVLT_wide_twoway <- RESTAND_AVLT_wide %>%
  94. filter(MedicationGroup == "Active"|MedicationGroup == "Placebo")
  95. RESTAND_AVLT_wide_twoway_cit_plac <- RESTAND_AVLT_wide %>%
  96. filter(MedicationGroup == "Citalopram"|MedicationGroup == "Placebo")
  97. RESTAND_AVLT_wide_twoway_female <- RESTAND_AVLT_wide_female %>%
  98. filter(MedicationGroup == "Active"|MedicationGroup == "Placebo")
  99. RESTAND_AVLT_wide_twoway_male <- RESTAND_AVLT_wide_male %>%
  100. filter(MedicationGroup == "Active"|MedicationGroup == "Placebo")
  101. RESTAND_AVLT_long <- RESTAND_AVLT_wide %>%
  102. gather(key="Block", value = "Score", T1_correct, T2_correct, T3_correct, T4_correct, T5_correct, ListB_correct, Short_delay, Long_delay)
  103. RESTAND_AVLT_long$Block <- as.character(RESTAND_AVLT_long$Block)
  104. RESTAND_AVLT_long_female <- RESTAND_AVLT_long %>%
  105. filter(Sex == "F")
  106. RESTAND_AVLT_long_male <- RESTAND_AVLT_long %>%
  107. filter(Sex == "M")
  108. RESTAND_AVLT_long_twoway <- RESTAND_AVLT_long %>%
  109. filter(MedicationGroup == "Active"|MedicationGroup == "Placebo")
  110. RESTAND_AVLT_long_twoway_cit_plac <- RESTAND_AVLT_long %>%
  111. filter(MedicationGroup == "Citalopram"|MedicationGroup == "Placebo")
  112. RESTAND_AVLT_long_ListA <- RESTAND_AVLT_long %>%
  113. filter (Block == c("T1_correct", "T2_correct", "T3_correct", "T4_correct", "T5_correct"))
  114. RESTAND_AVLT_long_ListA_twoway <- RESTAND_AVLT_long_twoway %>%
  115. filter (Block == c("T1_correct", "T2_correct", "T3_correct", "T4_correct", "T5_correct"))
  116. RESTAND_AVLT_long_twoway_female <- RESTAND_AVLT_long_female %>%
  117. filter(MedicationGroup == "Active"|MedicationGroup == "Placebo")
  118. RESTAND_AVLT_long_twoway_male <- RESTAND_AVLT_long_male %>%
  119. filter(MedicationGroup == "Active"|MedicationGroup == "Placebo")
  120. RESTAND_AVLT_wide %>%
  121. group_by(MedicationGroup) %>%
  122. get_summary_stats(T1_correct:T5_correct, type = "mean_sd")
  123. ```
  124. ```{r}
  125. # Reorder and rename the levels of the Block variable
  126. RESTAND_AVLT_long_twoway$Block <- factor(
  127. RESTAND_AVLT_long_twoway$Block,
  128. levels = c("T1_correct", "T2_correct", "T3_correct", "T4_correct",
  129. "T5_correct", "ListB_correct", "Short_delay", "Long_delay"),
  130. labels = c("List A Trial1", "List A Trial2", "List A Trial3",
  131. "List A Trial4", "List A Trial5", "List B",
  132. "List A Short Delay", "List A Long Delay")
  133. )
  134. summary_df <- RESTAND_AVLT_long_twoway %>%
  135. group_by(Block, MedicationGroup) %>%
  136. dplyr::summarise(
  137. mean = mean(Score, na.rm = TRUE),
  138. se = sd(Score, na.rm = TRUE) / sqrt(n()),
  139. lower = mean(Score, na.rm = TRUE) - (sd(Score, na.rm = TRUE) / sqrt(n())),
  140. upper = mean(Score, na.rm = TRUE) + (sd(Score, na.rm = TRUE) / sqrt(n())),
  141. .groups = "drop"
  142. )
  143. AVLT_plot_line_2way_updated <- ggplot(summary_df, aes(x = Block, y = mean, color = factor(MedicationGroup), fill = factor(MedicationGroup), group = factor(MedicationGroup))) +
  144. geom_ribbon(aes(ymin = lower, ymax = upper), alpha = 0.2, linetype = 3) + # increased transparency
  145. geom_line(size = 1, linetype = "solid") + # darker/thicker mean line
  146. geom_point(size = 3) +
  147. scale_color_manual(name = "Medication", labels = figgroupnames_twoway, values = figgroupcolours_twoway) +
  148. scale_fill_manual(name = "Medication", labels = figgroupnames_twoway, values = figgroupcolours_twoway) +
  149. coord_cartesian(ylim = c(5, 15)) +
  150. theme() +
  151. labs(title = "AVLT Recall Across Medication Groups",
  152. x = "AVLT Block", y = "Number of Words Recalled", tag = "A")
  153. AVLT_plot_line_2way_updated
  154. ```
  155. ### Number of words recalled - List A immediate (total correct) & score for each block with block
  156. ```{r}
  157. RESTAND_AVLT_wide %>%
  158. group_by(MedicationGroup) %>%
  159. get_summary_stats(Total_correct, type = "mean_sd")
  160. summary(aov(Total_correct ~ MedicationGroup, data = RESTAND_AVLT_wide_twoway))
  161. Twowayaccuracy_block <- lmer(Score ~ MedicationGroup * Block + (1|PID), data = RESTAND_AVLT_long_twoway)
  162. anova(Twowayaccuracy_block)
  163. library(effectsize)
  164. eta_squared(Twowayaccuracy_block, partial = TRUE)
  165. ```
  166. ### Repeat of above main analyses using citVsplac as repeat for supplement
  167. ```{r}
  168. summary(aov(Total_correct ~ MedicationGroup, data = RESTAND_AVLT_wide_twoway_cit_plac))
  169. Twowayaccuracy_block <- lmer(Score ~ MedicationGroup * Block + (1|PID), data = RESTAND_AVLT_long_twoway_cit_plac)
  170. anova(Twowayaccuracy_block)
  171. eta_squared(Twowayaccuracy_block, partial = TRUE)
  172. ```
  173. #### Interaction with sex
  174. ```{r}
  175. Twoway_accuracy_block_sex <- lmer(Score ~ MedicationGroup * Block * Sex + (1|PID), data = RESTAND_AVLT_long_twoway)
  176. anova(Twoway_accuracy_block_sex)
  177. effect_sizes_anova_sex <- eta_squared(Twowayaccuracy_block_sex, partial = TRUE)
  178. print(effect_sizes_anova_sex)
  179. RESTAND_AVLT_wide_twoway %>%
  180. group_by(MedicationGroup, Sex) %>%
  181. get_summary_stats(Total_correct, type = "mean_sd")
  182. ```
  183. ```{r}
  184. # Plotting for sex
  185. # Calculate mean and standard error
  186. RESTAND_AVLT_wide_twoway_plottable <- RESTAND_AVLT_wide_twoway %>%
  187. group_by(MedicationGroup, Sex) %>%
  188. dplyr::summarise(
  189. mean = mean(Total_correct, na.rm = TRUE), # Added na.rm=TRUE
  190. se = sd(Total_correct, na.rm = TRUE) / sqrt(n())
  191. )
  192. # Reshape the data for means
  193. means_wide <- RESTAND_AVLT_wide_twoway_plottable %>%
  194. select(MedicationGroup, Sex, mean) %>%
  195. tidyr::pivot_wider(names_from = MedicationGroup, names_prefix = "Total_correct", values_from = mean)
  196. # Reshape the data for standard errors
  197. se_wide <- RESTAND_AVLT_wide_twoway_plottable %>%
  198. select(MedicationGroup, Sex, se) %>%
  199. tidyr::pivot_wider(names_from = MedicationGroup, names_prefix = "SE", values_from = se)
  200. # Convert to matrix format for plotting
  201. means_matrix <- as.matrix(means_wide[,-1])
  202. se_matrix <- as.matrix(se_wide[,-1])
  203. rownames(means_matrix) <- means_wide$Sex
  204. # Set up the plotting area with space for the legend at the bottom
  205. # par(xpd = TRUE) allows plotting outside the plot area for the legend
  206. par(xpd = TRUE, mar = c(5, 4, 4, 2) + 0.1) # Increase bottom margin for legend
  207. # Create the barplot
  208. bp <- barplot(means_matrix,
  209. beside = TRUE,
  210. legend = FALSE, # Remove default legend
  211. col = c("orange", "darkgreen"),
  212. main = "AVLT Total Correct",
  213. ylim = c(0,100),
  214. ylab = "Total Correct for List A",
  215. names.arg = c("5HT4", "Placebo"))
  216. # Add error bars
  217. for(i in 1:nrow(means_matrix)) {
  218. arrows(bp[i,], means_matrix[i,] - se_matrix[i,],
  219. bp[i,], means_matrix[i,] + se_matrix[i,],
  220. angle=90, code=3, length=0.05)
  221. }
  222. # Add legend below the plot
  223. legend(x = "bottom", # Position the legend at the bottom
  224. inset = -0.2, # Move legend down
  225. legend = rownames(means_matrix), # Sex labels
  226. fill = c("orange", "darkgreen"),
  227. horiz = TRUE, # Horizontal legend
  228. bty = "n") # No box around legend
  229. # Reset plotting parameters
  230. par(mar = c(5, 4, 4, 2))
  231. par(xpd = FALSE)
  232. # Updated above with spread of data
  233. # Calculate mean and standard error
  234. RESTAND_AVLT_wide_twoway_plottable <- RESTAND_AVLT_wide_twoway %>%
  235. group_by(MedicationGroup, Sex) %>%
  236. dplyr::summarise(
  237. mean = mean(Total_correct, na.rm = TRUE),
  238. se = sd(Total_correct, na.rm = TRUE) / sqrt(n())
  239. )
  240. # Reshape the data for means and SEs
  241. means_wide <- RESTAND_AVLT_wide_twoway_plottable %>%
  242. select(MedicationGroup, Sex, mean) %>%
  243. tidyr::pivot_wider(names_from = MedicationGroup, names_prefix = "Total_correct", values_from = mean)
  244. se_wide <- RESTAND_AVLT_wide_twoway_plottable %>%
  245. select(MedicationGroup, Sex, se) %>%
  246. tidyr::pivot_wider(names_from = MedicationGroup, names_prefix = "SE", values_from = se)
  247. # Convert to matrix for plotting
  248. means_matrix <- as.matrix(means_wide[,-1])
  249. se_matrix <- as.matrix(se_wide[,-1])
  250. rownames(means_matrix) <- means_wide$Sex
  251. # Set up plotting area with space for legend
  252. par(xpd = TRUE, mar = c(5, 4, 4, 2) + 0.1) # Adjust bottom margin for legend
  253. # # Create grouped barplot
  254. # bp <- barplot(means_matrix,
  255. # beside = TRUE,
  256. # legend = FALSE, # We'll add custom legend
  257. # col = c("orange", "darkgreen"),
  258. # main = "AVLT Total Correct",
  259. # ylim = c(0, 100),
  260. # ylab = "Total Correct for List A",
  261. # names.arg = c("5HT4", "Placebo"))
  262. # Define lighter fill colors and darker border colors
  263. fill_colors <- c("#FFCC99", "#99CC99") # Light orange, light green
  264. border_colors <- c("#CC6600", "#336600") # Darker orange, dark green
  265. par(lwd=4)
  266. # Set space between groups and bars (space = c(space_between_groups, space_within_group))
  267. # For 2 bars per group: e.g., 0.5 between groups, 0.3 between bars within group
  268. bp <- barplot(
  269. means_matrix,
  270. beside = TRUE,
  271. legend = FALSE,
  272. col = fill_colors, # Lighter fill
  273. border = border_colors, # Darker outline
  274. space = c(0.3, 0.8), # Adds space between groups and between bars in groups
  275. main = "AVLT Total Correct",
  276. ylim = c(0, 100),
  277. ylab = "Total Correct for List A",
  278. names.arg = c("5HT4", "Placebo")
  279. )
  280. # Add error bars (mean ± SE)
  281. for(i in 1:nrow(means_matrix)) {
  282. arrows(bp[i,], means_matrix[i,] - se_matrix[i,],
  283. bp[i,], means_matrix[i,] + se_matrix[i,],
  284. angle=90, code=3, length=0.3, lwd=2)
  285. }
  286. par(lwd=1)
  287. # Subset original data to only desired MedicationGroup levels
  288. RESTAND_sub <- RESTAND_AVLT_wide_twoway %>%
  289. filter(MedicationGroup %in% c("Active", "Placebo"))
  290. # Drop unused factor levels after subsetting
  291. RESTAND_sub$MedicationGroup <- droplevels(RESTAND_sub$MedicationGroup)
  292. # Then get med_levels from this cleaned data
  293. med_levels <- levels(RESTAND_sub$MedicationGroup)
  294. sex_levels <- unique(RESTAND_sub$Sex) # returns character vector of unique Sex values
  295. for (i in seq_along(sex_levels)) {
  296. for (j in seq_along(med_levels)) {
  297. # Filter raw data for this group
  298. ind <- which(RESTAND_sub$Sex == sex_levels[i] & RESTAND_sub$MedicationGroup == med_levels[j])
  299. y_vals <- RESTAND_sub$Total_correct[ind]
  300. x_pos <- bp[i, j]
  301. point_colors <- c("Active" = "darkblue", "Placebo" = "darkgrey")
  302. # Add horizontal jitter to avoid overlapping points
  303. x_jitter <- jitter(rep(x_pos, length(y_vals)), amount = 0.2)
  304. points(x_jitter, y_vals, pch = 21, bg = point_colors[med_levels[j]], col = "black", cex = 0.8)
  305. }
  306. }
  307. # Add legend below the plot
  308. legend(x = "bottom",
  309. inset = -0.2,
  310. legend = rownames(means_matrix),
  311. fill = c("orange", "darkgreen"),
  312. horiz = TRUE,
  313. bty = "n")
  314. # Reset par settings
  315. par(mar = c(5, 4, 4, 2))
  316. par(xpd = FALSE)
  317. ```
  318. #### Women only for Total Correct
  319. ```{r}
  320. summary(aov(Total_correct ~ MedicationGroup, data = RESTAND_AVLT_wide_twoway_female))
  321. ```
  322. #### Men only for Total Correct
  323. ```{r}
  324. summary(aov(Total_correct ~ MedicationGroup, data = RESTAND_AVLT_wide_twoway_male))
  325. ```
  326. #### Sex and medication group when model block
  327. ```{r}
  328. Twoway_main_sex <- lmer(Score ~ MedicationGroup * Block * Sex + (1|PID), data = RESTAND_AVLT_long_twoway)
  329. anova(Twoway_main_sex)
  330. effect_sizes_Twoway_main_sex <- eta_squared(Twoway_main_sex, partial = TRUE)
  331. print(effect_sizes_Twoway_main_sex)
  332. ```
  333. #### Women only
  334. ```{r}
  335. Twoway_main_sex_female <- lmer(Score ~ MedicationGroup * Block + (1|PID), data = RESTAND_AVLT_long_ListA_twoway_female)
  336. anova(Twoway_main_sex_female)
  337. effect_sizes_Twoway_main_sex_female <- eta_squared(Twoway_main_sex_female, partial = TRUE)
  338. print(effect_sizes_Twoway_main_sex_female)
  339. RESTAND_AVLT_wide_female %>%
  340. group_by(MedicationGroup,) %>%
  341. get_summary_stats(T1_correct:T5_correct, type = "mean_sd")
  342. ```
  343. #### Men only (small n)
  344. ```{r}
  345. RESTAND_AVLT_wide_male %>%
  346. group_by(MedicationGroup,) %>%
  347. get_summary_stats(T1_correct:T5_correct, type = "mean_sd")
  348. ```
  349. #### Age and medication group when model block
  350. ```{r}
  351. Twoway_main_age <- lmer(Score ~ MedicationGroup * Block * Age_decimal + (1|PID), data = RESTAND_AVLT_long_twoway)
  352. anova(Twoway_main_sex)
  353. effect_sizes_Twoway_main_age <- eta_squared(Twoway_main_age, partial = TRUE)
  354. print(effect_sizes_Twoway_main_age)
  355. ```
  356. #### HAMD baseline, and Age + HAMD baseline, and HAM change and medication group when model block
  357. ```{r}
  358. Twoway_main_HAMDbaseline <- lmer(Score ~ MedicationGroup * Block * HAMD_SV + (1|PID), data = RESTAND_AVLT_long_twoway)
  359. anova(Twoway_main_HAMDbaseline)
  360. effect_sizes_Twoway_main_HAMDbaseline <- eta_squared(Twoway_main_HAMDbaseline, partial = TRUE)
  361. print(effect_sizes_Twoway_main_HAMDbaseline)
  362. Twoway_main_HAMDbaseline_age <- lmer(Score ~ MedicationGroup * Block * Age_decimal * HAMD_SV + (1|PID), data = RESTAND_AVLT_long_twoway)
  363. anova(Twoway_main_HAMDbaseline_age)
  364. effect_sizes_Twoway_main_HAMDbaseline_age <- eta_squared(Twoway_main_HAMDbaseline_age, partial = TRUE)
  365. print(effect_sizes_Twoway_main_HAMDbaseline_age)
  366. Twoway_main_HAMDchange <- lmer(Score ~ MedicationGroup * Block * HAMD_change + (1|PID), data = RESTAND_AVLT_long_twoway)
  367. anova(Twoway_main_HAMDchange)
  368. effect_sizes_Twoway_main_HAMDchange <- eta_squared(Twoway_main_HAMDchange, partial = TRUE)
  369. print(effect_sizes_Twoway_main_HAMDchange)
  370. ```
  371. ### Number of words recalled - List A short delay
  372. ```{r}
  373. anova_SD <- aov(Short_delay ~ MedicationGroup, data = RESTAND_AVLT_wide_twoway)
  374. summary(anova_SD)
  375. effect_sizes_anova_SD <- eta_squared(anova_SD, partial = TRUE)
  376. print(effect_sizes_anova_SD)
  377. ```
  378. #### Interaction between medication group and sex
  379. ```{r}
  380. RESTAND_AVLT_wide_twoway %>%
  381. group_by(MedicationGroup, Sex) %>%
  382. get_summary_stats(Short_delay, type = "mean_sd")
  383. ```
  384. ### Number of words recalled - List A long delay
  385. ```{r}
  386. #FILTER DOWN EXCLUDE 187
  387. RESTAND_AVLT_wide_longdelay_twoway <- RESTAND_AVLT_wide_twoway %>%
  388. filter (PID != "UMD187") # RESTAND_exclusiondecisions.csv – it was because she had a 1+ hour gap mid research visit due to menstrual cramps, so a lot longer delay than intended, and we decided to exclude before unblinding
  389. anova_LD <- aov(Long_delay ~ MedicationGroup, data = RESTAND_AVLT_wide_longdelay_twoway)
  390. summary(anova_LD)
  391. effect_sizes_anova_LD <- eta_squared(anova_LD, partial = TRUE)
  392. print(effect_sizes_anova_LD)
  393. RESTAND_AVLT_wide_longdelay_twoway %>%
  394. group_by(MedicationGroup) %>%
  395. get_summary_stats(Long_delay, type = "mean_sd")
  396. ```
  397. #### Interaction between medication and sex
  398. ```{r}
  399. RESTAND_AVLT_wide_longdelay_twoway %>%
  400. group_by(MedicationGroup, Sex) %>%
  401. get_summary_stats(Long_delay, type = "mean_sd")
  402. ```
  403. ### Intrusions
  404. ```{r}
  405. RESTAND_AVLT_wide %>%
  406. group_by(MedicationGroup) %>%
  407. get_summary_stats(Intrusions, type = "mean_sd")
  408. summary(aov(Intrusions ~ MedicationGroup, data = RESTAND_AVLT_wide_twoway))
  409. ```
  410. #### Interaction between medication and sex
  411. ```{r}
  412. RESTAND_AVLT_wide_twoway %>%
  413. group_by(MedicationGroup, Sex) %>%
  414. get_summary_stats(Intrusions, type = "mean_sd")
  415. ```
  416. ### Repetitions
  417. ```{r}
  418. RESTAND_AVLT_wide %>%
  419. group_by(MedicationGroup) %>%
  420. get_summary_stats(Repetitions, type = "mean_sd")
  421. summary(aov(Repetitions ~ MedicationGroup, data = RESTAND_AVLT_wide_twoway))
  422. ```
  423. #### Interaction between medication group with sex
  424. ```{r}
  425. RESTAND_AVLT_wide_twoway %>%
  426. group_by(MedicationGroup, Sex) %>%
  427. get_summary_stats(Repetitions, type = "mean_sd")
  428. ```
  429. ### Number of words recalled - List B immediate
  430. ```{r}
  431. RESTAND_AVLT_wide %>%
  432. group_by(MedicationGroup) %>%
  433. get_summary_stats(ListB_correct, type = "mean_sd")
  434. #
  435. anova_listB <- aov(ListB_correct ~ MedicationGroup, data = RESTAND_AVLT_wide_twoway)
  436. summary(anova_listB)
  437. effect_sizes_anova_listB <- eta_squared(anova_listB, partial = TRUE)
  438. print(effect_sizes_anova_listB)
  439. ```
  440. #### Interaction between medication and sex
  441. ```{r}
  442. RESTAND_AVLT_wide_twoway %>%
  443. group_by(MedicationGroup, Sex) %>%
  444. get_summary_stats(ListB_correct, type = "mean_sd")
  445. ```
  446. ### Recognition - hits
  447. ```{r}
  448. RESTAND_AVLT_wide_longdelay_twoway %>%
  449. group_by(MedicationGroup, Sex) %>%
  450. get_summary_stats(Recog_hits, type = "mean_sd")
  451. summary(aov(Recog_hits ~ MedicationGroup, data = RESTAND_AVLT_wide_longdelay_twoway))
  452. ```
  453. ### Recognition - false alarms
  454. ```{r}
  455. RESTAND_AVLT_wide_longdelay_twoway %>%
  456. group_by(MedicationGroup) %>%
  457. get_summary_stats(Recog_falsepos, type = "mean_sd")
  458. summary(aov(Recog_falsepos ~ MedicationGroup, data = RESTAND_AVLT_wide_longdelay_twoway))
  459. ```
  460. #### Interaction between medication and sex
  461. ```{r}
  462. RESTAND_AVLT_wide_longdelay_twoway %>%
  463. group_by(MedicationGroup, Sex) %>%
  464. get_summary_stats(Recog_falsepos, type = "mean_sd")
  465. ```

RESTAND AVLT ANALYSIS_forpublication.Rmd, no license · at the source

Overview

Authors: Angharad N de Cates1,2, Amy L Gillespie2,3, Jessica Scaife2, Marieke A G Martens2, James Carson2, Beata R Godlewska2,3, Wendy Howard2, Anutra Guru2, Philip J Cowen2,3, Catherine J Harmer2,3,4, Susannah E Murphy2,3
  1. Institute for Mental Health, University of Birmingham, Edgbaston, Birmingham, UK
  2. University Department of Psychiatry, Warneford Hospital, University of Oxford, Oxford, UK
  3. Oxford Health NHS Foundation Trust, Warneford Hospital, Oxford, UK
  4. Oxford Centre for Human Brain Activity, Oxford Centre for Integrative Neuroimaging, Department of Psychiatry, University of Oxford, Oxford, UK
Institutions: Warneford Hospital (United Kingdom); University of Oxford (United Kingdom); University of Birmingham (United Kingdom); Oxford Health NHS Foundation Trust (United Kingdom); Wellcome Centre for Integrative Neuroimaging (United Kingdom)
Journal: Translational psychiatry, volume 16, issue 1, article 405
Dates: received 30 September 2025; accepted 22 May 2026; published online 17 June 2026
Type: Research article · Language: English
License: CC BY
Identifiers: DOI 10.1038/s41398-026-04141-z · PMID 42309998 · PMCID PMC13458156 · OpenAlex W7165055504
Open access: gold, a free copy (OpenAlex)
Status: code verified
Categories: human (organism), depression (population)
Methods: Statistics, fMRI & imaging
Keywords: Clinical pharmacology, Depression
MeSH: Hippocampus*, Major Depressive Disorder*, Serotonin 5-HT4 Receptor Agonists*, Adult, Cognitive Enhancement, Double-Blind Method, Female, Humans, Magnetic Resonance Imaging, Male, Memory, Short-Term, Middle Aged, Verbal Learning, Young Adult (* major topic)
Topic: Neurotransmitter Receptor Influence on Behavior (Cellular and Molecular Neuroscience, Neuroscience), according to OpenAlex
Funding: Medical Research Council (MR/S035591/1); Wellcome Trust (216430/Z/19/Z); DH | NIHR | Research Trainees Coordinating Centre
Citations: cited by 2 papers (Europe PMC); 58 references in the paper

Abstract

Cognitive impairment is a common but under-treated feature of Major Depressive Disorder (MDD). Preclinical and early human studies suggest that 5-HT4 receptor (5-HT4R) agonists rapidly improve learning and memory, consistent with this receptor’s role in hippocampal neuroplasticity. However, their effects in clinically depressed patients, remain unexplored. In this double-blind, randomised experimental medicine study, 52 right-handed, unmedicated individuals with MDD received 6–9 days of the 5-HT4R agonist PF-04995274 (15 mg, once daily) or placebo. Participants subsequently underwent fMRI scanning during a memory encoding task and completed behavioural measures of auditory verbal learning and spatial working memory. Compared to placebo, PF-04995274 significantly increased activity in the hippocampus (ROI analysis) in response to novel versus familiar images, particularly in the left hemisphere. Whole brain analysis also revealed greater activation in the left inferior parietal lobule, a key region for memory processing. In contrast with previous studies using the 5-HT4R agonist prucalopride, PF-04995274 had notably limited effects on behavioural measures of memory. The results demonstrate that short term 5-HT4R agonism enhances hippocampal and parietal activity during memory encoding in patients with depression. This replicates and extends previous findings in healthy volunteers using prucalopride, and is consistent with preclinical evidence establishing a key role for 5-HT4Rs in hippocampal-dependent learning and memory. This translational evidence supports a role for 5-HT4R activation in modulating memory-related brain circuits in MDD and previously identified beneficial effects of another 5-HT4 receptor agonist, prucalopride, on cognitive performance.

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

Repository

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

OSF v7kgs

License: none: the authors keep all their rights
State: the link answers, verified on 27 September 2026
Evidence: files inventoried
Languages: R (16)
Size: 16 files, 16 scripts
Software Heritage: not checked
Found in: “Code availability”
Holds: 1 notebook
Not found: README, license file, CITATION.cff, environment file, tests, continuous integration, documentation
Tools: tidyverse (7 files), easystats (3 files), ggplot2 (3 files), car (2 files), ggpubr (2 files), rstatix (2 files), afex (1 file), data.table (1 file), emmeans (1 file), lme4 (1 file), patchwork (1 file)
Availability: 1 check, the latest on 27 September 2026: the link answers (HTTP 200)
  • 27 September 2026: the link answers (HTTP 200)
16 files

Code availability

Analysis code is available at the Open Science Framework (https://osf.io/v7kgs/?view_only=1cd5bb7f964f445397ba16dc72cfb812).

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

Tracing map

Proposed by the machine: these links were found in the paper and verified at the source, without human review. The map will receive a Zenodo DOI once one of the paper's authors has validated it with their ORCID.

What the map holds:

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

Data availability

Data is available from the authors on request.

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

Versions

The history of this record: each version stored by the harvester or made by a correction of its authors or of the maintainers of its code, and what changed in its facts. The texts of the paper (its abstract, its availability statements) are not part of it; versions that changed only those are not listed.

Version 1, 27 September 2026: the first record

Recorded: type, language, journal, volume, issue, pages, dates, 11 authors, 2 keywords, 14 MeSH terms, 3 funders, 50 references.

Cite

This paper

de Cates, A. N., Gillespie, A. L., Scaife, J., Martens, M. A. G., Carson, J., Godlewska, B. R., Howard, W., Guru, A., Cowen, P. J., Harmer, C. J., & Murphy, S. E. (2026). Effects on hippocampal activity following novel 5-HT4 receptor agonism in unmedicated patients with depression: the RESTAND study. Translational psychiatry, 16(1), 405. https://doi.org/10.1038/s41398-026-04141-z

BibTeX

@article{decates2026effects,
author = {de Cates, Angharad N and Gillespie, Amy L and Scaife, Jessica and Martens, Marieke A G and Carson, James and Godlewska, Beata R and Howard, Wendy and Guru, Anutra and Cowen, Philip J and Harmer, Catherine J and Murphy, Susannah E},
title = {{Effects on hippocampal activity following novel 5-HT4 receptor agonism in unmedicated patients with depression: the RESTAND study}},
journal = {Translational psychiatry},
year = {2026},
month = jun,
volume = {16},
number = {1},
pages = {405},
publisher = {Nature Publishing Group},
issn = {2158-3188},
doi = {10.1038/s41398-026-04141-z},
url = {https://doi.org/10.1038/s41398-026-04141-z},
pmid = {42309998},
pmcid = {PMC13458156}
}

RIS

TY - JOUR
AU - de Cates, Angharad N
AU - Gillespie, Amy L
AU - Scaife, Jessica
AU - Martens, Marieke A G
AU - Carson, James
AU - Godlewska, Beata R
AU - Howard, Wendy
AU - Guru, Anutra
AU - Cowen, Philip J
AU - Harmer, Catherine J
AU - Murphy, Susannah E
TI - Effects on hippocampal activity following novel 5-HT4 receptor agonism in unmedicated patients with depression: the RESTAND study
T2 - Translational psychiatry
J2 - Transl Psychiatry
PY - 2026
DA - 2026/06/17
VL - 16
IS - 1
SP - 405
SN - 2158-3188
PB - Nature Publishing Group
DO - 10.1038/s41398-026-04141-z
UR - https://doi.org/10.1038/s41398-026-04141-z
LA - en
ER -

CSL-JSON

{
"id": "10.1038/s41398-026-04141-z",
"type": "article-journal",
"title": "Effects on hippocampal activity following novel 5-HT4 receptor agonism in unmedicated patients with depression: the RESTAND study",
"container-title": "Translational psychiatry",
"author": [
{
"family": "de Cates",
"given": "Angharad N"
},
{
"family": "Gillespie",
"given": "Amy L"
},
{
"family": "Scaife",
"given": "Jessica"
},
{
"family": "Martens",
"given": "Marieke A G"
},
{
"family": "Carson",
"given": "James"
},
{
"family": "Godlewska",
"given": "Beata R"
},
{
"family": "Howard",
"given": "Wendy"
},
{
"family": "Guru",
"given": "Anutra"
},
{
"family": "Cowen",
"given": "Philip J"
},
{
"family": "Harmer",
"given": "Catherine J"
},
{
"family": "Murphy",
"given": "Susannah E"
}
],
"container-title-short": "Transl Psychiatry",
"volume": "16",
"issue": "1",
"page": "405",
"DOI": "10.1038/s41398-026-04141-z",
"PMID": "42309998",
"PMCID": "PMC13458156",
"ISSN": "2158-3188",
"publisher": "Nature Publishing Group",
"URL": "https://doi.org/10.1038/s41398-026-04141-z",
"language": "en",
"issued": {
"date-parts": [
[
2026,
6,
17
]
]
}
}

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.1192/bjp.2026.10664 [code]
Early effects of a novel 5-HT&lt;sub&gt;4&lt;/sub&gt;R agonist (PF-04995274) and the SSRI citalopram on emotional cognition in unmedicated depression: RESTAND study.
Journal: The British journal of psychiatry : the journal of mental science
In common: afex, rstatix, easystats, 8 other tools, Zenodo 6107724, depression, 9 references, 4 authors
[2] doi:10.1038/s41467-026-73865-9 [code]
Histamine shapes the neurocomputational dynamics of human learning.
Journal: Nature communications
In common: rstatix, easystats, car, 6 other tools, 3 references, 2 authors
[3] doi:10.1126/sciadv.aec9291 [code]
Computational mechanisms of perception in autism revealed using games inspired by rodent operant tasks.
Journal: Science advances
In common: afex, rstatix, easystats, 8 other tools
[4] doi:10.1073/pnas.2603114123 [code]
The human hippocampus can pattern separate memories by meaning.
Journal: Proceedings of the National Academy of Sciences of the United States of America
In common: afex, rstatix, easystats, 6 other tools
[5] doi:10.1016/j.neuroimage.2026.122115 [code]
Midfrontal theta power relates to response speeding following frustrative nonreward.
Journal: NeuroImage
In common: rstatix, easystats, car, 6 other tools
[6] doi:10.1162/imag.a.1313 [code]
Functional specialization of angular gyrus and precuneus subregions for perspective-guided autobiographical memory retrieval.
Journal: Imaging neuroscience (Cambridge, Mass.)
In common: afex, easystats, emmeans, 5 other tools, 1 reference
[7] doi:10.1126/sciadv.aeb8106 [code]
A thyroid hormone-mediated opsin switch initiates metamorphosis in a proto-vertebrate.
Journal: Science advances
In common: rstatix, easystats, car, 6 other tools
[8] doi:10.1038/s41467-026-74753-y [code]
A human-specific microRNA controls the timing of excitatory synaptogenesis.
Journal: Nature communications
In common: rstatix, easystats, emmeans, 6 other tools
[9] doi:10.1038/s41398-026-04010-9 [code]
Bullying victimization and brain development: a longitudinal structural magnetic resonance imaging study from adolescence to early adulthood.
Journal: Translational psychiatry
In common: rstatix, easystats, emmeans, 6 other tools
[10] doi:10.1093/bioinformatics/btag592 [code]
Network-based stratification of allele-specific expression reveals patient subgroups in Huntington's disease.
Journal: Bioinformatics (Oxford, England)
In common: rstatix, car, emmeans, 6 other tools

Contribute

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

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

Request its removal

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

Discussion, reproductions, activity

Discussion: questions and error reports about this paper and its code, from signed-in readers and its authors. It opens with sign-in.

Reproductions: reports from readers who ran the authors' code: what they reproduced, with which environment, commit and data. It opens with sign-in.

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