OSCR

Retrosplenial cortex enables context-dependent goal-directed sensorimotor transformation.

Code ↔ Paper

21 matches between paragraphs of the paper and lines of its authors' code, computed by the harvester (lexical-v1). Click a colored paragraph or line to see its counterpart.

The 21 matches · 2 of them tie a paragraph to a whole file, not to given lines: weak matches, whose lines are not tinted
  1. [1] § Methods › Quantification and data analysis › Figure-specific analysis methods ↔ codes/utils/figure4C_G.py, lines 434–535 · score 0.88 · StandardScaler, variance explained, principal component, stim trials, catch trials, pivoted
  2. [2] § Methods › Quantification and data analysis › Gradient boosted decision tree model ↔ codes/utils/figure1KL.py, lines 215–300 · score 0.78 · log loss, Optuna, Hyperparameter, minimized, rounds, optimization
  3. [3] § Methods › Calcium imaging ↔ converters/widefield_to_nwb.py, lines 65–135 · score 0.75 · Hamamatsu Orca, jRGECO1a, dorsal cortex, SynchronousTrigger, excitatory, exposure
  4. [4] § Methods › Quantification and data analysis › Figure-specific analysis methods ↔ codes/utils/figure1KL.py, lines 302–423 · score 0.67 · feature perturbation, SHAP, interventional, interaction, prediction, model
  5. [5] § Methods › Behavioral task and training curriculum ↔ main_control.m, lines 217–309 · score 0.67 · whisker hit, mice licked, response window, carefully, pulse, delivered
  6. [6] § Methods › Quantification and data analysis › Gradient boosted decision tree model ↔ codes/utils/figure1IJ.py, lines 53–97 · score 0.65 · Jaw speed, whisker speed, pupil area, whisker angle, rewarded, mouse
  7. [7] § Methods › Quantification and data analysis › Figure-specific analysis methods ↔ codes/utils/figure4C_G.py, lines 434–535 · score 0.64 · tjM1, tjS1, coefficient, ALM, space, correlation
  8. [8] § Methods › Behavioral task and training curriculum ↔ update_parameters.m, lines 42–153 · score 0.63 · inter trial interval, response window, detection, weight, ms, threshold
  9. [9] § Results › Rapid behavioral adaptation to sensory stimuli in a changing context ↔ utils_opto/rescue_gui.m, the whole file · a weak match · score 0.61 · brown noise, pink noise, response window, punished, delivered, background
  10. [10] § Results › Rapid behavioral adaptation to sensory stimuli in a changing context ↔ update_parameters.m, lines 1–40 · score 0.61 · brown noise, pink noise, response window, punished, delivered, rewarded
  11. [11] § Results › Rapid behavioral adaptation to sensory stimuli in a changing context ↔ codes/utils/figure1IJ.py, lines 12–51 · score 0.60 · Jaw speed, jaw angle, quiet window, whisker speed, baseline, Figure 1
  12. [12] § Results › Rapid behavioral adaptation to sensory stimuli in a changing context ↔ utils_plots/plot_performance.m, the whole file · a weak match · score 0.59 · alarm rate, hit rate, Lick rates, reward, auditory, stimulus
  13. [13] § Methods › Quantification and data analysis › Figure-specific analysis methods ↔ main_analysis/model_context_behaviour.py, lines 19–145 · score 0.57 · Pupil area, whisker angle, likelihood, subtracted, filtered, threshold
  14. [14] § Results › Rapid behavioral adaptation to sensory stimuli in a changing context ↔ update_parameters.m, lines 287–339 · score 0.56 · background noise, context sounds, context blocks, reward, stimulus, Mice
  15. [15] § Methods › Implantation of headpost and skull preparation ↔ converters/widefield_to_nwb.py, lines 65–135 · score 0.55 · left hemisphere, widefield imaging, dorsal cortex, optically
  16. [16] § Methods › Quantification and data analysis › Seed correlations ↔ main_analysis/figure4_analysis.py, lines 149–172 · score 0.55 · tjM1, tjS1, S2, ALM, ROI, RSC
  17. [17] § Methods › Quantification and data analysis › Figure-specific analysis methods ↔ main_analysis/process_deeplabcut_data.py, lines 50–110 · score 0.54 · Pupil area, whisker angle, likelihood, filtered, threshold, timestamps
  18. [18] § Methods › Quantification and data analysis › Figure-specific analysis methods ↔ main_analysis/figure4_analysis.py, lines 149–172 · score 0.53 · tjM1, tjS1, ALM, ROI, RSC, traces
  19. [19] § Results › Rapid behavioral adaptation to sensory stimuli in a changing context ↔ codes/utils/figure1IJ.py, lines 53–97 · score 0.53 · jaw speed, pupil area, whisker angle, licking, Figure 1, mouse
  20. [20] § Methods › Quantification and data analysis › Gradient boosted decision tree model ↔ main_control.m, lines 217–309 · score 0.52 · correct rejection, context block, variables, hit, window, rewarded
  21. [21] § Results › Rapid behavioral adaptation to sensory stimuli in a changing context ↔ codes/utils/figure3_supp.py, lines 520–599 · score 0.52 · whisker speed, jaw opening, Whisker angle, Vertical, traces, whisker trials

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

