OSCR

Ramping-up hippocampal ripples and their neocortical coupling support human visual short-term memory.

Code ↔ Paper

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

11 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 13 matches
  1. [1] § Methods › Ripple detection and peri-ripple spectral analysis ↔ Norman_matlab_scripts.zip/analysis--sharp_wave_ripple_detection/extract_swr_events_final_method.m, lines 79 to 206 · score 0.96 · ripple detection threshold, ripple band amplitude, Kaiser windowed, FIR filter, squared amplitude, 70–180 Hz · block oscr:b:C0ZK2PMYCC61E-V · Report a mismatch
  2. [2] § Methods › Ripple detection and peri-ripple spectral analysis ↔ Norman_matlab_scripts.zip/additional_subscripts_and_helper_functions/compute_HFB_using_Hilbert.m, lines 7 to 42 · score 0.80 · FIR filter, Hilbert transform, iEEG, transition, Hamming, phase · block oscr:b:AK1ZJDBCR0YXJ-W · Report a mismatch
  3. [3] § Methods › Ripple detection and peri-ripple spectral analysis ↔ Norman_matlab_scripts.zip/analysis--sharp_wave_ripple_detection/extract_swr_events_final_method.m, lines 79 to 206 · score 0.77 · Hilbert envelope, ripple detection, raw signal, bandpass, filtered, amplitude · block oscr:b:C0ZK2PMYCC61E-V · Report a mismatch
  4. [4] § Methods › Coupled ripple analysis ↔ figure4b.m, lines 103 to 241 · score 0.60 · surrogate locked, HPC ripple locked, LTL ripple rate, permutation, Cluster, scored · block oscr:b:322MA8413PJX5-U · Report a mismatch
  5. [5] § Methods › Coupled ripple analysis ↔ figure4c_coupled_ripple_contrasts.m, lines 136 to 277 · score 0.60 · surrogate locked, HPC ripple locked, LTL ripple rate, permutation, Coupled, Cluster · block oscr:b:NH5XQTDKK2QZW-E · Report a mismatch
  6. [6] § Methods › Ripple detection and peri-ripple spectral analysis ↔ Norman_matlab_scripts.zip/analysis--ripple_triggered_wavelet_spectrogram/compute_ripple_triggered_wavelet_spectrogram.m, lines 1 to 58 · score 0.58 · iEEG, peri ripple, wavelets, spectrograms, peak, channel · block oscr:b:3SA1AC4J61BCS-Z · Report a mismatch
  7. [7] § Methods › Ripple detection and peri-ripple spectral analysis ↔ Norman_matlab_scripts.zip/analysis--sharp_wave_ripple_detection/ripples_detection_excluding_IED.m, lines 2 to 58 · score 0.58 · ripple detection, envelope, bandpass, Hilbert, raw, amplitude · block oscr:b:T9PDSRT1D93DJ-D · Report a mismatch
  8. [8] § Results › Ramping-up HPC ripples during maintenance supports successful VSTM ↔ figure2_lme_stage_avg_contrast_trial.R, lines 109 to 194 · score 0.54 · linear mixed, LTL channels, LTL ripple rates, axis, predicting, model · block oscr:b:8NBJX6X0JHNNX-4 · Report a mismatch
  9. [9] § Results › Ramping-up HPC ripples during maintenance supports successful VSTM ↔ figure3_lme_ramping_up_trial_RF.R, lines 46 to 96 · score 0.53 · Post hoc, remembered trials, forgotten trials, GLMM, forget, ramping · block oscr:b:0MHBZQ20WFA08-C · Report a mismatch
  10. [10] § Methods › Analysis of ripple rate changes and cluster-based permutation test ↔ figure2_lme_stage_avg_contrast_trial.R, lines 1 to 41 · score 0.53 · post hoc, emmeans, baseline, encoding, retrieval, channel · block oscr:b:5YY3QE8ZMRW8C-2 · Report a mismatch
  11. [11] § Methods › Channel localization ↔ Norman_matlab_scripts.zip/anatomical_subroutines/measureDistanceToCorticalRibboniElvis.m, lines 1 to 52 · score 0.51 · FreeSurfer, cortical, Anatomical, locations, electrode, channel · block oscr:b:DGS6V3ZTB2ZSR-R · Report a mismatch
  12. [12] § Methods › Ramping-up effects analysis ↔ Norman_matlab_scripts.zip/analysis--ripple_rate_and_PETH/Ripple_rate_by_memory_age.m, lines 197 to 316 · score 0.51 · post hoc, FDR corrected, models, memory · block oscr:b:GYG79GC41ZKJD-C · Report a mismatch
  13. [13] § Results › HPC ripple rates during the VSTM task ↔ Norman_matlab_scripts.zip/additional_subscripts_and_helper_functions/compute_HFB_using_Hilbert.m, lines 7 to 42 · score 0.51 · Hilbert transform, iEEG, filtered, raw, amplitude, 70 Hz · block oscr:b:AK1ZJDBCR0YXJ-W · 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

