Working memory demands modulate memory brain state engagement.
The 11 matches
- [1] § STAR★Methods › Quantification and statistical analysis › EEG data preprocessing ↔ codes/anaCodes/eegPrepro.py, lines 59–103 · score 0.91 · notch filter, Hurst exponent, high pass filter, Bad electrodes, harmonics, noise
- [2] § Results › Memory brain states are modulated by working memory demands ↔ codes/anaCodes/permStats.Rmd, lines 273–325 · score 0.81 · gradual increase, rmANOVA, response selectively, Response locked memory, indicating greater retrieval, assessed response locked
- [3] § STAR★Methods › Quantification and statistical analysis › EEG data analysis ↔ codes/anaCodes/config.py, lines 271–314 · score 0.79 · Morlet wavelet transform, logarithmically spaced frequencies, 100 Hz
- [4] § STAR★Methods › Method details › Procedure and design › General overview ↔ codes/expCodes/perm.py, lines 169–246 · score 0.75 · response mappings, perception blocks, memory blocks, response phase, jitter, locations
- [5] § STAR★Methods › Quantification and statistical analysis › Statistical analyses ↔ codes/anaCodes/perm_group_memState.py, lines 307–357 · score 0.59 · logistic regression, linear regression, predicts, memory state evidence, delay, perception
- [6] § Results › Memory brain states are modulated by working memory demands ↔ codes/anaCodes/permStats.Rmd, lines 327–370 · score 0.59 · pre response dissociation, post hoc, perception responses, anticipated, SD, interval
- [7] § STAR★Methods › Method details › Procedure and design › Memory task ↔ codes/expCodes/perm.py, lines 169–246 · score 0.58 · memory blocks, response phase, change detection, locations, squares
- [8] § Results › Set size modulates target and change detection behavior ↔ codes/anaCodes/permStats.Rmd, lines 372–455 · score 0.55 · logistic regression, memory accuracy, linear regression, RT, SD, perception
- [9] § Results › Memory brain states are modulated by working memory demands ↔ codes/anaCodes/perm_stats.py, lines 357–402 · score 0.54 · 500–2500 ms, delay, retrieval, memory
- [10] § Results › Memory brain states are modulated by working memory demands ↔ codes/anaCodes/permStats.Rmd, lines 457–497 · score 0.51 · memory response, pre response, BF, hit, CRs, SD
- [11] § STAR★Methods › Quantification and statistical analysis › EEG data analysis ↔ codes/anaCodes/zpowerAna.py, lines 15–98 · score 0.50 · log transforming, onset, power, electrodes, EEG
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 · 497 lines · 17 KB · no license · 4 matches
- ---
- title: "perm stats"
- author: "Nicole Long & DT Nguyen"
- date: "1/31/2025"
- output:
- pdf_document:
- toc: yes
- latex_engine: xelatex
- mainfont: Helvetica
- cache: yes
- ---
- # Set desired parameters for the markdown output and load libraries
- ```{r setup, include=FALSE}
- knitr::opts_chunk$set(echo = FALSE)
- knitr::opts_chunk$set(cache = TRUE)
- knitr::opts_chunk$set(warning = FALSE)
- knitr::opts_chunk$set(message = FALSE)
- library(tidyverse)
- library(dplyr)
- library(glue) # prints results
- library(sjstats) # calculates eta squared
- library(emmeans)
- library(BayesFactor)
- ```
- # Specify subjects and directories
- ```{r}
- expr = "dtn4gn"
- N = 39
- dataDir = paste("/Users/",expr,"/eeg/perm/data/group/",sep="")
- #dataDir = paste("/Users/",expr,"/Library/CloudStorage/Box-Box/DT/perm/analysis/data/group/",sep="")
- demoDir = paste("/Users/",expr,"/eeg/perm/data/demographics/",sep="")
- ```
- # Demographics
- ```{r}
- demoData = read.csv(paste(demoDir, "eeg_demoPerm.csv", sep="")) %>%
- dplyr::select(-Study, -X, -X.1) # remove unnecessary columns
- ageM = round(mean(demoData$Age), 4)
- print(glue("Mean age is {ageM}"))
- ageSD = round(sd(demoData$Age), 4)
- print(glue("Standard deviation of age is {ageSD}"))
- ```
- # Load data
- ```{r}
- # behavioral data
- data = read.csv(paste(paste(dataDir,"N", N,"_perm_performance_Acc_RT.csv", sep=""))) %>%
- dplyr::select(-X) # remove this X column
- ## separate by task
- percDF = data[data$task=="perception",]
- memoDF = data[data$task=="memory",]
- # stimulus-locked data
- dataStimANOVA = read.csv(paste(paste0(dataDir,"N39_perm_trained_N57_repo_0to2000_to_stimLocked_0to3500in100ms_whole_brain_allFreqs_retEvi_Task.csv", sep=""))) %>%
- select(-X) %>% # remove this X column
- rename(
- retEvi = retrieval.evidence,
- time = time..ms.)
- dataRetEviDelay = read_csv(paste(paste0(dataDir, "N39_perm_trained_N57_repo_0to2000_to_stimLocked_500to2500in2000ms_whole_brain_allFreqs_retEvi_TaskXSetSize.csv"))) %>%
- select(-1) %>% # remove this X column
- rename(
- retEvi = `retrieval evidence`,
- time = `time (ms)`,
- setSize = `set size`)
- ## memory task only
- memoDelayDF = dataRetEviDelay[dataRetEviDelay$task=="memory",] %>%
- select(-3,-4)
- dataCapLimit = read.csv(paste(paste0(dataDir,"N39_perm_trained_N57_repo_0to2000_to_stimLocked_500to2500in2000ms_whole_brain_allFreqs_accuracy_SetSize.csv", sep=""))) %>%
- select(-X) %>% # remove this X column
- rename(
- setSize = set.size,
- capGroup = capacity.group)
- # response-locked data
- dataRespANOVA = read.csv(paste(paste0(dataDir,"N39_perm_trained_N57_repo_0to2000_to_respLocked_-500to500in100ms_whole_brain_allFreqs_retEvi_Task.csv", sep=""))) %>%
- select(-X) %>% # remove this X column
- rename(
- retEvi = retrieval.evidence,
- time = time..ms.)
- ```
- # ANOVAs
- ## 1x4 rmANOVA
- To examine the effect of set size on reaction time on perceptual trials, we conducted a one-way repeated-measures ANOVA with factors of set size (1, 2, 4, 6) as the IV and reaction time as the DV.
- To examine the effect of set size on response accuracy on memory trials, we conducted a one-way repeated-measures ANOVA with factors of set size (1, 2, 4, 6) as the IV and response accuracy as the DV.
- ### Analysis
- ```{r}
- # 1 x 4 ANOVA (perception)
- model = aov(rt ~ setSize + Error(subject/(setSize)), data=percDF)
- es_res = effectsize::eta_squared(model)
- summary(model)
- FACTOR = 2
- pval = summary(model)[[FACTOR]][[1]]['Pr(>F)'][[1]][[1]]
- factor_df = summary(model)[[FACTOR]][[1]]['Df'][[1]][[1]]
- resid_df = summary(model)[[FACTOR]][[1]]['Df'][[1]][[2]]
- f_stat = round(summary(model)[[FACTOR]][[1]]['F value'][[1]][[1]],4)
- pval_round = round(pval,4)
- # partial eta sq is one "off" because there's no eta for the subjects factor
- part_eta_sq = round(es_res$Eta2_partial,4)[FACTOR-1]
- print('Main effect of set size (perception trials)')
- print(glue("F({factor_df},{resid_df}) = {f_stat}; p = {pval_round}; pEta2 = {part_eta_sq}"))
- # 1 x 4 ANOVA (memory)
- model = aov(accuracy ~ setSize + Error(subject/(setSize)), data=memoDF)
- es_res = effectsize::eta_squared(model)
- summary(model)
- FACTOR = 2
- pval = summary(model)[[FACTOR]][[1]]['Pr(>F)'][[1]][[1]]
- factor_df = summary(model)[[FACTOR]][[1]]['Df'][[1]][[1]]
- resid_df = summary(model)[[FACTOR]][[1]]['Df'][[1]][[2]]
- f_stat = round(summary(model)[[FACTOR]][[1]]['F value'][[1]][[1]],4)
- pval_round = round(pval,4)
- # partial eta sq is one "off" because there's no eta for the subjects factor
- part_eta_sq = round(es_res$Eta2_partial,4)[FACTOR-1]
- print('Main effect of set size (memory trials)')
- print(glue("F({factor_df},{resid_df}) = {f_stat}; p = {pval_round}; pEta2 = {part_eta_sq}"))
- ```
- ### M & SD
- (if the interaction is significant, report the means and SDs of each of the four conditions)
- ```{r}
- perc_ss1 = percDF %>%
- filter(setSize==1)
- perc_ss2 = percDF %>% # perc_ss2 and perc_ss4 NS for post-hoc
- filter(setSize==2)
- perc_ss4 = percDF %>%
- filter(setSize==4)
- perc_ss6 = percDF %>%
- filter(setSize==6)
- # ----- perception: set size 1 ----- #
- muF1L1_F2L1 = round(mean(perc_ss1$rt),4)
- sdF1L1_F2L1 = round(sd(perc_ss1$rt),4)
- print(paste('perception: set size 1 mu = ',muF1L1_F2L1))
- print(paste('perception: set size 1 sd = ',sdF1L1_F2L1))
- # ----- perception: set size 2 ----- #
- muF1L1_F2L2 = round(mean(perc_ss2$rt),4)
- sdF1L1_F2L2 = round(sd(perc_ss2$rt),4)
- print(paste('perception: set size 2 mu = ',muF1L1_F2L2))
- print(paste('perception: set size 2 sd = ',sdF1L1_F2L2))
- # ----- perception: set size 4 ----- #
- muF1L2_F2L1 = round(mean(perc_ss4$rt),4)
- sdF1L2_F2L1 = round(sd(perc_ss4$rt),4)
- print(paste('perception: set size 4 mu = ',muF1L2_F2L1))
- print(paste('perception: set size 4 sd = ',sdF1L2_F2L1))
- # ----- perception: set size 6 ----- #
- muF1L2_F2L2 = round(mean(perc_ss6$rt),4)
- sdF1L2_F2L2 = round(sd(perc_ss6$rt),4)
- print(paste('perception: set size 6 mu = ',muF1L2_F2L2))
- print(paste('perception: set size 6 sd = ',sdF1L2_F2L2))
- # memory
- memo_ss1 = memoDF %>% # memo_ss1 and memo_ss2 NS for post-hoc
- filter(setSize==1)
- memo_ss2 = memoDF %>%
- filter(setSize==2)
- memo_ss4 = memoDF %>%
- filter(setSize==4)
- memo_ss6 = memoDF %>%
- filter(setSize==6)
- # ----- memory: set size 1 ----- #
- muF1L1_F2L1 = round(mean(memo_ss1$accuracy),4)
- sdF1L1_F2L1 = round(sd(memo_ss1$accuracy),4)
- print(paste('memory: set size 1 mu = ',muF1L1_F2L1))
- print(paste('memory: set size 1 sd = ',sdF1L1_F2L1))
- # ----- memory: set size 2 ----- #
- muF1L1_F2L2 = round(mean(memo_ss2$accuracy),4)
- sdF1L1_F2L2 = round(sd(memo_ss2$accuracy),4)
- print(paste('memory: set size 2 mu = ',muF1L1_F2L2))
- print(paste('memory: set size 2 sd = ',sdF1L1_F2L2))
- # ----- memory: set size 4 ----- #
- muF1L2_F2L1 = round(mean(memo_ss4$accuracy),4)
- sdF1L2_F2L1 = round(sd(memo_ss4$accuracy),4)
- print(paste('memory: set size 4 mu = ',muF1L2_F2L1))
- print(paste('memory: set size 4 sd = ',sdF1L2_F2L1))
- # ----- memory: set size 6 ----- #
- muF1L2_F2L2 = round(mean(memo_ss6$accuracy),4)
- sdF1L2_F2L2 = round(sd(memo_ss6$accuracy),4)
- print(paste('memory: set size 6 mu = ',muF1L2_F2L2))
- print(paste('memory: set size 6 sd = ',sdF1L2_F2L2))
- ```
- ## 2x35 rmANOVA
- We expect to find a significant main effect of time and a significant interaction between task and time. We expect a decrease in memory state evidence (reflecting encoding state engagement) during the display phase and an increase in memory state evidence (reflecting retrieval state engagement) during the delay phase, the latter of which will be larger for memory compared to perception trials.
- ### Analysis (task)
- ```{r}
- model = aov(retEvi ~ task*time + Error(subject/(task*time)), data=dataStimANOVA)
- es_res = effectsize::eta_squared(model)
- summary(model)
- # task
- FACTOR = 2
- pval = summary(model)[[FACTOR]][[1]]['Pr(>F)'][[1]][[1]]
- factor_df = summary(model)[[FACTOR]][[1]]['Df'][[1]][[1]]
- resid_df = summary(model)[[FACTOR]][[1]]['Df'][[1]][[2]]
- f_stat = round(summary(model)[[FACTOR]][[1]]['F value'][[1]][[1]],4)
- pval_round = round(pval,4)
- # partial eta sq is one "off" because there's no eta for the subjects factor
- part_eta_sq = round(es_res$Eta2_partial,4)[FACTOR-1]
- print('Main effect of task:')
- print(glue("F({factor_df},{resid_df}) = {f_stat}; p = {pval_round}; pEta2 = {part_eta_sq}"))
- # time
- FACTOR = 3
- pval = summary(model)[[FACTOR]][[1]]['Pr(>F)'][[1]][[1]]
- factor_df = summary(model)[[FACTOR]][[1]]['Df'][[1]][[1]]
- resid_df = summary(model)[[FACTOR]][[1]]['Df'][[1]][[2]]
- f_stat = round(summary(model)[[FACTOR]][[1]]['F value'][[1]][[1]],4)
- pval_round = round(pval,4)
- # partial eta sq is one "off" because there's no eta for the subjects factor
- part_eta_sq = round(es_res$Eta2_partial,4)[FACTOR-1]
- print('Main effect of time:')
- print(glue("F({factor_df},{resid_df}) = {f_stat}; p = {pval_round}; pEta2 = {part_eta_sq}"))
- # task:time
- FACTOR = 4
- pval = summary(model)[[FACTOR]][[1]]['Pr(>F)'][[1]][[1]]
- factor_df = summary(model)[[FACTOR]][[1]]['Df'][[1]][[1]]
- resid_df = summary(model)[[FACTOR]][[1]]['Df'][[1]][[2]]
- f_stat = round(summary(model)[[FACTOR]][[1]]['F value'][[1]][[1]],4)
- pval_round = round(pval,4)
- # partial eta sq is one "off" because there's no eta for the subjects factor
- part_eta_sq = round(es_res$Eta2_partial,4)[FACTOR-1]
- print('Interaction between task and time:')
- print(glue("F({factor_df},{resid_df}) = {f_stat}; p = {pval_round}; pEta2 = {part_eta_sq}"))
- ```
- ## 2x10 rmANOVA
- We will assess response-locked memory state evidence during the response interval of each task which will provide insights into the extent to which the retrieval state is modulated by decision making. There are two alternative outcomes:
- - First, to the extent that the retrieval state is recruited for any decision, we should find a gradual increase in memory state evidence (indicating greater retrieval state engagement) leading up to the response on both memory and perception trials.
- - Alternatively, to the extent that the retrieval state is specifically recruited for a decision based on internal, rather than external, information, we should find a gradual increase in memory state evidence leading up to the response selectively for memory trials.
- We expect to find a significant main effect of time and a significant interaction between task and time.
- ### Analysis
- ```{r}
- model = aov(retEvi ~ task*time + Error(subject/(task*time)), data=dataRespANOVA)
- es_res = effectsize::eta_squared(model)
- summary(model)
- # task
- FACTOR = 2
- pval = summary(model)[[FACTOR]][[1]]['Pr(>F)'][[1]][[1]]
- factor_df = summary(model)[[FACTOR]][[1]]['Df'][[1]][[1]]
- resid_df = summary(model)[[FACTOR]][[1]]['Df'][[1]][[2]]
- f_stat = round(summary(model)[[FACTOR]][[1]]['F value'][[1]][[1]],4)
- pval_round = round(pval,4)
- # partial eta sq is one "off" because there's no eta for the subjects factor
- part_eta_sq = round(es_res$Eta2_partial,4)[FACTOR-1]
- print('Main effect of tas:')
- print(glue("F({factor_df},{resid_df}) = {f_stat}; p = {pval_round}; pEta2 = {part_eta_sq}"))
- # time
- FACTOR = 3
- pval = summary(model)[[FACTOR]][[1]]['Pr(>F)'][[1]][[1]]
- factor_df = summary(model)[[FACTOR]][[1]]['Df'][[1]][[1]]
- resid_df = summary(model)[[FACTOR]][[1]]['Df'][[1]][[2]]
- f_stat = round(summary(model)[[FACTOR]][[1]]['F value'][[1]][[1]],4)
- pval_round = round(pval,4)
- # partial eta sq is one "off" because there's no eta for the subjects factor
- part_eta_sq = round(es_res$Eta2_partial,4)[FACTOR-1]
- print('Main effect of time:')
- print(glue("F({factor_df},{resid_df}) = {f_stat}; p = {pval_round}; pEta2 = {part_eta_sq}"))
- # task:time
- FACTOR = 4
- pval = summary(model)[[FACTOR]][[1]]['Pr(>F)'][[1]][[1]]
- factor_df = summary(model)[[FACTOR]][[1]]['Df'][[1]][[1]]
- resid_df = summary(model)[[FACTOR]][[1]]['Df'][[1]][[2]]
- f_stat = round(summary(model)[[FACTOR]][[1]]['F value'][[1]][[1]],4)
- pval_round = round(pval,4)
- # partial eta sq is one "off" because there's no eta for the subjects factor
- part_eta_sq = round(es_res$Eta2_partial,4)[FACTOR-1]
- print('Interaction between task and time:')
- print(glue("F({factor_df},{resid_df}) = {f_stat}; p = {pval_round}; pEta2 = {part_eta_sq}"))
- ```
- ### Post-hoc t-tests
- (if interaction is significant, perform post-hoc tests on specific conditions)
- Because we anticipate a pre-response dissociation between memory and perception responses, we will conduct post-hoc analyses on the pre-response (-500 to 0 ms) time interval.
- ```{r}
- # define pre-response time interval bins
- bins = seq(-500, -100, by = 100) # 100 ms intervals from 500 ms pre-response to 0 ms response
- time_order = paste0(bins, "to", bins + 100)
- # average across pre-response bins
- preResp = dataRespANOVA %>%
- filter(time %in% time_order) %>%
- group_by(subject, task) %>%
- summarise(muRetEvi = mean(retEvi))
- # separate by task
- percPreResp = preResp[preResp$task == "perception",]
- memoPreResp = preResp[preResp$task == "memory",]
- # compare F1L1_F2L1 to F1L1_F2L2
- res = t.test(memoPreResp$muRetEvi,percPreResp$muRetEvi,paired=TRUE)
- t_val = round(res$statistic[[1]],4)
- p_val = round(res$p.value[[1]],4)
- CI1 = round(res$conf.int[[1]],4)
- CI2 = round(res$conf.int[[2]],4)
- # cohen's d
- M1 = mean(memoPreResp$muRetEvi)
- S1 = sd(memoPreResp$muRetEvi)
- M2 = mean(percPreResp$muRetEvi)
- S2 = sd(percPreResp$muRetEvi)
- Spooled = sqrt(((S1^2)+(S2^2))/2)
- cohD = round((M1-M2)/Spooled,4)
- print(glue('Memory vs. Perception: t = {t_val}; p = {p_val}; d = {cohD}, CI = [{CI1},{CI2}]'))
- print(paste('memory: mu = ',M1))
- print(paste('memory: sd = ',S1))
- print(paste('perception: mu = ',M2))
- print(paste('perception: sd = ',S2))
- ```
- # Resub
- ## Bayes factors
- ### Regressions
- ```{r}
- # DISPLAY: MEMORY STATE EVIDENCE & MEMORY ACCURACY (LOGISTIC REGRESSION)
- retEviReg_display = read.csv(paste(paste(dataDir,"N", N,"_perm_trained_N57_repo_0to2000_to_stimLocked_0to500in500ms_whole_brain_allFreqs_retEvi_Display_Reg.csv", sep="")))
- statData = retEviReg_display %>%
- filter(task == 'memory')
- # Means and SDs
- M = round(mean(statData$beta),4)
- S = round(sd(statData$beta),4)
- print(glue('display (memory): M = {M}, SD = {S}'))
- res = t.test(statData$beta,mu=0)
- df = nrow(statData) - 1
- t_val = round(res$statistic[[1]],4)
- p_val = round(res$p.value[[1]],4)
- bf = ttestBF(x = statData$beta,mu=0)
- bf = extractBF(bf)
- # You know that people don't always want to print things directly to the console. Right? Right?!?!?!
- bf = round(bf$bf,4)
- # Cohen's d
- cohD = round(M/S,4)
- print(glue('vs 0: t({df}) = {t_val}; p = {p_val}; d = {cohD}, BF = {bf}'))
- # DELAY: MEMORY STATE EVIDENCE & ACCURACY PER SET SIZE (LOGISTIC REGRESSION)
- retEviReg_delay = read.csv(paste(paste(dataDir,"N", N,"_perm_trained_N57_repo_0to2000_to_stimLocked_500to2500in2000ms_whole_brain_allFreqs_retEvi_Delay_Reg_perSetSize.csv", sep="")))
- statData = retEviReg_delay %>%
- group_by(subject) %>%
- summarise(beta = mean(beta), .groups = "drop")
- # Means and SDs
- M = round(mean(statData$beta),4)
- S = round(sd(statData$beta),4)
- print(glue('delay (memory): M = {M}, SD = {S}'))
- res = t.test(statData$beta,mu=0)
- df = nrow(statData) - 1
- t_val = round(res$statistic[[1]],4)
- p_val = round(res$p.value[[1]],4)
- bf = ttestBF(x = statData$beta,mu=0)
- bf = extractBF(bf)
- bf = round(bf$bf,4)
- # Cohen's d
- cohD = round(M/S,4)
- print(glue('vs 0: t({df}) = {t_val}; p = {p_val}; d = {cohD}, BF = {bf}'))
- # DELAY: MEMORY STATE EVIDENCE & PERCEPTION RT (LINEAR REGRESSION)
- retEviReg_delay_perc = read.csv(paste(paste(dataDir,"N", N,"_perm_trained_N57_repo_0to2000_to_stimLocked_500to2500in2000ms_whole_brain_allFreqs_retEvi_Delay_Reg_SetSize.csv", sep="")))
- statData = retEviReg_delay_perc %>%
- filter(task == 'perception')
- # Means and SDs
- M = round(mean(statData$beta),4)
- S = round(sd(statData$beta),4)
- print(glue('delay (perception): M = {M}, SD = {S}'))
- res = t.test(statData$beta,mu=0)
- df = nrow(statData) - 1
- t_val = round(res$statistic[[1]],4)
- p_val = round(res$p.value[[1]],4)
- bf = ttestBF(x = statData$beta,mu=0)
- bf = extractBF(bf)
- bf = round(bf$bf,4)
- # Cohen's d
- cohD = round(M/S,4)
- print(glue('vs 0: t({df}) = {t_val}; p = {p_val}; d = {cohD}, BF = {bf}'))
- ```
- ### Hits vs CRs
- ```{r}
- # basically turning the python code in perm_stats.py to R here, so going a little against the template. sorry, nicole!
- # read in data
- retEviResponse = read.csv(paste(paste(dataDir,"N", N,"_perm_trained_N57_repo_0to2000_to_respLocked_-500to500in100ms_whole_brain_allFreqs_retEvi_Memory_Response.csv", sep="")))
- bins = seq(-500, -100, by = 100)
- preResponse = paste0(bins, "to", bins + 100)
- responseDF <- retEviResponse %>%
- filter(task == "memory",
- response %in% c("hit", "cr"),
- time..ms. %in% preResponse) %>% # this is ugly but keeping it like this since we only need the BF anyway
- group_by(subject, response) %>%
- summarise(retrieval.evidence = mean(retrieval.evidence, na.rm = TRUE), .groups = "drop")
- responseDF <- responseDF %>%
- pivot_wider(names_from = response, values_from = retrieval.evidence)
- hitRetEvi = responseDF$hit
- crRetEvi = responseDF$cr
- res = t.test(hitRetEvi, crRetEvi, paired = TRUE)
- df = res$parameter
- t_val = round(res$statistic, 4)
- p_val = round(res$p.value, 4)
- # cohen's d (for paired: mean of difference scores / sd of difference scores)
- diff = hitRetEvi - crRetEvi
- cohD = round(mean(diff) / sd(diff), 4)
- print(paste0("Hit mean: ", round(mean(hitRetEvi), 4)))
- print(paste0("Hit sd: ", round(sd(hitRetEvi), 4)))
- print(paste0("CR mean: ", round(mean(crRetEvi), 4)))
- print(paste0("CR sd: ", round(sd(crRetEvi), 4)))
- print(glue('Hit vs CR: t({df}) = {t_val}; p = {p_val}; BF = {bf}'))
- ```
permStats.Rmd, no license · at the source
Overview
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 11 matches between paragraphs and lines of code.
OSF m6knv
Availability: 1 check, the latest on 27 September 2026: the link answers (HTTP 200)
- 27 September 2026: the link answers (HTTP 200)
26 files
- codes/
anaCodes/ , Python, 100 linesWICAhelpers.py - codes/
anaCodes/ , Python, 220 linesaddStatsFigs.py - codes/
anaCodes/ , Python, 100 linescalcFDR.py - codes/
anaCodes/ , Python, 413 lines, 1 matchconfig.py - codes/
anaCodes/ , Python, 70 linesconfigWICA.py - codes/
anaCodes/ , Python, 281 lines, 1 matcheegPrepro.py - codes/
anaCodes/ , Python, 152 lineseegPrepro_WICA.py - codes/
anaCodes/ , Python, 15 linesgetColorGradient.py - codes/
anaCodes/ , Python, 135 linesneural_vs_beh_scatterplo ts.py - codes/
anaCodes/ , R, 497 lines, 4 matchespermStats.Rmd - codes/
anaCodes/ , Python, 172 linesperm_eeg_behAna.py - codes/
anaCodes/ , Python, 206 linesperm_figs_behAna.py - codes/
anaCodes/ , Python, 104 linesperm_figs_memState.py - codes/
anaCodes/ , Python, 147 linesperm_figs_memState_delay .py - codes/
anaCodes/ , Python, 147 linesperm_figs_memState_displ ay.py - codes/
anaCodes/ , Python, 158 linesperm_figs_memState_respo nse.py - codes/
anaCodes/ , Python, 474 lines, 1 matchperm_group_memState.py - codes/
anaCodes/ , Python, 473 lines, 1 matchperm_stats.py - codes/
anaCodes/ , Python, 21 linesser_eegPrepro.py - codes/
anaCodes/ , Python, 49 linesser_mvpa.py - codes/
anaCodes/ , Python, 21 linesser_spectralAna.py - codes/
anaCodes/ , Python, 28 linesser_zpowerAna.py - codes/
anaCodes/ , Python, 5 linessubjList.py - codes/
anaCodes/ , Python, 98 lines, 1 matchzpowerAna.py - codes/
expCodes/ , Python, 57 linesconfig.py - codes/
expCodes/ , Python, 586 lines, 2 matchesperm.py
longtermmemorylab.com/papers
Availability: 1 check, the latest on 27 September 2026: the link answers (HTTP 200)
- 27 September 2026: the link answers (HTTP 200)
The paper's code and data availability statement is in the Data section.
Tracing map
Proposed by the machine: these links were found in the paper and verified at the source, without human review. The map will receive a Zenodo DOI once one of the paper's authors has validated it with their ORCID.
What the map holds:
- 2 repositories of the authors' code, each at its verified commit, with its license and how the link was found in the paper;
- 26 scripts, each with its path and the digest of its content;
- 11 matches between paragraphs of the paper and lines of the code (method lexical-v1);
- neither the text of the paper nor the code itself.
Its JSON (tracing-map.json) is deposited on Zenodo with its DOI once the map is validated.
Data
No dataset and no data link were found in the paper.
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 the authors' code: longtermmemorylab.com/
papers
Read it in the paper: doi.org/10.1016/j.isci.2026.117285.
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 2, 28 September 2026
- Authors: added DT Nguyen (0009-0007-8321-2277); Nicole M Long (0000-0003-3766-2764); removed DT Nguyen; Nicole M Long
Version 1, 27 September 2026: the first record
Recorded: type, language, journal, volume, issue, pages, dates, 2 authors, 7 keywords, 2 funders, 98 references, 2 RRIDs.
Cite
This paper
Nguyen, D., & Long, N. M. (2026). Working memory demands modulate memory brain state engagement. iScience, 29(9), 117285. https://
BibTeX
@article{nguyen2026worki
author = {Nguyen, DT and Long, Nicole M},
title = {{Working memory demands modulate memory brain state engagement}},
journal = {iScience},
year = {2026},
month = aug,
volume = {29},
number = {9},
pages = {117285},
publisher = {Elsevier},
issn = {2589-0042},
doi = {10.1016/
url = {https://
pmid = {42699593},
pmcid = {PMC13543892}
}
RIS
TY - JOUR
AU - Nguyen, DT
AU - Long, Nicole M
TI - Working memory demands modulate memory brain state engagement
T2 - iScience
J2 - iScience
PY - 2026
DA - 2026/
VL - 29
IS - 9
SP - 117285
SN - 2589-0042
PB - Elsevier
DO - 10.1016/
UR - https://
LA - en
ER -
CSL-JSON
{
"id": "10.1016/
"type": "article-journal",
"title": "Working memory demands modulate memory brain state engagement",
"container-title": "iScience",
"author": [
{
"family": "Nguyen",
"given": "DT"
},
{
"family": "Long",
"given": "Nicole M"
}
],
"container-title-short":
"volume": "29",
"issue": "9",
"page": "117285",
"DOI": "10.1016/
"PMID": "42699593",
"PMCID": "PMC13543892",
"ISSN": "2589-0042",
"publisher": "Elsevier",
"URL": "https://
"language": "en",
"issued": {
"date-parts": [
[
2026,
8,
25
]
]
}
}
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.1523/eneuro.0076-26.2026 [code]
- Exogenously Driven Neural Reactivation of Spatially Matching Visual Working-Memory Contents.Journal: eNeuroIn common: BayesFactor, PsychoPy, emmeans, 5 other tools, EEG, cognitive, 2 references
- [2] doi:10.1038/s41597-026-07350-9 [code]
- An open multi-center MEG-EEG dataset for studying conscious visual perception.Journal: Scientific dataIn common: BayesFactor, easystats, emmeans, 8 other tools, EEG
- [3] doi:10.1093/nc/niag029 [code]
- A data-driven approach to identifying and evaluating connectivity-based neural correlates of conscious visual perception.Journal: Neuroscience of consciousnessIn common: BayesFactor, easystats, emmeans, 8 other tools, cognitive
- [4] doi:10.34133/csbj.0042 [code]
- Using Steady-State Visual Evoked Potentials to Characterize Wide-Ranging Retinopathy Linked to &
lt;i& gt;CRB1& lt;/ i& gt;: Implications for Clinical Trials. Journal: Computational and structural biotechnology journalIn common: PsychoPy, easystats, emmeans, 8 other tools, EEG - [5] doi:10.1038/s41597-026-07377-y [code]
- An open-access multi-site fMRI dataset for investigating conscious visual perception.Journal: Scientific dataIn common: BayesFactor, easystats, emmeans, 8 other tools
- [6] doi:10.1038/s41467-026-73865-9 [code]
- Histamine shapes the neurocomputational dynamics of human learning.Journal: Nature communicationsIn common: BayesFactor, PsychoPy, easystats, 7 other tools, cognitive
- [7] doi:10.1167/jov.26.8.4 [code]
- The neural processes of illusory occlusion in object recognition.Journal: Journal of visionIn common: BayesFactor, PsychoPy, MNE-Python, 6 other tools, EEG, cognitive
- [8] doi:10.1093/cercor/bhag113 [code]
- Long-term reliability and stability of parameterized resting state EEG: evidence from a five-year follow-up.Journal: Cerebral cortex (New York, N.Y. : 1991)In common: easystats, emmeans, MNE-Python, 6 other tools, EEG, 1 reference
- [9] 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 AmericaIn common: PsychoPy, easystats, emmeans, 5 other tools, cognitive, 1 reference
- [10] doi:10.1038/s41598-026-41129-7 [code]
- Non-linear relationships between auditory mismatch responses and the inharmonicity of complex sounds.Journal: Scientific reportsIn common: PsychoPy, emmeans, MNE-Python, 6 other tools, EEG, cognitive
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, 26 scripts, and 11 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:60eb0851300597c2…
Add the badge to its README
The badge links the code to this page. Copy one of these into the README of the paper's code: only you decide where it goes, and nothing is changed for you.
Markdown
[.
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.