Python · 301 lines · 15 KB · MIT · 3 matches

  1. import gc
  2. import os
  3. import seaborn as sns
  4. import pandas as pd
  5. import numpy as np
  6. from scipy.stats import ttest_rel
  7. import matplotlib.pyplot as plt
  8. from codes.utils.misc.fig_saving import save_fig
  9. from codes.utils.misc.table_saving import save_table
  10. def plot_baseline_differences(side_dlc_data, top_dlc_data, save_path, supp_save_path, figname,
  11. fig_formats=['png', 'svg']):
  12. s_path = os.path.join(supp_save_path, 'figure1_supp2')
  13. if not os.path.exists(s_path):
  14. os.makedirs(s_path)
  15. print('Data formatting')
  16. uncentered_combined_side_data = side_dlc_data.copy(deep=True)
  17. uncentered_combined_top_data = top_dlc_data.copy(deep=True)
  18. del side_dlc_data, top_dlc_data
  19. gc.collect()
  20. # DATA : processing
  21. uncentered_combined_side_data['jaw_angle'] = 90 - uncentered_combined_side_data['jaw_angle']
  22. uncentered_combined_side_data['trial_count'] = (uncentered_combined_side_data['time'].diff().abs() > 1).cumsum()
  23. trial_counts = uncentered_combined_side_data['trial_count'].to_numpy()
  24. jaw_y = uncentered_combined_side_data['jaw_y'].to_numpy()
  25. jaw_speed_vals = np.empty(len(jaw_y), dtype=jaw_y.dtype)
  26. jaw_speed_vals[0] = np.nan
  27. same_trial = trial_counts[1:] == trial_counts[:-1]
  28. jaw_speed_vals[1:] = np.where(same_trial, np.abs(np.diff(jaw_y)), np.nan)
  29. uncentered_combined_side_data['jaw_speed'] = jaw_speed_vals * 200
  30. del jaw_speed_vals, trial_counts, jaw_y
  31. gc.collect()
  32. uncentered_combined_top_data['whisker_speed'] = uncentered_combined_top_data['whisker_velocity'].abs() * 200
  33. uncentered_combined_top_data['trial_count'] = (uncentered_combined_top_data['time'].diff().abs() > 1).cumsum()
  34. # DATA : time selection (quiet window)
  35. uncentered_combined_side_data = uncentered_combined_side_data[
  36. uncentered_combined_side_data.time < 0].copy()
  37. uncentered_combined_top_data = uncentered_combined_top_data[
  38. uncentered_combined_top_data.time < 0].copy()
  39. gc.collect()
  40. # DATA : correct choice
  41. uncentered_combined_top_data['correct_choice'] = uncentered_combined_top_data['correct_choice'].astype(bool)
  42. uncentered_combined_side_data['correct_choice'] = uncentered_combined_side_data['correct_choice'].astype(bool)
  43. # DATA : readable legends
  44. uncentered_combined_side_data['legend'] = (
  45. uncentered_combined_side_data['context'] + ' - ' +
  46. uncentered_combined_side_data['correct_choice'].map({True: 'correct', False: 'incorrect', 1: 'correct', 0: 'incorrect'})
  47. )
  48. uncentered_combined_side_data['stim_type'] = uncentered_combined_side_data['trial_type'].str.split('_').str[0]
  49. uncentered_combined_side_data = uncentered_combined_side_data.loc[
  50. uncentered_combined_side_data.trial_type.str.contains('trial')]
  51. uncentered_combined_top_data['legend'] = (
  52. uncentered_combined_top_data['context'] + ' - ' +
  53. uncentered_combined_top_data['correct_choice'].map({True: 'correct', False: 'incorrect', 1: 'correct', 0: 'incorrect'})
  54. )
  55. uncentered_combined_top_data['stim_type'] = uncentered_combined_top_data['trial_type'].str.split('_').str[0]
  56. uncentered_combined_top_data = uncentered_combined_top_data.loc[
  57. uncentered_combined_top_data.trial_type.str.contains('trial')]
  58. # DATA : final average and merge side and top
  59. print('Data averaging')
  60. groupby_cols = ['mouse_id', 'session_id', 'context', 'context_background',
  61. 'trial_type', 'correct_choice', 'legend', 'stim_type', 'trial_count']
  62. side_agg = uncentered_combined_side_data.groupby(by=groupby_cols).agg(
  63. {'jaw_y': 'mean', 'jaw_speed': 'mean', 'pupil_area': 'mean'}).reset_index()
  64. del uncentered_combined_side_data
  65. gc.collect()
  66. top_agg = uncentered_combined_top_data.groupby(by=groupby_cols).agg(
  67. {'whisker_angle': 'mean', 'whisker_speed': 'mean'}).reset_index()
  68. del uncentered_combined_top_data
  69. gc.collect()
  70. data = side_agg.merge(top_agg[['trial_count', 'whisker_angle', 'whisker_speed']], on='trial_count')
  71. del side_agg, top_agg
  72. gc.collect()
  73. data = data.melt(
  74. id_vars=['mouse_id', 'session_id', 'context', 'trial_type', 'correct_choice', 'legend', 'stim_type',
  75. 'trial_count'], value_vars=['jaw_y', 'jaw_speed', 'pupil_area', 'whisker_angle', 'whisker_speed'],
  76. var_name='bodypart')
  77. data['correct_choice'] = data.correct_choice.astype(bool)
  78. data['lick'] = data['legend'].map(
  79. {'non-rewarded - incorrect': 1, 'non-rewarded - correct': 0, 'rewarded - correct': 1,
  80. 'rewarded - incorrect': 0}).astype(bool)
  81. # DATA : only whisker trials
  82. data = data[data.stim_type == 'whisker'].copy()
  83. gc.collect()
  84. data['value'] = pd.to_numeric(data['value'], errors='coerce')
  85. n_comparisons = 20
  86. # ── shared stats helper ────────────────────────────────────────────────
  87. def compute_stats(name, correct, incorrect):
  88. cv = correct['value'].values.astype(float)
  89. iv = incorrect['value'].values.astype(float)
  90. diff = cv - iv
  91. std_diff = np.std(diff, ddof=1)
  92. t, p = ttest_rel(cv, iv)
  93. return {
  94. 'dof': correct.mouse_id.unique().shape[0] - 1,
  95. 'mean_correct': correct['value'].mean(),
  96. 'std_correct': correct['value'].std(),
  97. 'mean_incorrect': incorrect['value'].mean(),
  98. 'std_incorrect': incorrect['value'].std(),
  99. 't': t,
  100. 'p': np.round(p, 8),
  101. 'p_corr': p * n_comparisons,
  102. 'alpha': 0.05,
  103. 'alpha_corr': 0.05 / n_comparisons,
  104. 'significant': p * n_comparisons < 0.05,
  105. 'd_prime': abs(correct['value'].mean() - incorrect['value'].mean()) / std_diff,
  106. }
  107. # ───────────────────────────────────────────────────────────────────────
  108. # CONTEXT EFFECT
  109. print(' ')
  110. print('Context effect ... ')
  111. context_data = data.drop(['trial_type', 'correct_choice', 'legend', 'stim_type', 'lick'], axis=1).groupby(
  112. by=['mouse_id', 'session_id', 'context', 'bodypart'], as_index=False).agg('mean')
  113. context_data = context_data.drop('session_id', axis=1).groupby(
  114. by=['mouse_id', 'context', 'bodypart'], as_index=False).agg('mean')
  115. stats = []
  116. for name, group in context_data.groupby(by='bodypart'):
  117. correct = group.loc[group.context == 'rewarded'].dropna()
  118. incorrect = group.loc[group.context == 'non-rewarded'].dropna()
  119. if correct.shape[0] != incorrect.shape[0]:
  120. correct = correct[correct.mouse_id.isin(incorrect.mouse_id)]
  121. row = compute_stats(name, correct, incorrect)
  122. row['bodypart'] = name
  123. stats.append(row)
  124. stats = pd.DataFrame(stats)
  125. save_table(stats, s_path, 'Figure1_supp2BC_context_stats')
  126. print('Stats done')
  127. fig, axes = plt.subplots(1, len(context_data.bodypart.unique()), figsize=(12, 3))
  128. for ax, part in zip(axes.flat, context_data.bodypart.unique()):
  129. subset = context_data[context_data.bodypart == part].dropna()
  130. ax.set_title(f"delta {part} \nn = {stats.loc[(stats.bodypart == part), 'dof'].to_numpy()[0] + 1}")
  131. ax.spines[['top', 'right']].set_visible(False)
  132. sns.pointplot(subset, x='context', y='value', hue='context', legend=False,
  133. order=['non-rewarded', 'rewarded'], palette=['#6E188A', '#348A18'],
  134. estimator='mean', errorbar=('ci', 95), markers='o',
  135. linestyle='none', dodge=True, ax=ax)
  136. pivoted = subset.pivot(index='mouse_id', columns='context', values='value').dropna()
  137. for _, row in pivoted.iterrows():
  138. ax.plot([0.1, 0.9], row.values, color='gray', alpha=0.4, linewidth=3)
  139. if stats.loc[stats.bodypart == part, 'significant'].any():
  140. star_loc = max(ax.get_ylim())
  141. ax.scatter(.5, stats.loc[(stats.bodypart == part), 'significant'].map(
  142. {True: 1}).to_numpy() * star_loc * 0.9, marker='*', s=100, c='k')
  143. ax.margins(x=0.25)
  144. fig.tight_layout()
  145. save_fig(fig, s_path, figname + '_supp2BC_context', fig_formats)
  146. print('Plots done')
  147. # LICK EFFECT
  148. print(' ')
  149. print('Lick effect ...')
  150. lick_data = data.drop(['trial_type', 'correct_choice', 'legend', 'stim_type', 'context'], axis=1).groupby(
  151. by=['mouse_id', 'session_id', 'lick', 'bodypart'], as_index=False).agg('mean')
  152. lick_data = lick_data.drop('session_id', axis=1).groupby(
  153. by=['mouse_id', 'lick', 'bodypart'], as_index=False).agg('mean')
  154. stats = []
  155. for name, group in lick_data.groupby(by='bodypart'):
  156. correct = group.loc[group.lick == True].dropna()
  157. incorrect = group.loc[group.lick == False].dropna()
  158. if correct.shape[0] != incorrect.shape[0]:
  159. correct = correct[correct.mouse_id.isin(incorrect.mouse_id)]
  160. row = compute_stats(name, correct, incorrect)
  161. row['bodypart'] = name
  162. stats.append(row)
  163. stats = pd.DataFrame(stats)
  164. save_table(stats, s_path, 'Figure1_supp2BC_lick_stats')
  165. print('Stats done')
  166. fig, axes = plt.subplots(1, len(lick_data.bodypart.unique()), figsize=(12, 3))
  167. for ax, part in zip(axes.flat, lick_data.bodypart.unique()):
  168. subset = lick_data[lick_data.bodypart == part].dropna()
  169. ax.set_title(f"delta {part} \nn = {stats.loc[(stats.bodypart == part), 'dof'].to_numpy()[0] + 1}")
  170. ax.spines[['top', 'right']].set_visible(False)
  171. sns.pointplot(subset, x='lick', y='value', hue='lick', legend=False,
  172. order=[False, True], palette=['#a0a0a0', '#000000'],
  173. estimator='mean', errorbar=('ci', 95), markers='o',
  174. linestyle='none', dodge=True, ax=ax)
  175. pivoted = subset.pivot(index='mouse_id', columns='lick', values='value').dropna()
  176. for _, row in pivoted.iterrows():
  177. ax.plot([0.1, 0.9], row.values, color='gray', alpha=0.4, linewidth=3)
  178. if stats.loc[stats.bodypart == part, 'significant'].any():
  179. star_loc = max(ax.get_ylim())
  180. ax.scatter(.5, stats.loc[(stats.bodypart == part), 'significant'].map(
  181. {True: 1}).to_numpy() * star_loc * 0.9, marker='*', s=100, c='k')
  182. ax.margins(x=0.25)
  183. fig.tight_layout()
  184. save_fig(fig, s_path, figname + '_supp2BC_lick', fig_formats)
  185. print('Plots done')
  186. # CONTEXT - LICK INTERACTION EFFECT
  187. print(' ')
  188. print('Context - Lick interaction effect ...')
  189. lick_vs_context_data = data.drop(['trial_type', 'correct_choice', 'legend', 'stim_type'], axis=1).groupby(
  190. by=['mouse_id', 'session_id', 'context', 'lick', 'bodypart'], as_index=False).agg('mean')
  191. lick_vs_context_data = lick_vs_context_data.drop('session_id', axis=1).groupby(
  192. by=['mouse_id', 'context', 'lick', 'bodypart'], as_index=False).agg('mean')
  193. lick_vs_context_data['legend'] = (
  194. lick_vs_context_data['context'] + ' - ' +
  195. lick_vs_context_data['lick'].map({True: 'lick', False: 'no-lick'})
  196. )
  197. del data
  198. gc.collect()
  199. stats = []
  200. for name, group in lick_vs_context_data.groupby(by=['bodypart', 'context']):
  201. correct = group.loc[group.lick == True].dropna()
  202. incorrect = group.loc[group.lick == False].dropna()
  203. if correct.shape[0] != incorrect.shape[0]:
  204. correct = correct[correct.mouse_id.isin(incorrect.mouse_id)]
  205. row = compute_stats(name, correct, incorrect)
  206. row['bodypart'] = name[0]
  207. row['context'] = name[1]
  208. stats.append(row)
  209. stats = pd.DataFrame(stats)
  210. save_table(stats, save_path, 'Figure1IJ_stats')
  211. print('Stats done')
  212. palette = {'non-rewarded - no-lick': '#C5A2D0',
  213. 'non-rewarded - lick': '#6E188A',
  214. 'rewarded - no-lick': '#ADD0A2',
  215. 'rewarded - lick': '#348A18'}
  216. legend_order = ['non-rewarded - no-lick', 'non-rewarded - lick', 'rewarded - no-lick', 'rewarded - lick']
  217. reference = 'non-rewarded - no-lick'
  218. norm_df = []
  219. for i, row in lick_vs_context_data.iterrows():
  220. mouse_id = row.mouse_id
  221. bodypart = row.bodypart
  222. ref_val = lick_vs_context_data.loc[
  223. (lick_vs_context_data.mouse_id == mouse_id) &
  224. (lick_vs_context_data.bodypart == bodypart) &
  225. (lick_vs_context_data.legend == reference), 'value'].to_numpy()
  226. if len(ref_val) > 0:
  227. row = row.copy()
  228. row['value'] = float(row['value']) - float(ref_val[0])
  229. norm_df += [row]
  230. norm_df = pd.DataFrame(norm_df)
  231. norm_df['value'] = pd.to_numeric(norm_df['value'], errors='coerce')
  232. lick_vs_context_data = norm_df
  233. fig, axes = plt.subplots(1, len(lick_vs_context_data.bodypart.unique()), figsize=(12, 3))
  234. for ax, part in zip(axes.flat, lick_vs_context_data.bodypart.unique()):
  235. ax.set_title(f"delta {part} \nn = {stats.loc[(stats.bodypart == part), 'dof'].unique()[0] + 1}")
  236. ax.margins(x=0.25)
  237. ax.spines[['top', 'right']].set_visible(False)
  238. subset = lick_vs_context_data[lick_vs_context_data.bodypart == part].dropna()
  239. subset = subset.copy()
  240. subset['legend'] = subset['context'] + ' - ' + subset['lick'].map({True: 'lick', False: 'no-lick'})
  241. sns.pointplot(subset, x='legend', y='value', hue='legend',
  242. order=legend_order, hue_order=legend_order, palette=palette,
  243. estimator='mean', errorbar=('ci', 95), markers='o',
  244. linestyle='none', dodge=False, ax=ax)
  245. legend = ax.get_legend()
  246. if legend is not None:
  247. legend.set_visible(False)
  248. ax.set_xlabel('')
  249. ax.set_xticklabels([])
  250. for c in lick_vs_context_data.context.unique():
  251. no_lick_label = f"{c} - no-lick"
  252. lick_label = f"{c} - lick"
  253. pivoted = (subset.loc[subset.context == c]
  254. .pivot(index='mouse_id', columns='lick', values='value')
  255. .dropna())
  256. for _, row in pivoted.iterrows():
  257. ax.plot([no_lick_label, lick_label], row.values, color='gray', alpha=0.4, linewidth=3)
  258. is_significant = stats.loc[
  259. (stats.bodypart == part) & (stats.context == c), 'significant'].values
  260. if len(is_significant) > 0 and is_significant[0]:
  261. ax.annotate('*', xy=(lick_label, max(ax.get_ylim()) * 0.9),
  262. ha='center', va='bottom', fontsize=14, color='k')
  263. fig.tight_layout()
  264. save_fig(fig, save_path, figname + 'IJ', fig_formats)
  265. print('Plots done')