MATLAB · 326 lines · 16 KB · no license · 2 matches

  1. % SWR detection main script.
  2. % detects ripples after exclusion of electrical & muscular artifacts, IED and pathological HFOs (optional).
  3. %
  4. % Author: Yitzhak Norman, 2019, Malach Lab @ Weizmann Institute
  5. close all;
  6. clear all;
  7. clc; warning('off');
  8. % set the relevant path:
  9. [parentfolder,path_to_toolboxes] = defineParentFolderAndPath;
  10. % Set Path:
  11. addpath(fullfile(path_to_toolboxes,'eeglab14_1_2b'));
  12. rmpath(genpath(fullfile(path_to_toolboxes,'chronux_2_12'))); %这是什么工具包
  13. addpath(genpath(fullfile(parentfolder,'matlab_scripts')));
  14. % load eeglab:
  15. [ALLEEG, EEG, CURRENTSET] = eeglab;
  16. subjects={'SUB01','SUB02','SUB03','SUB04','SUB05','SUB06','SUB07','SUB08','SUB09','SUB10',...
  17. 'SUB11','SUB12','SUB13','SUB14','SUB15','SUB16','SUB17','SUB18','SUB19','SUB20'};
  18. % Load data:
  19. for subjid=subjects(1)
  20. subjid=cell2mat(subjid);
  21. clearvars -except subjects subjid run ALLEEG EEG HFOepoches HFOch parentfolder path_to_toolboxes
  22. ALLEEG=[]; EEG=[]; CURRENTSET=1;
  23. HFOepoches = {}; HFOch = {};
  24. RIPPLES = [];
  25. % Set Path:
  26. warning('off','all')
  27. scenario = 'task';
  28. maindir = fullfile(parentfolder,subjid);
  29. CURRENTSET=1;
  30. % Set relevant filenames and folders:
  31. ref_flag=2; % 1 = Common Ref; 2 = Bipolar montage; 3 = Robust Common ref
  32. switch ref_flag
  33. case 1
  34. datadir=[maindir '\EEGLAB_datasets'];
  35. file_ending='_preprocessed.set';
  36. case 2
  37. datadir=[maindir '\EEGLAB_datasets_BP'];
  38. file_ending='_preprocessed_BP_montage.set';
  39. end
  40. % Load EEGLAB datasets:
  41. cd(datadir);
  42. filenames=dir(['*' scenario '*.set']);
  43. for SET=1:numel(filenames)
  44. filename=filenames(SET).name;
  45. [EEG] = pop_loadset('filename', filename);
  46. [ALLEEG EEG CURRENTSET] = pop_newset(ALLEEG, EEG, CURRENTSET);
  47. eeglab redraw;
  48. end
  49. %% Defining Hippocampus:
  50. set_figure_colors;
  51. [hippocampus,hippocampus_all_channels,WM_ref] = define_hippocampal_channels(subjid,ref_flag); % hippocampal CA1/Sub channel for ripple detection
  52. ripples = [];
  53. for current_hippocampus = hippocampus_all_channels
  54. cnum1=find(strcmpi({EEG.chanlocs.labels},current_hippocampus)); % CA1 channel, identified anatomically
  55. cnum2=find(strcmpi({EEG.chanlocs.labels},'CREF')); % common ref. channel
  56. channel=EEG.chanlocs(cnum1).labels;
  57. RIPPLES(end+1).channel = channel;
  58. % we use the averaged LFP across all good
  59. % channels (common ref) to perform control detection of ripples,
  60. % which allows to discard muscular/electrical artifacts.
  61. if isempty(current_hippocampus)
  62. error('Missing hippocampal channel!')
  63. end
  64. %% Data normalization and epoching:
  65. %%%%% Ripple detection PARAMETERS %%%%%
  66. minDistance=0.030; % in sec
  67. minRippleDuration=0.020; % in sec [0.015]
  68. maxRippleDuration=0.200; % in sec
  69. % =================================================================
  70. th=[2 4]; % ripple detection thresholds (in std from the mean)
  71. ripple_band=[70 180]; % in Hz
  72. % note: correct for a transition bandwith of 5Hz (assuming forder is 166)
  73. % (expand the frequency band by +/- 5 Hz)
  74. IED_frequency_band=[25 60]; % in Hz
  75. LPcutoff=round(mean(ripple_band)/pi); % in Hz (see Stark et al. 2014)
  76. %LPcutoff=40; % in Hz (fixed size LP filter)
  77. Fs=EEG.srate; % in Hz
  78. forder_BP=330; % in samples
  79. wtype = 'hamming';
  80. warg = 5.653; % beta value, in case you choose Kaiser window
  81. % =================================================================
  82. % set output folder:
  83. outdir=fullfile(parentfolder,'Results','data',...
  84. sprintf('Ripple_times_%s_%d-%dstd_%d-%dHz_%dHz_%dms_%dms_ref%d',...
  85. wtype,th(1),th(2),ripple_band(1),ripple_band(2),LPcutoff,...
  86. minRippleDuration*1000,minDistance*1000,ref_flag),subjid); % ADJUST OUTDIR
  87. if ~exist(outdir,'dir')
  88. mkdir(outdir);
  89. disp('Creating Output Directory...')
  90. end
  91. for SET = 1:numel(ALLEEG)
  92. clear ripples avg stdev
  93. close all
  94. % Compute mean and std of ripple band amplitude across the entire run:
  95. [EEG_bandpass, ~,b] = pop_firws(ALLEEG(SET), 'fcutoff', ripple_band, 'ftype', 'bandpass', 'warg', warg, 'wtype', wtype, 'forder', forder_BP, 'minphase', 0);
  96. rawSignal = double(ALLEEG(SET).data(cnum1,:));
  97. BANDPASS = EEG_bandpass.data(cnum1,:);
  98. absSignal = double(abs(hilbert(BANDPASS))); % hilbert envelope
  99. HFOonsets = zeros(size(rawSignal)); % prepare timeseries for HFOs
  100. % Try to load HFOs onsets:
  101. HFOsdir = fullfile(parentfolder,'Results','data','HFOs',subjid);
  102. HFOfile = fullfile(HFOsdir,[subjid ' run ' num2str(SET) ' HFOs ' cell2mat(current_hippocampus) '.mat']);
  103. HFOs = [];
  104. HFOflag = 0; % activate this flag if you want to exclude SWR that coincide with pathological HFOs
  105. if exist(HFOfile,'file') && HFOflag, load(HFOfile); end
  106. if ~isempty(HFOs)
  107. for ii = 1:length(HFOs)
  108. [~,mn] = min(abs((ALLEEG(SET).times/ALLEEG(SET).srate)-HFOs(ii)));
  109. HFOonsets(mn)=1;
  110. end
  111. [ep,eplim] = epoch(rawSignal,HFOs,[-1.5 1.5],'srate',ALLEEG(SET).srate);
  112. if ~isempty(ep)
  113. ep = squeeze(ep);
  114. if size(ep,1)==1, ep = ep'; end
  115. HFOepoches = cat(1,HFOepoches,{ep});
  116. HFOch = cat(1,HFOch,[subjid '_' cell2mat(current_hippocampus)]);
  117. end
  118. end
  119. % Defining thr for clipping:
  120. [robustAvg,robustStdev] = robustMean(absSignal,2,th(2)); % option 1: robust mean and std used for clipping
  121. topLim=robustAvg+th(2)*robustStdev;
  122. %topLim = nanmean(absSignal)+th(2)*nanstd(absSignal); % option 2: mean & std
  123. %topLim = nanmedian(absSignal)+(th(2)/1.35)*iqr(absSignal); % option 3:median & IQR
  124. absSignal(absSignal>topLim) = topLim; % clipping the signal
  125. squaredSignal = absSignal.^2; % squared amplitude
  126. % Lowpass fliter:
  127. lpFilt = designfilt('lowpassfir','PassbandFrequency',LPcutoff, ...
  128. 'StopbandFrequency',LPcutoff+10,'PassbandRipple',0.001, ...
  129. 'StopbandAttenuation',60,'DesignMethod','kaiserwin','SampleRate',Fs);% (FIR kaiserwin lowpass filter)
  130. squaredSignal = filtfilt(lpFilt,double(squaredSignal));
  131. % Compute mean and std of the clipped & squared time series:
  132. avg = nanmean(squaredSignal);
  133. stdev = nanstd(squaredSignal,[],2);
  134. clear squaredSignal BANDPASS rawSignal robustStdev robustAvg
  135. close all
  136. EEG=ALLEEG(SET);
  137. EEG_BANDPASS_ripple = pop_firws(ALLEEG(SET), 'fcutoff', ripple_band, 'ftype', 'bandpass', 'warg', warg, 'wtype', wtype, 'forder', forder_BP, 'minphase', 0);
  138. EEG_BANDPASS_IED = pop_firws(ALLEEG(SET), 'fcutoff', IED_frequency_band, 'ftype', 'bandpass', 'warg', warg, 'wtype', wtype, 'forder', forder_BP, 'minphase', 0);
  139. BANDPASS_A = EEG_BANDPASS_ripple.data(cnum1,:);
  140. BANDPASS_B = EEG_BANDPASS_ripple.data(cnum2,:);
  141. BANDPASS_C = EEG_BANDPASS_IED.data(cnum1,:);
  142. strind = round(EEG.event(1).latency); % finds the first event (starting point)
  143. tail_correction = EEG.times(strind)./1000;
  144. %tail_correction = 5; % in Sec
  145. T=double(EEG.times./1000) - tail_correction; % in Sec
  146. % Hilbert envelope (rectification):
  147. absSignalA=double(abs(hilbert(BANDPASS_A)));
  148. absSignalB=double(abs(hilbert(BANDPASS_B)));
  149. absSignalC=double(abs(hilbert(BANDPASS_C)));
  150. % Squaring the signal:
  151. squaredSignalA = absSignalA.^2;
  152. squaredSignalB = absSignalB.^2;
  153. squaredSignalC = absSignalC.^2;
  154. % FIR filter (after squaring):
  155. squaredSignalA = filtfilt(lpFilt,double(squaredSignalA));
  156. squaredSignalB = filtfilt(lpFilt,double(squaredSignalB));
  157. squaredSignalC = filtfilt(lpFilt,double(squaredSignalC));
  158. % ZSCORE:
  159. squaredSignalNormA = (squaredSignalA-avg)/stdev; % z-score hippocampal ripple band amplitude
  160. squaredSignalNormB = (squaredSignalB-nanmean(squaredSignalB))/nanstd(squaredSignalB); % z-score "emg" signal (extracted from common average)
  161. squaredSignalNormC = (squaredSignalC-nanmean(squaredSignalC))/nanstd(squaredSignalC); % z-score hippocmapal channel - IED
  162. % Find ripples:
  163. [ripples,ripples_stat,rnoise] = ripples_detection_excluding_IED(squaredSignalNormA,BANDPASS_A,T,Fs,th,minDistance,...
  164. minRippleDuration,maxRippleDuration,squaredSignalNormB,squaredSignalNormC,HFOonsets);
  165. outfilename = [subjid ' run ' num2str(SET) ' ripples ' cell2mat(current_hippocampus)];
  166. eval([sprintf('t_run%d',SET) '=T;'])
  167. save(fullfile(outdir,outfilename),'ripples','ripples_stat',sprintf('t_run%d',SET))
  168. RIPPLES(end).swramp = mean(ripples.amplitude);
  169. RIPPLES(end).blavg = avg;
  170. RIPPLES(end).blstdev = stdev;
  171. RIPPLES(end).count = size(ripples,1);
  172. RIPPLES(end).rnoise = rnoise;
  173. %% Plot
  174. close all
  175. scenarioLabel=capitalize(sprintf('%s run %d',scenario,SET)); scenarioLabel(scenarioLabel=='_')=' ';
  176. H1=figure('Name',[subjid ' ' scenarioLabel ' ripples detection Ch ' channel],'position',[0 100 1000 300],'Color','w');
  177. hold on;
  178. title(['Ripples Detection - ' scenarioLabel ' (ripple band envelope)']);
  179. %h1 = plot(T,squaredSignalNormB,'linewidth',0.5,'color',[1,0.7,0.7]); hold on;
  180. h1 = plot(T,zscore(BANDPASS_A)+13,'linewidth',0.5,'color',[1,0.7,0.7]); hold on;
  181. h2 = plot(T,squaredSignalNormA,'k','Linesmoothing','on');
  182. h0 = plot(T,ones(size(T))*th(2),'b--','Linewidth',0.5);
  183. if ~isempty(ripples)
  184. h3=scatter(ripples.peak,ones(size(ripples,1),1)*-2,30,'yo','fill'); hold on
  185. end
  186. ylabel(sprintf('%d-%dHz Amplitude^2 (Z-score)',ripple_band(1),ripple_band(2)))
  187. xlim([T(1),T(end)])
  188. ylim([-2,18])
  189. set(gca,'ytick',[0:2:10])
  190. %legend([h2 h1 h3 h0],{'Ripple Band Amplitude (zscore)','CREF/noise','Ripple','Detection thr.'}); legend boxoff;
  191. legend([h2 h1 h3 h0],{'Ripple Band Amplitude^2 (zscore)','Ripple Band (A.U)','Ripple','Detection thr.'}); legend boxoff;
  192. xlim([190 210])
  193. set(gca,'xtick',190:5:210,'xticklabel',{0:5:20})
  194. %% plot detection exmple for Fig. 1:
  195. plotExampleFlag = 0; % change to true if you want to plot a representative ripple detection example
  196. if strcmpi(subjid,'SUB05') && strcmpi(current_hippocampus,hippocampus) && SET==1 && plotExampleFlag
  197. figure('name',sprintf('Detection example %s (%s)',subjid,hippocampus),'color','w','position',[0 0 350 180]);
  198. t1 = 372; t2 = 383; ytop = 15;
  199. subplot(2,1,1); hold on;
  200. h = plot(T,BANDPASS_A,'linewidth',0.5,'color','k'); hold on;
  201. ylabel(sprintf('%d-%dHz\n(muV)',ripple_band(1),ripple_band(2)))
  202. xlim([t1,t2]); ylim([-20 20])
  203. set(gca,'xtick',[],'xcolor','none')
  204. set_font_size_and_type;
  205. subplot(2,1,2); hold on;
  206. h1 = plot(T,squaredSignalNormA,'k','Linesmoothing','on');
  207. h0 = plot(T,ones(size(T))*th(2),'--','color',COLOR.red,'Linewidth',0.5);
  208. if ~isempty(ripples)
  209. h2=scatter(ripples.peak,ones(size(ripples,1),1)*ytop,25,'v','fill','markerfacecolor',COLOR.orange,'markeredgecolor',COLOR.black); hold on
  210. end
  211. ylabel(sprintf('Power\n(Z-score)'))
  212. xtck = [t1:5:t2];
  213. set(gca,'xlim',[t1,t2],'xtick',xtck,'XtickLabels',{xtck-t1},'ylim',[-2.5,ytop])
  214. xlabel('Time (s)')
  215. [h_leg,h_leg_icon] = legend([h1 h0 h2],{'ripple-band envelope','detection thr.','SWR'},'location','NorthWest');
  216. set(gca,'units','pixels');
  217. legpos = h_leg.Position;
  218. h_leg.Position = [legpos(1)*0.9 legpos(2)*1.02 legpos(3:4)];
  219. h = findobj(h_leg_icon,'type','line');
  220. for ii = 1:length(h)
  221. if length(h(ii).XData)==2
  222. h(ii).XData(1) = h(ii).XData(1) + 0.25*range(h(ii).XData);
  223. h(ii).LineWidth = 1;
  224. end
  225. end
  226. legend boxoff
  227. figdir=fullfile(outdir,'Detection_Figures','ripple_detection_example');
  228. if ~exist(figdir,'dir')
  229. mkdir(figdir);
  230. disp('Creating Output Directory...')
  231. end
  232. set(0,'DefaultAxesFontName', 'Arial')
  233. set_font_size_and_type;
  234. export_fig(fullfile(figdir,get(gcf,'name')),'-nocrop','-jpg','-r150','-transparent')
  235. export_fig(fullfile(figdir,get(gcf,'name')),'-nocrop','-pdf','-painters','-nofontswap','-transparent')
  236. end
  237. %% save figures;
  238. saveflag = 0;
  239. if saveflag
  240. figdir=fullfile(outdir,'Detection_Figures');
  241. if ~exist(figdir,'dir')
  242. mkdir(figdir);
  243. disp('Creating Output Directory...')
  244. end
  245. set(0,'DefaultAxesFontName', 'Arial')
  246. set(gcf,'renderer','painters')
  247. export_fig(fullfile(figdir,get(gcf,'name')),'-nocrop','-jpg','-r150','-transparent')
  248. export_fig(fullfile(figdir,get(gcf,'name')),'-nocrop','-pdf','-painters','-nofontswap','-transparent')
  249. end
  250. end
  251. end
  252. %% Find the channel with the strongest SNR: (this part is still in development...)
  253. % SNR = ripple power divided by the background ripple-band activity
  254. channels= {RIPPLES.channel};
  255. swramp = [RIPPLES.swramp];
  256. blavg = [RIPPLES.blavg];
  257. blstdev = [RIPPLES.blstdev];
  258. swrsnr = 10*log10(swramp./blavg); % SNR calculation
  259. %swrsnr = (swramp-blavg)./blstdev; % Cohen's d alternative
  260. %swrsnr = swramp./blstdev; % alternative SNR calculation
  261. figure('color','w','name',['compare ripples between electrodes ref ' num2str(ref_flag)],'position',[0 0 400 200]);
  262. subplot(1,2,1); hold on; superbar(1:numel(RIPPLES),swrsnr); axis square
  263. set(gca,'xtick',[1:numel(RIPPLES)],'xticklabel',{RIPPLES.channel})
  264. rotateXLabels(gca,45)
  265. ylabel('Ripple SNR (dB)')
  266. subplot(1,2,2); hold on; superbar(1:numel(RIPPLES),[RIPPLES.count]); axis square
  267. set(gca,'xtick',[1:numel(RIPPLES)],'xticklabel',{RIPPLES.channel})
  268. rotateXLabels(gca,45)
  269. ylabel('Ripple Count')
  270. [ampmax, indmax] = max(swrsnr);
  271. fprintf(' \n BEST RIPPLES SNR WAS FOUND IN CHANNEL: %s \n ', channels{indmax});
  272. suptitle(sprintf('BEST RIPPLES SNR WAS FOUND IN CHANNEL: %s', channels{indmax}));
  273. set_font_size_and_type;
  274. saveas(gcf,fullfile(outdir,get(gcf,'name')),'fig');
  275. export_fig(fullfile(outdir,get(gcf,'name')),'-nocrop','-jpg','-r150','-transparent')
  276. export_fig(fullfile(outdir,get(gcf,'name')),'-nocrop','-pdf','-painters','-nofontswap','-transparent')
  277. % Rejected HFO-related epochs:
  278. if HFOflag
  279. if ~exist(HFOsdir,'dir'),mkdir(HFOsdir); disp('Creating HFOs Output Directory...'); end
  280. save(fullfile(HFOsdir,'rejected_HFO_events_epochs.mat'),'HFOch','HFOepoches'); disp('rejected HFO-related data - saved');
  281. end
  282. end

