OSCR

Place and behavioral modulation of hippocampal neurons during immobility.

Code ↔ Paper

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

17 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 23 matches · 1 of them tie a paragraph to a whole file without given lines: a weak match, whose lines are not tinted
  1. [1] § Methods › Data analysis › LFP analysis ↔ helper_functions/common_vars.m, the whole file · a weak match · score 0.86 · 70–90 Hz, 0.5–4 Hz, gamma range, delta range, theta range, 6–10 Hz · block oscr:b:8GG8D80M31GKE-8 · Report a mismatch
  2. [2] § Results › Hippocampal place coding during awake immobility ↔ figures/fig2/fig2.m, lines 87 to 155 · score 0.78 · triggered spectrogram, ripple rate, brain state, theta delta, whisker pad motion, active immobility · block oscr:b:S9BJH4NG27VZB-V · Report a mismatch
  3. [3] § Methods › Data analysis › Analysis of place cell firing during awake immobility ↔ figures/fig2/fig2.m, lines 253 to 286 · score 0.75 · Population tuning curves, signed distance, quiet immobility, place field, belt, peak · block oscr:b:VTTNR153TKF77-C · Report a mismatch
  4. [4] § Results › Hippocampal place coding during awake immobility ↔ figures/fig2/fig2.m, lines 25 to 85 · score 0.66 · Sharp wave ripples, state transitions, whisker pad motion, behavioral states, active immobility, gamma · block oscr:b:5Z6N62ASC529N-E · Report a mismatch
  5. [5] § Results › Theta oscillations during active immobility ↔ figures/fig4/fig4.m, lines 17 to 75 · score 0.65 · Histogram distributions, delta ratio, active immobility, 5–10 Hz, scatter, epochs · block oscr:b:M61Z1TYNKV7ED-3 · Report a mismatch
  6. [6] § Results › CA1 place cell recordings and behavioral analysis during running and immobility ↔ figures/fig1/fig1.m, lines 113 to 153 · score 0.64 · power spectra, pupil area, Bonferroni corrected, whisker pad motion, spectrogram, LFP · block oscr:b:9TGNYRXPBMDC8-L · Report a mismatch
  7. [7] § Methods › Data analysis › Analysis of place cell firing during awake immobility ↔ figures/fig5/fig5.m, lines 151 to 209 · score 0.63 · Population tuning curves, signed distance, belt, quiet, modulated, active · block oscr:b:S7S3SFQY7M28P-T · Report a mismatch
  8. [8] § Methods › Data analysis › LFP analysis ↔ figures/fig2/fig2.m, lines 8 to 23 · score 0.63 · gamma range, delta range, theta range, band · block oscr:b:MXNB7J11YQB6B-K · Report a mismatch
  9. [9] § Methods › Data analysis › Theta oscillations segmentation and analysis ↔ figures/fig_S4/fig_S4.m, lines 131 to 193 · score 0.59 · oscillatory bands, power changes, Whisker pad, quantiles, duration, theta · block oscr:b:HRP7R4VTHNZ71-N · Report a mismatch
  10. [10] § Results › Theta oscillations during active immobility ↔ figures/fig4/fig4.m, lines 199 to 253 · score 0.58 · theta oscillations, delta ratio, whisker pad motion, quantiles, duration, power · block oscr:b:TPYCMS3VSGE7G-X · Report a mismatch
  11. [11] § Methods › Data analysis › Bayesian decoding analysis ↔ figures/fig_S3/fig_S3.m, lines 20 to 30 · score 0.58 · confusion matrix, Bayesian decoding, reactivations, position, location · block oscr:b:0B9Z1YYA5S11T-B · Report a mismatch
  12. [12] § Results › Heterogeneous behavioral modulation of place cells during immobility ↔ figures/fig5/fig5.m, lines 90 to 138 · score 0.57 · behaviorally modulated cells, immobility location, log10, transformed, fit, Figure 5 · block oscr:b:RKDFVC4A533YZ-1 · Report a mismatch
  13. [13] § Methods › Data analysis › Statistical analysis ↔ figures/fig2/fig2.m, lines 315 to 359 · score 0.57 · Wilcoxon signed rank, Bonferroni correction, alpha, tailed, error · block oscr:b:13SAZX6ZA4FA9-Q · Report a mismatch
  14. [14] § Methods › Data analysis › Statistical analysis ↔ figures/fig_S2/fig_S2.m, lines 18 to 56 · score 0.57 · Wilcoxon signed rank, Bonferroni correction, alpha, tailed, error · block oscr:b:7HN7BSWHVX0VW-A · Report a mismatch
  15. [15] § Results › Hippocampal place coding during awake immobility ↔ figures/fig_S2/fig_S2.m, lines 18 to 56 · score 0.56 · Wilcoxon signed rank, Bonferroni corrected, behavioral state, tailed, trained, errors · block oscr:b:7HN7BSWHVX0VW-A · Report a mismatch
  16. [16] § Results › Hippocampal place coding during awake immobility ↔ figures/fig2/fig2.m, lines 315 to 359 · score 0.56 · Wilcoxon signed rank, Bonferroni corrected, behavioral state, tailed, trained, errors · block oscr:b:13SAZX6ZA4FA9-Q · Report a mismatch
  17. [17] § Methods › Juxtacellular recordings and stimulation ↔ figures/fig2/fig2.m, lines 87 to 155 · score 0.56 · 1.5–2 %, whisker pad motion, active immobility, transition, onset · block oscr:b:S9BJH4NG27VZB-V · Report a mismatch
  18. [18] § Results › Heterogeneous behavioral modulation of place cells during immobility ↔ figures/fig_S2/fig_S2.m, lines 58 to 85 · score 0.55 · neuron dropping procedure, Bayesian decoding, quiet immobility, error, active · block oscr:b:DV08KJC3WEXZN-Z · Report a mismatch
  19. [19] § Results › Heterogeneous behavioral modulation of place cells during immobility ↔ figures/fig_S6/fig_S6.m, lines 125 to 157 · score 0.54 · deep superficial, electrophysiological properties, spike, field, immobility, cells · block oscr:b:BGRYN0K5MT12K-E · Report a mismatch
  20. [20] § Methods › Data analysis › Theta oscillations segmentation and analysis ↔ figures/fig4/fig4.m, lines 345 to 370 · score 0.53 · theta epochs, Whisker pad motion, quantiles, linear, duration, peak · block oscr:b:WSEX862BB0KE6-T · Report a mismatch
  21. [21] § Methods › Data analysis › Bayesian decoding analysis ↔ figures/fig_S2/fig_S2.m, lines 58 to 85 · score 0.52 · neuron dropping procedure, quiet immobility, decoding, error, Bayesian, active · block oscr:b:DV08KJC3WEXZN-Z · Report a mismatch
  22. [22] § Methods › Data analysis › Sharp-wave ripple detection and analysis ↔ figures/fig2/fig2.m, lines 25 to 85 · score 0.52 · Sharp wave ripples, active immobility, SPW, traces · block oscr:b:5Z6N62ASC529N-E · Report a mismatch
  23. [23] § Methods › Data analysis › Theta oscillations segmentation and analysis ↔ figures/fig4/fig4.m, lines 199 to 253 · score 0.51 · theta oscillations, delta ratio, epochs, duration, power · block oscr:b:TPYCMS3VSGE7G-X · 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 · 359 lines · 14 KB · no license · 8 matches

  1. %% Fig 2 - analysis script to reproduce key findings
  2. % Place and behavioral modulation of hippocampal neurons during immobility
  3. % Nicola Sartorato, Ioannis S. Zouridis, Ulzii-Utas Narantsatsralt, Eduardo Blanco-Hernández, and Andrea Burgalossi
  4. % note: the script is meant to be run per sections in the order here provided.
  5. % MATLAB version:2022a
  6. %% loading data for figure 2
  7. clear;
  8. % load parameter variables
  9. common_vars;
  10. % load data
  11. f2 = load("fig2.mat");
  12. load("bayesian_decoding.mat");
  13. load("cells.mat");
  14. % definition of delta, theta and gamma bands
  15. f_delta = delta_range(1) <= f2.f_spectr & f2.f_spectr <= delta_range(2);
  16. f_theta = theta_range(1) <= f2.f_spectr & f2.f_spectr <= theta_range(2);
  17. f_gamma = gamma_range(1) <= f2.f_spectr & f2.f_spectr <= gamma_range(2);
  18. %% Preprocessing: Behavioral state transitions to active immobility
  19. norm_window = [-2 0]; % in s, normalization window
  20. S_to_active_log = 10*log10(f2.S_to_active); % get spectrograms in log
  21. S_avg_to_active = mean(S_to_active_log,3); % get avg session spectrograms
  22. n_sessions = size(S_to_active_log,3); % get n of sessions
  23. t_norm = norm_window(1) <= f2.x_spectr & f2.x_spectr <= norm_window(2); % definition of norm. window for spectrogram
  24. t_norm_whisk = norm_window(1) <= f2.x_whisk & f2.x_whisk <= norm_window(2); % definition of norm. window for whisk trace
  25. % Theta delta normalization
  26. m = mean(f2.thede_to_active(t_norm,:),1); % session avg
  27. s = std(f2.thede_to_active(t_norm,:),[],1); % session std
  28. thede_to_active_norm = (f2.thede_to_active - m) ./ s; % normalization
  29. m_thede_norm = mean(thede_to_active_norm,2); % avg trace
  30. s_thede_norm = std(thede_to_active_norm,[],2) ./ sqrt(n_sessions); % sem trace
  31. % Theta normalization
  32. avg_theta = mean(S_to_active_log(:,f_theta,:),2);
  33. theta_tcourse = reshape(avg_theta,size(avg_theta,1),n_sessions); % extract theta time course
  34. m = mean(theta_tcourse(t_norm,:),1); % session avg
  35. s = std(theta_tcourse(t_norm,:),0,1); % session std
  36. theta_tc_norm = (theta_tcourse - m) ./ s; % normalization
  37. m_theta = mean(theta_tc_norm,2); % avg trace
  38. s_theta = std(theta_tc_norm,[],2) ./ sqrt(n_sessions); % sem trace
  39. % Gamma normalization
  40. avg_gamma = mean(S_to_active_log(:,f_gamma,:),2);
  41. gamma_tcourse = reshape(avg_gamma,size(S_to_active_log,1),n_sessions); % extract gamma time course
  42. m = mean(gamma_tcourse(t_norm,:),1); % session avg
  43. s = std(gamma_tcourse(t_norm,:),0,1); % session std
  44. gamma_tc_norm = (gamma_tcourse - m) ./ s; % normalization
  45. m_gamma = mean(gamma_tc_norm,2); % avg trace
  46. s_gamma = std(gamma_tc_norm,[],2) ./ sqrt(n_sessions); % sem trace
  47. % Delta normalization
  48. avg_delta = mean(S_to_active_log(:,f_delta,:),2);
  49. delta_tcourse = reshape(avg_delta,size(avg_delta,1),n_sessions); % extract delta time course
  50. m = mean(delta_tcourse(t_norm,:),1); % session avg
  51. s = std(delta_tcourse(t_norm,:),0,1); % session std
  52. delta_tc_norm = (delta_tcourse - m) ./ s; % normalization
  53. m_delta = mean(delta_tc_norm,2); % avg trace
  54. s_delta = std(delta_tc_norm,[],2) ./ sqrt(n_sessions); % sem trace
  55. % Sharp-wave ripple normalization
  56. pre_whisk_rr = -1.5 < f2.rr_x & f2.rr_x < 0;
  57. mean_rr_pre = mean(f2.rr_sessions(:,pre_whisk_rr),2); % avg SPW-R pre whisk
  58. std_rr_pre = std(f2.rr_sessions(:,pre_whisk_rr),0,2); % std SPW-R pre whisk
  59. post_whisk_rr = 0 < f2.rr_x & f2.rr_x < 1.5; % avg SPW-R post whisk
  60. mean_rr_post = mean(f2.rr_sessions(:,post_whisk_rr),2); % avg SPW-R post whisk
  61. rr_norm = (f2.rr_sessions - mean_rr_pre) ./ std_rr_pre; % normalization trace to baseline
  62. rr_incr = (mean_rr_post - mean_rr_pre) ./ std_rr_pre; % normalization for increase
  63. % Whisker-pad motion normalization
  64. m = mean(f2.whisk_to_active(:,t_norm_whisk),2); % session avg
  65. s = std(f2.whisk_to_active(:,t_norm_whisk),[],2); % session std
  66. whisk_to_active_norm = (f2.whisk_to_active - m) ./ s; % normalization
  67. m_whisk = mean(whisk_to_active_norm,1); % avg trace
  68. s_whisk = std(whisk_to_active_norm,[],1) ./ sqrt(n_sessions); % sem trace
  69. %% Fig. 2b. Brain state upon upon transitions to active immobility
  70. figure;
  71. tiledlayout(6,1)
  72. % Triggered spectrogram on whisker-pad motion
  73. a2 = nexttile(1,[2 1]);
  74. imagesc(f2.x_spectr,f2.f_spectr,S_avg_to_active')
  75. set(gca, 'YDir','normal')
  76. xline(0,'Color','white')
  77. clim([-14.5 1])
  78. ylim([1 30])
  79. colormap("turbo")
  80. ylabel("Frequency (Hz)");
  81. % Theta-delta
  82. a3 = nexttile(3);
  83. yline(0,'Color','black')
  84. hold on;
  85. plot(f2.x_spectr,m_thede_norm)
  86. plot(f2.x_spectr,m_thede_norm + s_thede_norm,'Color','black','LineStyle','--')
  87. plot(f2.x_spectr,m_thede_norm - s_thede_norm,'Color','black','LineStyle','--')
  88. ylabel("Theta/delta (zscore)");
  89. % Delta theta gamma
  90. a4 = nexttile(4);
  91. yline(0,'Color','black')
  92. hold on;
  93. plot(f2.x_spectr,m_theta,'LineWidth',2)
  94. plot(f2.x_spectr,m_gamma,'LineWidth',2)
  95. plot(f2.x_spectr,m_theta + s_theta,'Color','black','LineStyle','--')
  96. plot(f2.x_spectr,m_theta - s_theta,'Color','black','LineStyle','--')
  97. plot(f2.x_spectr,m_gamma + s_gamma,'Color','black','LineStyle','--')
  98. plot(f2.x_spectr,m_gamma - s_gamma,'Color','black','LineStyle','--')
  99. ylabel("Theta, gamma (zscore)")
  100. ylim([-2.8 2.8])
  101. yyaxis right;
  102. hold on;
  103. plot(f2.x_spectr,m_delta,'LineWidth',2)
  104. plot(f2.x_spectr,m_delta + s_delta,'Color','black','LineStyle','--')
  105. plot(f2.x_spectr,m_delta - s_delta,'Color','black','LineStyle','--')
  106. ylabel("Delta (zscore)")
  107. ylim([-8 8])
  108. % SPW-R rate
  109. a5 = nexttile(5);
  110. plot(f2.rr_x,mean(rr_norm),'LineWidth',2)
  111. hold on
  112. yline(0,'Color','black')
  113. plot(f2.rr_x,mean(rr_norm) + std(rr_norm) / sqrt(n_sessions),"Color",'black','LineStyle','--')
  114. plot(f2.rr_x,mean(rr_norm) - std(rr_norm) / sqrt(n_sessions),"Color",'black','LineStyle','--')
  115. xlabel("time from whisking onset (s)")
  116. ylabel("ripple rate (norm)")
  117. % Whisker-pad motion
  118. a6 = nexttile(6);
  119. yline(0,'Color','black')
  120. hold on;
  121. plot(f2.x_whisk,m_whisk)
  122. plot(f2.x_whisk,m_whisk + s_whisk,'Color','black','LineStyle','--')
  123. plot(f2.x_whisk,m_whisk - s_whisk,'Color','black','LineStyle','--')
  124. ylabel("Whisker-pad motion (zscore)");
  125. xlabel("Time from whisker-pad motion event (s)")
  126. linkaxes([a2 a3 a4 a5 a6],'x')
  127. xlim([-1.5 2])
  128. %% Fig. 2c. Quantification of brain state upon transitions to active immobility
  129. pre_whisk = f2.x_spectr < 0;
  130. post_whisk = f2.x_spectr >= 0;
  131. the_de_incr = [];
  132. delta_incr = [];
  133. theta_incr = [];
  134. gamma_incr = [];
  135. % calculating increases in each band for each session
  136. for iS=1: n_sessions
  137. % theta delta
  138. m_pre = mean(f2.thede_to_active(pre_whisk,iS),1);
  139. s_pre = std(f2.thede_to_active(pre_whisk,iS),0,1);
  140. m_post = mean(f2.thede_to_active(post_whisk,iS),1);
  141. the_de_incr = [the_de_incr; (m_post - m_pre)/s_pre];
  142. % delta
  143. ts = mean(S_to_active_log(:,f_delta,iS),2);
  144. m_pre = mean(ts(pre_whisk),1);
  145. s_pre = std(ts(pre_whisk),0,1);
  146. m_post = mean(ts(post_whisk),1);
  147. delta_incr = [delta_incr; (m_post - m_pre)/s_pre];
  148. % theta
  149. ts = mean(S_to_active_log(:,f_theta,iS),2);
  150. m_pre = mean(ts(pre_whisk),1);
  151. s_pre = std(ts(pre_whisk),0,1);
  152. m_post = mean(ts(post_whisk),1);
  153. theta_incr = [theta_incr; (m_post - m_pre)/s_pre];
  154. % gamma
  155. ts = mean(S_to_active_log(:,f_gamma,iS),2);
  156. m_pre = mean(ts(pre_whisk),1);
  157. s_pre = std(ts(pre_whisk),0,1);
  158. m_post = mean(ts(post_whisk),1);
  159. gamma_incr = [gamma_incr; (m_post - m_pre)/s_pre];
  160. end
  161. % boxplot zscore
  162. figure;
  163. y = [the_de_incr; delta_incr; theta_incr; gamma_incr; rr_incr];
  164. x = [repmat("theta-delta",n_sessions,1); repmat("delta",n_sessions,1); repmat("theta",n_sessions,1); repmat("gamma",n_sessions,1); repmat("SPW-R",size(rr_incr,1),1)];
  165. violinplot(y,x,'GroupOrder',{'theta-delta','delta','theta','gamma','SPW-R'})
  166. yline(0,'Color','black')
  167. ylabel("increase (std)");
  168. % Two-tailed Wilcoxon signed rank tests
  169. % delta
  170. p_theta_delta = signrank(the_de_incr,0)
  171. % delta
  172. p_delta = signrank(delta_incr,0)
  173. % theta
  174. p_theta = signrank(theta_incr,0)
  175. % gamma
  176. p_gamma = signrank(gamma_incr,0)
  177. % SPW-R
  178. p_SPWR = signrank(rr_incr,0)
  179. %% Fig. 2d. Firing of place cell inside and outside place field
  180. % define variables
  181. pc_infield=f2.fr_after_whisker_onset.pc_in_field;
  182. pc_outfield=f2.fr_after_whisker_onset.pc_out_field;
  183. time=f2.fr_after_whisker_onset.time_after_whisker;
  184. figure
  185. subplot(1,2,1);
  186. plot(time,mean(pc_infield),'r','LineWidth',2)
  187. hold on
  188. plot(time,mean(pc_infield)+std(pc_infield)./sqrt(size(pc_infield,1)),':k')
  189. plot(time,mean(pc_infield)-std(pc_infield)./sqrt(size(pc_infield,1)),':k')
  190. ylim([0,10])
  191. xlim([-4,4])
  192. xlabel 'time after whisker onset'
  193. ylabel 'firing rate'
  194. title 'place cells in field'
  195. subplot(1,2,2);
  196. plot(time,mean(pc_outfield),'r','LineWidth',2)
  197. hold on
  198. plot(time,mean(pc_outfield)+std(pc_outfield)./sqrt(size(pc_outfield,1)),':k')
  199. plot(time,mean(pc_outfield)-std(pc_outfield)./sqrt(size(pc_outfield,1)),':k')
  200. ylim([0,10])
  201. xlim([-4,4])
  202. xlabel 'time after whisker onset'
  203. ylabel 'firing rate'
  204. title 'place cells out field'
  205. %% Fig. 2e. Population tuning curves for active and quiet immobility
  206. % get tuning curves
  207. x = imm_per_tc.sign_dist .* length_belt;
  208. y_active = imm_per_tc.fr_active ./ imm_per_tc.fr_in_field;
  209. y_quiet = imm_per_tc.fr_quiet ./ imm_per_tc.fr_in_field;
  210. [x_tc_active,y_tc_active,y_sem_tc_active] = population_tuning_curve(x,y_active);
  211. [x_tc_quiet,y_tc_quiet,y_sem_tc_quiet] = population_tuning_curve(x,y_quiet);
  212. % get avg place field
  213. figure;
  214. tiledlayout(5,1);
  215. nexttile;
  216. i_peak_pf = size(f2.place_fields,2)/2;
  217. place_field_norm = f2.place_fields ./ f2.place_fields(:,i_peak_pf);
  218. plot(f2.x_pf,mean(place_field_norm),'Color','black','LineWidth',2);
  219. ylim([0.2 1.1])
  220. xlim([-90 90])
  221. % plot population tuning curves
  222. nexttile(2,[4 1]);
  223. plot(x_tc_active,y_tc_active,'Color','red','LineWidth',2);
  224. hold on;
  225. plot(x_tc_quiet,y_tc_quiet,'Color','blue','LineWidth',2);
  226. plot(x_tc_active,y_tc_active+y_sem_tc_active,'Color','red');
  227. plot(x_tc_active,y_tc_active-y_sem_tc_active,'Color','red');
  228. plot(x_tc_quiet,y_tc_quiet+y_sem_tc_quiet,'Color','red');
  229. plot(x_tc_quiet,y_tc_quiet-y_sem_tc_quiet,'Color','red');
  230. xline(0,'Color','red','LineWidth',2);
  231. legend(["active imm.","quiet imm."]);
  232. %% Fig. 2f. Firing rate in function of position and behavioral state
  233. % preparation
  234. active_imm_in_field = f2.fr_in_field_t.fr_active_imm ./ f2.fr_in_field_t.fr_in_field_run; % in field - active imm
  235. quiet_imm_in_field = f2.fr_in_field_t.fr_quiet_imm ./ f2.fr_in_field_t.fr_in_field_run; % in field - quiet imm
  236. active_imm_out_field = f2.fr_out_field_t.fr_active_imm ./ f2.fr_out_field_t.fr_in_field_run; % out of field - active imm
  237. quiet_imm_out_field = f2.fr_out_field_t.fr_quiet_imm ./ f2.fr_out_field_t.fr_in_field_run; % out of field - quiet imm
  238. categoryLabels = {'Active imm., in field','Quiet imm., in field','Active imm., out of field','Quiet imm., out of field'};
  239. y = [active_imm_in_field; quiet_imm_in_field; active_imm_out_field; quiet_imm_out_field];
  240. x = [repmat(convertCharsToStrings(categoryLabels{1}),size(active_imm_in_field));
  241. repmat(convertCharsToStrings(categoryLabels{2}),size(quiet_imm_in_field));
  242. repmat(convertCharsToStrings(categoryLabels{3}),size(active_imm_out_field));
  243. repmat(convertCharsToStrings(categoryLabels{4}),size(quiet_imm_out_field))];
  244. % violin plot
  245. figure;
  246. violinplot(y,x,'GroupOrder',categoryLabels,'ShowData',false);
  247. title(strcat("Firing during imm. (stops in PF = ",num2str(length(active_imm_in_field)),"; stops out PF = ",num2str(length(active_imm_out_field)),")"));
  248. ylabel("FR imm. (norm.)");
  249. % Kruskal Wallis test
  250. [pval,tbl,stats] = kruskalwallis(y,x,'off');
  251. c = multcompare(stats,"Display","off");
  252. tblSign = array2table(c,"VariableNames", ["Group A","Group B","Lower Limit","A-B","Upper Limit","P-value"])
  253. %% Fig. 2g. Bayesian decoding during immobility
  254. labels = {'run -> run','run -> active imm.','run -> quiet imm.','active imm. -> run','quiet imm. -> run'}; % Labels name, "training -> testing"
  255. labels_s = convertCharsToStrings(labels); % convert to string
  256. % Pooling all imm. periods, renaming
  257. err_train_run_test_run = cell2mat(bayesian_dec.errors_t.z_stops_train_run_test_run')'; % run -> run
  258. err_train_run_test_stop_active = cell2mat(bayesian_dec.errors_t.z_stops_train_run_test_stop_active')'; % run -> active imm
  259. err_train_run_test_stop_quiet = cell2mat(bayesian_dec.errors_t.z_stops_train_run_test_stop_quiet')'; % run -> quiet imm
  260. err_train_stop_active_test_run = cell2mat(bayesian_dec.errors_t.z_stops_train_stop_active_test_run')'; % active imm -> run
  261. err_train_stop_quiet_test_run = cell2mat(bayesian_dec.errors_t.z_stops_train_stop_quiet_test_run')'; % quiet imm -> run
  262. % Preprocessing for boxplots
  263. n_stops = length(err_train_run_test_run);
  264. y = [err_train_run_test_run; err_train_run_test_stop_active; err_train_run_test_stop_quiet; err_train_stop_active_test_run; err_train_stop_quiet_test_run];
  265. x = [];
  266. for iL=1: length(labels)
  267. x = [x; repmat(convertCharsToStrings(labels_s{iL}),n_stops,1)];
  268. end
  269. % Decoding boxplot errors - imm. periods
  270. figure;
  271. violinplot(y,x,'GroupOrder',labels,'ShowData',false)
  272. yline(0,'LineStyle','--')
  273. ylabel("error (zscore)")
  274. title("imm. periods, N=88")
  275. % Wilcoxon sign rank tests, one for each group, H1: median error < 0
  276. [p_run_run,~,s_run_run] = signrank(err_train_run_test_run,0,'tail','left');
  277. [p_run_active_imm,~,s_run_active_imm] = signrank(err_train_run_test_stop_active,0,'tail','left');
  278. [p_run_quiet_imm,~,s_run_quiet_imm] = signrank(err_train_run_test_stop_quiet,0,'tail','left');
  279. [p_active_imm_run,~,s_active_imm_run] = signrank(err_train_stop_active_test_run,0,'tail','left');
  280. [p_quiet_imm_run,~,s_quiet_imm_run] = signrank(err_train_stop_quiet_test_run,0,'tail','left');
  281. % visualize p values
  282. string(labels)
  283. pvals_stops = [p_run_run p_run_active_imm p_run_quiet_imm p_active_imm_run p_quiet_imm_run];
  284. string(pvals_stops)
  285. % Bonferroni correction for multiple comparisons (5 tests)
  286. string(labels)
  287. bonf_stops = pvals_stops < (alpha_sign / length(pvals_stops)) % all groups significant except err_train_run_test_stop_quiet
  288. % Wilcoxon sign rank pairwise test, behavioral state difference only when training on imm.
  289. [p_imm_beh_state,~,s_imm_beh_state] = signrank(err_train_stop_active_test_run,err_train_stop_quiet_test_run,'tail','left');

fig2.m at commit 5745200, no license · at the source

Overview

Authors: Nicola Sartorato1,2,3, Ioannis S. Zouridis1,2,3,4, Ulzii-Utas Narantsatsralt1,2,3,5, Eduardo Blanco-Hernández1,2, Andrea Burgalossi1,2
  1. Institute for Neurobiology, Eberhard Karls University of Tübingen,Tübingen, Germany
  2. Werner Reichardt Centre for Integrative Neuroscience,Tübingen, Germany
  3. Graduate Training Centre of Neuroscience, International Max Planck Research School (IMPRS),Tübingen, Germany
  4. Max Planck Institute for Biological Cybernetics,Tübingen, Germany
  5. Institute of Experimental Epileptology and Cognition Research, University Hospital Bonn,Bonn, Germany
Journal: Nature communications, volume 17, issue 1, article 7261
Dates: received 11 December 2024; accepted 1 July 2026; published online 24 July 2026
Type: Research article · Language: English
License: CC BY
Identifiers: DOI 10.1038/s41467-026-75492-w · PMID 42498723 · PMCID PMC13400744 · OpenAlex W7170394472
Open access: gold, a free copy (OpenAlex)
Status: code verified (how the code is found and verified)
Categories: extracellular electrophysiology (units, LFP) (modality), mouse (organism), systems (subfield)
Methods: Spectral & time-frequency, Connectivity, Statistics, Machine learning, Preprocessing, fMRI & imaging, Single-unit activity, calcium imaging, Smoothing, state filtering, decompositions, Physiology & signal measures
Keywords: Hippocampus, Neural circuits
MeSH: Behavior, Animal*, CA1 Region, Hippocampal*, Hippocampus*, Neurons*, Place Cells*, Animals, Local Field Potential Measurement, Male, Memory, Episodic, Mice, Mice, Inbred C57BL, Theta Rhythm, Wakefulness (* major topic)
Topic: Memory and Neural Mechanisms (Cognitive Neuroscience, Neuroscience), according to OpenAlex
Funding: Deutsche Forschungsgemeinschaft (BU 3126/2-1, BU 3126/3-1); Division of Intramural Research, National Institute of Allergy and Infectious Diseases; University of Tübingen (intramural funding)
Citations: not cited yet (Europe PMC); 143 references in the paper
Research resources: Eight wild-type C57BL/6J mice RRID:IMSR_JAX:000664

Abstract

Behavioral state fluctuations profoundly impact episodic memory processing. To explore the underlying mechanisms, we recorded CA1 place cells in head-fixed male mice and focused on awake immobility to capture spontaneous behavioral state fluctuations by facial motion, pupillometry, and local field potential (LFP) analysis. We found that during awake immobility, the duration of spontaneous whisker-pad motion events correlated with ongoing levels of arousal and modulated both the frequency and the power of theta oscillations. CA1 place cells continued to encode location during immobility, with the spatial code being primarily driven by a subset of behaviorally-modulated place cells which increased their firing upon behavioral state transitions. Single-cell stimulation during immobility was sufficient for the induction of place fields, indicating that plasticity mechanisms can be engaged even in the absence of locomotion. Altogether, these data indicate that behavioral state fluctuations might contribute to episodic memory processing by modulating theta oscillatory dynamics and hippocampal gain via the engagement of a discrete place-cell ensemble.

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 23 matches between paragraphs and lines of code.

BurgalossiPublic/HP-BehModulation

License: none: the authors keep all their rights
State: the link answers, verified on 27 September 2026
Evidence: files inventoried
Commit: 5745200519905b3711245e92bc2b19edadd87f35, 3 July 2026
Languages: MATLAB (18)
Size: 35 files, 18 scripts
Software Heritage: not archived
Found in: “Code availability”
Holds: README
Not found: license file, CITATION.cff, environment file, tests, continuous integration, documentation
Availability: 1 check, the latest on 27 September 2026: the link answers
  • 27 September 2026: the link answers
19 files

Code availability

Custom code associated with this study is available at: https://github.com/BurgalossiPublic/HP-BehModulation.

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;
  • 18 scripts, each with its path and the digest of its content;
  • 23 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

Preprocessed raw data are available at: https://github.com/BurgalossiPublic/HP-BehModulation. Source data are provided with this paper.

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, 5 authors, 2 keywords, 13 MeSH terms, 3 funders, 142 references, 1 RRID.

Cite

This paper

Sartorato, N., Zouridis, I. S., Narantsatsralt, U.-U., Blanco-Hernández, E., & Burgalossi, A. (2026). Place and behavioral modulation of hippocampal neurons during immobility. Nature communications, 17(1), 7261. https://doi.org/10.1038/s41467-026-75492-w

BibTeX

@article{sartorato2026place,
author = {Sartorato, Nicola and Zouridis, Ioannis S. and Narantsatsralt, Ulzii-Utas and Blanco-Hernández, Eduardo and Burgalossi, Andrea},
title = {{Place and behavioral modulation of hippocampal neurons during immobility}},
journal = {Nature communications},
year = {2026},
month = jul,
volume = {17},
number = {1},
pages = {7261},
publisher = {Nature Portfolio},
issn = {2041-1723},
doi = {10.1038/s41467-026-75492-w},
url = {https://doi.org/10.1038/s41467-026-75492-w},
pmid = {42498723},
pmcid = {PMC13400744}
}

RIS

TY - JOUR
AU - Sartorato, Nicola
AU - Zouridis, Ioannis S.
AU - Narantsatsralt, Ulzii-Utas
AU - Blanco-Hernández, Eduardo
AU - Burgalossi, Andrea
TI - Place and behavioral modulation of hippocampal neurons during immobility
T2 - Nature communications
J2 - Nat Commun
PY - 2026
DA - 2026/07/24
VL - 17
IS - 1
SP - 7261
SN - 2041-1723
PB - Nature Portfolio
DO - 10.1038/s41467-026-75492-w
UR - https://doi.org/10.1038/s41467-026-75492-w
LA - en
ER -

CSL-JSON

{
"id": "10.1038/s41467-026-75492-w",
"type": "article-journal",
"title": "Place and behavioral modulation of hippocampal neurons during immobility",
"container-title": "Nature communications",
"author": [
{
"family": "Sartorato",
"given": "Nicola"
},
{
"family": "Zouridis",
"given": "Ioannis S."
},
{
"family": "Narantsatsralt",
"given": "Ulzii-Utas"
},
{
"family": "Blanco-Hernández",
"given": "Eduardo"
},
{
"family": "Burgalossi",
"given": "Andrea"
}
],
"container-title-short": "Nat Commun",
"volume": "17",
"issue": "1",
"page": "7261",
"DOI": "10.1038/s41467-026-75492-w",
"PMID": "42498723",
"PMCID": "PMC13400744",
"ISSN": "2041-1723",
"publisher": "Nature Portfolio",
"URL": "https://doi.org/10.1038/s41467-026-75492-w",
"language": "en",
"issued": {
"date-parts": [
[
2026,
7,
24
]
]
}
}

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.1111/ejn.70302 [code]
Aversion Encoding and Behavioral State Modulation of Physiologically Defined Cell Types in the Lateral Habenula.
Journal: The European journal of neuroscience
In common: extracellular electrophysiology (units, LFP), mouse, 7 references, 2 authors
[2] doi:10.1038/s41467-023-41746-0 [code]
The medial septum controls hippocampal supra-theta oscillations.
Journal: Nature communications
In common: Signal Processing Toolbox, Statistics and Machine Learning Toolbox, systems, 13 references
[3] doi:10.1038/s41467-022-33507-2 [code]
Behaviourally modulated hippocampal theta oscillations in the ferret persist during both locomotion and immobility.
Journal: Nature communications
In common: Signal Processing Toolbox, Statistics and Machine Learning Toolbox, 13 references
[4] doi:10.7554/elife.85069 [code]
Mega-scale movie-fields in the mouse visuo-hippocampal network.
Journal: eLife
In common: Statistics and Machine Learning Toolbox, mouse, 13 references
[5] doi:10.1016/j.celrep.2024.114519 [code]
Circuit dynamics of superficial and deep CA1 pyramidal cells and inhibitory cells in freely moving macaques.
Journal: Cell reports
In common: Signal Processing Toolbox, Statistics and Machine Learning Toolbox, 11 references
[6] doi:10.1038/s41467-024-48374-2 [code]
Primacy of vision shapes behavioral strategies and neural substrates of spatial navigation in marmoset hippocampus.
Journal: Nature communications
In common: Signal Processing Toolbox, Statistics and Machine Learning Toolbox, 11 references
[7] doi:10.1016/j.celrep.2022.111700 [code]
Task-selective place cells show behaviorally driven dynamics during learning and stability during memory recall.
Journal: Cell reports
In common: Violinplot-Matlab, Signal Processing Toolbox, Statistics and Machine Learning Toolbox, extracellular electrophysiology (units, LFP), mouse, 9 references
[8] doi:10.1038/s41467-023-35825-5 [code]
Optogenetic frequency scrambling of hippocampal theta oscillations dissociates working memory retrieval from hippocampal spatiotemporal codes.
Journal: Nature communications
In common: Signal Processing Toolbox, Statistics and Machine Learning Toolbox, systems, 10 references
[9] doi:10.1038/s41467-025-67038-3 [code]
Time or distance encoding by hippocampal neurons via heterogeneous ramping rates.
Journal: Nature communications
In common: Violinplot-Matlab, Statistics and Machine Learning Toolbox, systems, mouse, 9 references
[10] doi:10.1038/s41467-024-50563-y [code]
Flexible neural population dynamics govern the speed and stability of sensory encoding in mouse visual cortex.
Journal: Nature communications
In common: Signal Processing Toolbox, Statistics and Machine Learning Toolbox, systems, mouse, 10 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.1038/s41467-026-75492-w.svg)](https://openscicode.org/badge/doi/10.1038/s41467-026-75492-w)
<!-- oscr-badge:end -->
reStructuredText
.. oscr-badge:start

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

.. oscr-badge:end
HTML
<!-- oscr-badge:start -->
<a href="https://openscicode.org/badge/doi/10.1038/s41467-026-75492-w"><img src="https://openscicode.org/badge/doi/10.1038/s41467-026-75492-w.svg" alt="OSCR"></a>
<!-- oscr-badge:end -->

On GitHub, open the README, choose Edit (the pencil), paste the snippet under the title, then "Commit changes".

If you choose to, you can have the badge kept up to date for you, with oscr badge --write from the command line or with the GitHub Action in your repository's workflows. Every other form and option (a card, AsciiDoc, LaTeX, shields.io) is on the badge page.

Request its removal

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

Discussion, reproductions, activity

Discussion: code errors and mismatches between the code and the paper about this paper and its code, from readers and its authors, beside the paper and its tracing map.

Report a mismatch between the code and the paper · Report a code error (signed in)

Reproductions: reports from readers who ran the authors' code and did not get the paper's result, what they ran, with which environment, commit and data.

Report a reproduction failure (signed in)

Versions of its code: the releases of its code tied to a version of this paper (the preprint, the accepted manuscript, the version of record…), each with the tracing map versioned with it.

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