figure1IJ.py at commit 91f04fd, under MIT · at the source

Overview

Authors: Pol Bech1, Robin F Dard1, Jules Lebert1, Lana Smith1, Axel Bisi1, Anthony Renard1, Sylvain Crochet1, Carl CH Petersen1
  1. Laboratory of Sensory Processing, Brain Mind Institute, School of Life Sciences, Ecole Polytechnique Fédérale de Lausanne (EPFL) Lausanne Switzerland
Journal: eLife, volume 14, article RP109717
Dates: published online 29 June 2026
Type: Research article · Language: English
License: CC BY
Identifiers: DOI 10.7554/elife.109717 · PMID 42372004 · PMCID PMC13313688 · OpenAlex W7117558464
Open access: gold, a free copy (OpenAlex)
Status: code verified
Categories: mouse (organism), systems (subfield)
Methods: Spectral & time-frequency, Statistics, Smoothing, state filtering, decompositions, Machine learning, Evoked potentials, Connectivity, fMRI & imaging, Single-unit activity, calcium imaging, Physiology & signal measures
Keywords: whisker sensory perception, context-dependent sensory processing, somatosensory cortex, frontal cortex, retrosplenial cortex, optical imaging, Mouse
MeSH: Gyrus Cinguli*, Motor Cortex*, Somatosensory Cortex*, Animals, Brain Mapping, Goals, Mice, Neurons, Optogenetics, Vibrissae (* major topic)
Journal subjects: Neuroscience
Topic: Neural dynamics and brain function (Cognitive Neuroscience, Neuroscience), according to OpenAlex
Funding: Schweizerischer Nationalfonds zur Förderung der Wissenschaftlichen Forschung (31003A_182010, 310030_219343, TMAG-3_209271)
Citations: not cited yet (Europe PMC); 116 references in the paper