extract_swr_events_final_method.m, no license · at the source

Overview

Authors: Jing Liu1,2, Xianhui He3,4, Can Yang3, Nikolai Axmacher5, Gui Xue6,7, Shaomin Zhang8,9, Ying Cai3,10
  1. Philosophy and Social Science Laboratory of Reading and Development in Children and Adolescents, Ministry of Education Center for Studies of Psychological Application, South China Normal University Guangzhou China
  2. School of Psychology, South China Normal University Guangzhou China
  3. Department of Psychology and Behavioral Sciences, Zhejiang University Hangzhou China
  4. Department of Experimental Psychology, University of Oxford Oxford United Kingdom
  5. Department of Neuropsychology, Institute of Cognitive Neuroscience, Faculty of Psychology, Ruhr University Bochum Bochum Germany
  6. State Key Laboratory of Cognitive Neuroscience and Learning & IDG/McGovern Institute for Brain Research, Beijing Normal University Beijing China
  7. Chinese Institute for Brain Research Beijing China
  8. School of Biomedical Engineering and Instrument Science, Zhejiang University Hangzhou China
  9. Qiushi Academy for Advanced Studies, Zhejiang University Hangzhou China
  10. Zhejiang Key Laboratory of Neurocognitive Development and Mental Health, Zhejiang University Hangzhou China
Journal: eLife, volume 15, article RP111304
Dates: published online 20 November 2026
Type: Research article · Language: English
License: CC BY
Identifiers: DOI 10.7554/elife.111304 · PMID 43061918 · PMCID PMC13787865 · OpenAlex W4412992491
Open access: gold, a free copy (OpenAlex)
Status: code verified (how the code is found and verified)
Categories: EEG (modality), human (organism), cognitive (subfield)
Methods: Spectral & time-frequency, Connectivity, Statistics, Machine learning, Preprocessing, Evoked potentials, Physiology & signal measures
Keywords: hippocampal ripples, working memory, neural representations, Human
MeSH: Hippocampus*, Memory, Short-Term*, Neocortex*, Visual Perception*, Adult, Electroencephalography, Female, Humans, Male, Temporal Lobe, Young Adult (* major topic)
Journal subjects: Neuroscience
Topic: Memory and Neural Mechanisms (Cognitive Neuroscience, Neuroscience), according to OpenAlex
Funding: STI 2020-Major Projects (2021ZD0200401, 2021ZD0200409); Fundamental Research Funds for the Central Universities (226-2024-00118); National Natural Science Foundation of China (32100851); Guangdong Basic and Applied Basic Research Foundation (2024A1515012667, 2023A1515110311); Research Center for Brain Cognition and Human Development (2024B0303390003)
Citations: not cited yet (Europe PMC); 85 references in the paper
Research resources: RStudio RRID:SCR_000432, MATLAB RRID:SCR_001622, R RRID:SCR_001905, FieldTrip RRID:SCR_004849, EEGLAB RRID:SCR_007292, lme4 RRID:SCR_015654, lmerTest RRID:SCR_015656