Abstract

The ability to dynamically adjust a behavioral response to a stimulus depending on context is of critical importance for animals. To investigate the neural basis supporting context-dependent sensory processing, we developed a behavioral task in which mice changed their response to a single whisker deflection according to a continuously present contextual cue. Through unbiased optogenetic inactivation mapping, we found that neuronal activity in sensory and motor cortices contributed to task execution and, interestingly, we uncovered an unexpected role of the retrosplenial cortex (RSC) for contextual integration. Widefield calcium imaging revealed that the RSC was the first dorsal cortical area to show context discrimination in response to whisker stimulation, followed by the whisker motor cortex. Finally, we combined optogenetic inactivation with calcium imaging to define causal context-dependent changes in sensorimotor processing. Our cortex-wide mapping experiments thus begin to define key cortical nodes for context-dependent sensorimotor transformation and highlight an important contribution of RSC.

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

LSENS-BMI-EPFL/behavior_control

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

LSENS-BMI-EPFL/NWB_converter

License: none: the authors keep all their rights
State: the link answers, verified on 27 September 2026
Evidence: files inventoried
Commit: 96afc9b049aa887597325d3451eda3216ecf31a7, 27 September 2026
Languages: Python (32), Jupyter (2)
Size: 39 files, 34 scripts
Software Heritage: not archived
Found in: “Code availability”
Holds: README, environment (environment.yml, pyproject.toml), 2 notebooks
Not found: license file, CITATION.cff, tests, continuous integration, documentation
Tools: NumPy (26 files), pandas (16 files), Matplotlib (12 files), Neurodata Without Borders (PyNWB, MatNWB) (12 files), SciPy (8 files), imageio (3 files), Pillow (3 files), OpenCV (2 files), h5py (1 file), Kilosort (1 file), scikit-image (1 file), tifffile (1 file)
Availability: 1 check, the latest on 27 September 2026: the link answers
  • 27 September 2026: the link answers