Abstract

Emerging evidence suggests that the hippocampus contributes to visual short-term memory (VSTM). However, the neural mechanisms through which hippocampal activity supports the maintenance of VSTM representations remain largely unknown. Here, using intracranial EEG recordings from human participants performing a delayed match-to-sample task for naturalistic objects, we investigated the role of hippocampal ripple activity—brief high-frequency oscillations associated with memory replay—in VSTM maintenance and hippocampal-neocortical communication. We found that hippocampal ripple rates progressively ramped up during the maintenance period and supported successful VSTM. More critically, hippocampal ripples were temporally coupled with the ripples in the lateral temporal lobe (LTL), and these coupled ripples were associated with memory reactivation in the LTL. These findings provide direct evidence that hippocampal–neocortical interaction via coupled ripples supports VSTM, extending the role of hippocampal ripples from long-term consolidation to short-term mnemonic processes and offering new insights into the dynamic coding mechanisms of working memory.

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

Repositories

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

OSF gwe62

License: none: the authors keep all their rights
State: the link answers, verified on 23 November 2026
Evidence: files inventoried
Languages: MATLAB (18), R (2)
Size: 23 files, 20 scripts
Software Heritage: not checked
Found in: “Data availability”
Not found: README, license file, CITATION.cff, environment file, tests, continuous integration, documentation
Tools: Statistics and Machine Learning Toolbox (50 files), EEGLAB (23 files), export_fig (16 files), fdr_bh (Benjamini-Hochberg FDR) (10 files), FieldTrip (8 files), ggplot2 (6 files), lme4 (6 files), FreeSurfer (5 files), shadedErrorBar (5 files), afex (4 files), Signal Processing Toolbox (4 files), Image Processing Toolbox (3 files), cowplot (2 files), emmeans (2 files), ggpubr (2 files), lmerTest (2 files), rstatix (2 files), tidyverse (2 files)
Availability: 1 check, the latest on 23 November 2026: the link answers (HTTP 200)
  • 23 November 2026: the link answers (HTTP 200)