35 files

LSENS-BMI-EPFL/Bech_Dard_process_NWB

License: none: the authors keep all their rights
State: the link answers, verified on 27 September 2026
Evidence: files inventoried
Commit: 212a63103528cdeafb6ebcf90a50235cd2290082, 30 June 2026
Languages: Python (16)
Size: 59 files, 16 scripts
Software Heritage: not archived
Found in: “Code availability”
Holds: README, environment (pyproject.toml)
Not found: license file, CITATION.cff, tests, continuous integration, documentation
Tools: NumPy (11 files), pandas (11 files), SciPy (3 files), Matplotlib (2 files), h5py (1 file), Numba (1 file), Neurodata Without Borders (PyNWB, MatNWB) (1 file), seaborn (1 file), statsmodels (1 file)
Availability: 1 check, the latest on 27 September 2026: the link answers
  • 27 September 2026: the link answers
17 files

LSENS-BMI-EPFL/Bech_Dard_plot_figures

License: MIT
State: the link answers, verified on 27 September 2026
Evidence: files inventoried
Commit: 91f04fd782e609e53e800f33009c9b1f815ddf18, 30 June 2026
Languages: Python (49)
Size: 54 files, 49 scripts
Software Heritage: not archived
Found in: “Code availability”
Holds: README, license file
Not found: CITATION.cff, environment file, tests, continuous integration, documentation
Tools: pandas (29 files), Matplotlib (26 files), NumPy (25 files), seaborn (20 files), SciPy (10 files), scikit-learn (3 files), scikit-image (2 files), SHAP (2 files), XGBoost (2 files)
Availability: 1 check, the latest on 27 September 2026: the link answers
  • 27 September 2026: the link answers