158 files

OSF yqftv

License: none: the authors keep all their rights
State: the link answers, verified on 23 November 2026
Evidence: files inventoried
Size: 129 files, 0 scripts
Software Heritage: not checked
Found in: the references
Holds: README
Not found: license file, CITATION.cff, environment file, tests, continuous integration, documentation
Availability: 1 check, the latest on 23 November 2026: the link answers (HTTP 200)
  • 23 November 2026: the link answers (HTTP 200)
1 file
At the source:

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;
  • 158 scripts, each with its path and the digest of its content;
  • 13 matches between paragraphs of the paper and lines of the code (method lexical-v1);
  • neither the text of the paper nor the code itself.

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

Data

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

Data availability

All preprocessed data and custom MATLAB code necessary to reproduce the main conclusions of this study are available on the Open Science Framework, our Project DOI is: https://doi.org/10.17605/OSF.IO/GWE62.

The following datasets were generated: Liu, 2025

The following previously published datasets were used: Liu et al., 2020b

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, 23 November 2026: the first record

Recorded: type, language, journal, volume, pages, dates, 7 authors, 4 keywords, 11 MeSH terms, 5 funders, 85 references, 7 RRIDs.

Cite

This paper

Liu, J., He, X., Yang, C., Axmacher, N., Xue, G., Zhang, S., & Cai, Y. (2026). Ramping-up hippocampal ripples and their neocortical coupling support human visual short-term memory. eLife, 15, RP111304. https://doi.org/10.7554/elife.111304