51 files

Zenodo 17424306

License: CC-BY-4.0
State: the link answers, verified on 27 September 2026
Evidence: files inventoried
Size: 2 files
Software Heritage: not checked
Found in: “Code availability”
Not found: README, license file, CITATION.cff, environment file, tests, continuous integration, documentation
Availability: 1 check, the latest on 27 September 2026: the link answers (HTTP 200)
  • 27 September 2026: the link answers (HTTP 200)

Code availability

Code for data acquisition and behavior control is available on Github (https://github.com/LSENS-BMI-EPFL/behavior_control, copy archived at Bech et al., 2026a). All the code used to preprocess and convert the data into NWB format is available on Github (https://github.com/LSENS-BMI-EPFL/NWB_converter, copy archived at Bech et al., 2026b). All the code used for the primary analysis of the NWB dataset and generation of intermediate data is available on Github (https://github.com/LSENS-BMI-EPFL/Bech_Dard_process_NWB, copy archived at Bech et al., 2026c). The code used to generate figure panels from intermediate data is available both on Github (https://github.com/LSENS-BMI-EPFL/Bech_Dard_plot_figures) and Zenodo at 10.5281/zenodo.17424306 (https://doi.org/10.5281/zenodo.17424306).

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:

  • 5 repositories of the authors' code, each at its verified commit, with its license and how the link was found in the paper;
  • 139 scripts, each with its path and the digest of its content;
  • 21 matches between paragraphs of the paper and lines of the code (method lexical-v1);
  • neither the text of the paper nor the code itself.

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

Data

Datasets cited

Data availability

For each imaging session, imaging data, behavioral data, cortical region contours, and calcium traces were combined into a single NWB file. NWB offers a common format for sharing and analyzing neurophysiology data (Rübel et al., 2022). Subsequently, we developed open-source Python scripts to analyze data in the NWB format. The full dataset in NWB format is available on the DANDI archive (https://doi.org/10.48324/dandi.001847/0.260610.1400) and processed data is available on Zenodo at https://doi.org/10.5281/zenodo.17424306.

The following datasets were generated:

BechP DardRF LebertJ SmithL BisiA RenardA CrochetS PetersenCCH 2026Retrosplenial cortex enables context-dependent goal-directed sensorimotor transformationDANDI10.48324/dandi.001847/0.260610.1400PMC1331368842372004

BechP DardRF LebertJ SmithL BisiA RenardA CrochetS PetersenCCH 2026Data set for "Retrosplenial cortex enables context-dependent goal-directed sensorimotor transformation"Zenodo10.5281/zenodo.17424306PMC1331368842372004

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, pages, dates, 8 authors, 7 keywords, 10 MeSH terms, 1 funder, 112 references.

Cite

This paper

Bech, P., Dard, R. F., Lebert, J., Smith, L., Bisi, A., Renard, A., Crochet, S., & Petersen, C. C. (2026). Retrosplenial cortex enables context-dependent goal-directed sensorimotor transformation. eLife, 14, RP109717. https://doi.org/10.7554/elife.109717

BibTeX

@article{bech2026retrosplenial,
author = {Bech, Pol and Dard, Robin F and Lebert, Jules and Smith, Lana and Bisi, Axel and Renard, Anthony and Crochet, Sylvain and Petersen, Carl CH},
title = {{Retrosplenial cortex enables context-dependent goal-directed sensorimotor transformation}},
journal = {eLife},
year = {2026},
month = jun,
volume = {14},
pages = {RP109717},
publisher = {eLife Sciences Publications, Ltd},
issn = {2050-084X},
doi = {10.7554/elife.109717},
url = {https://doi.org/10.7554/elife.109717},
pmid = {42372004},
pmcid = {PMC13313688}
}

RIS

TY - JOUR
AU - Bech, Pol
AU - Dard, Robin F
AU - Lebert, Jules
AU - Smith, Lana
AU - Bisi, Axel
AU - Renard, Anthony
AU - Crochet, Sylvain
AU - Petersen, Carl CH
TI - Retrosplenial cortex enables context-dependent goal-directed sensorimotor transformation
T2 - eLife
J2 - Elife
PY - 2026
DA - 2026/06/29
VL - 14
SP - RP109717
SN - 2050-084X
PB - eLife Sciences Publications, Ltd
DO - 10.7554/elife.109717
UR - https://doi.org/10.7554/elife.109717
LA - en
ER -

CSL-JSON

{
"id": "10.7554/elife.109717",
"type": "article-journal",
"title": "Retrosplenial cortex enables context-dependent goal-directed sensorimotor transformation",
"container-title": "eLife",
"author": [
{
"family": "Bech",
"given": "Pol"
},
{
"family": "Dard",
"given": "Robin F"
},
{
"family": "Lebert",
"given": "Jules"
},
{
"family": "Smith",
"given": "Lana"
},
{
"family": "Bisi",
"given": "Axel"
},
{
"family": "Renard",
"given": "Anthony"
},
{
"family": "Crochet",
"given": "Sylvain"
},
{
"family": "Petersen",
"given": "Carl CH"
}
],
"container-title-short": "Elife",
"volume": "14",
"page": "RP109717",
"DOI": "10.7554/elife.109717",
"PMID": "42372004",
"PMCID": "PMC13313688",
"ISSN": "2050-084X",
"publisher": "eLife Sciences Publications, Ltd",
"URL": "https://doi.org/10.7554/elife.109717",
"language": "en",
"issued": {
"date-parts": [
[
2026,
6,
29
]
]
}
}

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-026-73622-y [code]
Contextual gating of whisker-evoked responses by frontal cortex supports flexible decision making.
Journal: Nature communications
In common: Statistics and Machine Learning Toolbox, mouse, 29 references, 2 authors
[2] doi:10.1038/s41593-026-02232-0 [code]
Entorhinal cortex represents task-relevant remote locations independently of CA1.
Journal: Nature neuroscience
In common: Kilosort, Neurodata Without Borders (PyNWB, MatNWB), Numba, 12 other tools, systems, mouse, 1 reference
[3] doi:10.7554/elife.110588 [code]
Opening the black box toward a modular approach to spike sorting.
Journal: eLife
In common: Kilosort, Neurodata Without Borders (PyNWB, MatNWB), XGBoost, 10 other tools, mouse, 1 reference
[4] doi:10.1016/j.isci.2026.116825 [code]
Social hierarchy shapes behavioral and transcriptional responses to chronic stress and ketamine in male mice.
Journal: iScience
In common: SHAP, XGBoost, Numba, 11 other tools, systems, mouse, 1 reference
[5] doi:10.1038/s42003-026-10957-8 [code]
Brain defence by the extracellular matrix protein Cochlin.
Journal: Communications biology
In common: SHAP, XGBoost, Numba, 11 other tools, mouse, 1 reference
[6] doi:10.1038/s41467-026-76581-6 [code]
Thalamocortical bursts encode reward contingencies and drive associative learning.
Journal: Nature communications
In common: Kilosort, OpenCV, h5py, 7 other tools, systems, mouse, 4 references
[7] doi: [code]
Real-time closed-loop feedback system for mouse mesoscale cortical signal and movement control
Journal: eLife
In common: imageio, tifffile, Numba, 11 other tools, mouse, 1 reference
[8] doi:10.1016/j.celrep.2026.117420 [code]
Neural population dynamics of direct electrical stimulation of neocortex.
Journal: Cell reports
In common: Neurodata Without Borders (PyNWB, MatNWB), imageio, OpenCV, 9 other tools, systems, mouse, 2 references
[9] doi:10.1038/s41467-026-75347-4 [code]
Sleep reveals dynamics integrating and segregating movement and stimulus representations in V1.
Journal: Nature communications
In common: Neurodata Without Borders (PyNWB, MatNWB), imageio, Numba, 8 other tools, systems, mouse, 2 references
[10] doi:10.1016/j.patter.2026.101590 [code]
Density-based longitudinal neuron tracking in high-density electrophysiological recordings.
Journal: Patterns (New York, N.Y.)
In common: Kilosort, imageio, h5py, 9 other tools, 2 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.

Request its removal

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

Discussion, reproductions, activity

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

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

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