BibTeX

@article{liu2026ramping,
author = {Liu, Jing and He, Xianhui and Yang, Can and Axmacher, Nikolai and Xue, Gui and Zhang, Shaomin and Cai, Ying},
title = {{Ramping-up hippocampal ripples and their neocortical coupling support human visual short-term memory}},
journal = {eLife},
year = {2026},
month = nov,
volume = {15},
pages = {RP111304},
publisher = {eLife Sciences Publications, Ltd},
issn = {2050-084X},
doi = {10.7554/elife.111304},
url = {https://doi.org/10.7554/elife.111304},
pmid = {43061918},
pmcid = {PMC13787865}
}

RIS

TY - JOUR
AU - Liu, Jing
AU - He, Xianhui
AU - Yang, Can
AU - Axmacher, Nikolai
AU - Xue, Gui
AU - Zhang, Shaomin
AU - Cai, Ying
TI - Ramping-up hippocampal ripples and their neocortical coupling support human visual short-term memory
T2 - eLife
J2 - eLife
PY - 2026
DA - 2026/11/20
VL - 15
SP - RP111304
SN - 2050-084X
PB - eLife Sciences Publications, Ltd
DO - 10.7554/elife.111304
UR - https://doi.org/10.7554/elife.111304
LA - en
ER -

CSL-JSON

{
"id": "10.7554/elife.111304",
"type": "article-journal",
"title": "Ramping-up hippocampal ripples and their neocortical coupling support human visual short-term memory",
"container-title": "eLife",
"author": [
{
"family": "Liu",
"given": "Jing"
},
{
"family": "He",
"given": "Xianhui"
},
{
"family": "Yang",
"given": "Can"
},
{
"family": "Axmacher",
"given": "Nikolai"
},
{
"family": "Xue",
"given": "Gui"
},
{
"family": "Zhang",
"given": "Shaomin"
},
{
"family": "Cai",
"given": "Ying"
}
],
"container-title-short": "eLife",
"volume": "15",
"page": "RP111304",
"DOI": "10.7554/elife.111304",
"PMID": "43061918",
"PMCID": "PMC13787865",
"ISSN": "2050-084X",
"publisher": "eLife Sciences Publications, Ltd",
"URL": "https://doi.org/10.7554/elife.111304",
"language": "en",
"issued": {
"date-parts": [
[
2026,
11,
20
]
]
}
}

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.1038/s41467-025-57766-x [code]
Electrophysiological signatures underlying variability in human memory consolidation.
Journal: Nature communications
In common: shadedErrorBar, FieldTrip, Image Processing Toolbox, 1 other tool, EEG, cognitive, 15 references
[2] doi:10.1038/s41467-024-52541-w [code]
Maintenance and transformation of representational formats during working memory prioritization.
Journal: Nature communications
In common: shadedErrorBar, EEGLAB, FieldTrip, 4 other tools, EEG, cognitive, 8 references, author Gui Xue
[3] doi:10.1038/s41467-022-33536-x [code]
A consensus statement on detection of hippocampal sharp wave ripples and differentiation from other fast oscillations.
Journal: Nature communications
In common: export_fig, EEGLAB, FieldTrip, 3 other tools, 13 references
[4] doi:10.1371/journal.pbio.3002399 [code]
Item-specific neural representations during human sleep support long-term memory.
Journal: PLoS biology
In common: shadedErrorBar, rstatix, emmeans, 8 other tools, EEG, cognitive, 4 references, author Jing Liu
[5] doi:10.1038/s41467-023-44295-8 [code]
Awake ripples enhance emotional memory encoding in the human brain.
Journal: Nature communications
In common: shadedErrorBar, Image Processing Toolbox, Statistics and Machine Learning Toolbox, cognitive, 15 references
[6] doi:10.1038/s41467-025-66562-6 [code]
Spatiotemporal patterns differentiate hippocampal sharp-wave ripples from interictal epileptiform discharges in mice and humans.
Journal: Nature communications
In common: export_fig, EEGLAB, FieldTrip, 3 other tools, EEG, 11 references
[7] doi:10.1126/sciadv.adv0986 [code]
Motifs of human high-frequency oscillations structure processing and memory of continuous audiovisual narratives.
Journal: Science advances
In common: shadedErrorBar, FieldTrip, Signal Processing Toolbox, 1 other tool, cognitive, 12 references
[8] doi:10.1038/s41467-026-75345-6 [code]
Hippocampal ripples initiate cortical dimensionality expansion for memory retrieval.
Journal: Nature communications
In common: FieldTrip, Signal Processing Toolbox, Image Processing Toolbox, 1 other tool, EEG, cognitive, 11 references
[9] doi:10.7554/elife.83365 [code]
The entorhinal-DG/CA3 pathway in the medial temporal lobe retains visual working memory of a simple surface feature.
Journal: eLife
In common: Statistics and Machine Learning Toolbox, cognitive, 13 references
[10] doi:10.1073/pnas.2210698120 [code]
Ripples in macaque V1 and V4 are modulated by top-down visual attention.
Journal: Proceedings of the National Academy of Sciences of the United States of America
In common: fdr_bh (Benjamini-Hochberg FDR), Signal Processing Toolbox, Image Processing Toolbox, 1 other tool, cognitive, 11 references

Contribute

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

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

Add the badge to the code's README

OSCR: the badge of this paper

If you are an author or a maintainer of this paper's code, you can add this badge. It says what OSCR knows of the paper (its code, its validated tracing map) and links the code to this page. Paste one of these snippets under the README's title. Keep the two marks around it, so that the badge can be replaced in place and is never added twice. OSCR changes nothing in your repository.

Markdown
<!-- oscr-badge:start -->
[![OSCR](https://openscicode.org/badge/doi/10.7554/elife.111304.svg)](https://openscicode.org/badge/doi/10.7554/elife.111304)
<!-- oscr-badge:end -->
reStructuredText
.. oscr-badge:start

.. image:: https://openscicode.org/badge/doi/10.7554/elife.111304.svg
   :target: https://openscicode.org/badge/doi/10.7554/elife.111304
   :alt: OSCR

.. oscr-badge:end
HTML
<!-- oscr-badge:start -->
<a href="https://openscicode.org/badge/doi/10.7554/elife.111304"><img src="https://openscicode.org/badge/doi/10.7554/elife.111304.svg" alt="OSCR"></a>
<!-- oscr-badge:end -->

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)

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