OSCR

Complementary roles of cell-type-specific plasticity in shaping neocortical dynamics for learning action timing.

Code ↔ Paper

3 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 3 matches
  1. [1] § Methods › Extracellular recording analysis ↔ plotNWBdata.m, lines 1–124 · score 0.63 · spike width, fast spiking, Putative, PSTHs, Extracellular, ALM
  2. [2] § Methods › Extracellular recording analysis ↔ plotNWBdata.m, lines 127–216 · score 0.63 · spike rate, smoothed, filter, causal, PSTHs, lick
  3. [3] § Results › CaMKII activity in ALM is necessary to learn new lick timing ↔ plotNWBdata.m, lines 1–124 · score 0.54 · delay duration, trial onset, cue onset, rewarded, ALM, lick

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

MATLAB · 233 lines · 6.1 KB · no license · 3 matches

  1. function [] = plotNWBdata()
  2. % code to plot data in https://dandiarchive.org/dandiset/001848
  3. % modified the original code to plot NWB data @ https://neurodatawithoutborders.github.io/matnwb/tutorials/html/basicUsage.html
  4. % modified by Hidehiko 7/5/2026
  5. % add matnwb to your path
  6. addpath('matnwb-main');
  7. nwb = nwbRead('MI91_03032022_ALM.nwb');
  8. plot_cell_id = 6;
  9. %% read nwb file
  10. unit_names = keys(nwb.analysis);
  11. unit_ids = nwb.units.id.data.load(); % array of unit ids represented within this
  12. % Initialize trials & times Map containers indexed by unit_ids
  13. unit_trials = containers.Map('KeyType',class(unit_ids),'ValueType','any');
  14. unit_times = containers.Map('KeyType',class(unit_ids),'ValueType','any');
  15. last_idx = 0;
  16. for i = 1:length(unit_ids)
  17. unit_id = unit_ids(i);
  18. row = nwb.units.getRow(unit_id, 'useId', true, 'columns', {'spike_times', 'trialsID'});
  19. unit_trials(unit_id) = row.trialsID{1};
  20. unit_times(unit_id) = row.spike_times{1};
  21. end
  22. sorted_ids = sort(unit_ids);
  23. Photostim = struct(...
  24. 'ind', true,... % mask into xs and ys for this photostim
  25. 'name', 'none',...
  26. 'stim_duration', 0,... % in seconds after the onset of normal go cue
  27. 'stim_onset', 0); % in seconds after the onset of normal go cue
  28. % Initialize Map container of plotting data for each unit, stored as structure
  29. Unit = containers.Map('KeyType',class(unit_ids),'ValueType','any');
  30. unit_struct = struct(...
  31. 'id', [],...
  32. 'xs', [],...
  33. 'ys', [],...
  34. 'xlim', [-Inf Inf],...
  35. 'trialID',[],...
  36. 'trialTypes', 0,...
  37. 'spikeWidth',[],...
  38. 'cellTypes',[],...
  39. 'ontology',[],...
  40. 'photostim', Photostim); % can have multiple photostim
  41. % read data from indv units
  42. for unit_id = unit_ids'
  43. unit_trial_id = unit_trials(unit_id);
  44. % extract good trials to find trial range
  45. trial = nwb.intervals_trials.getRow(unit_trial_id, 'useId', true,...
  46. 'columns', {'CueOnset','GoodTrials'});
  47. unit_good_trials = logical(trial.GoodTrials) & ~isnan(trial.CueOnset);
  48. unit_trial_id = unit_trial_id(unit_good_trials);
  49. unit_spike_time = unit_times(unit_id);
  50. unit_spike_time = unit_spike_time(unit_good_trials) - trial.CueOnset(unit_good_trials); % algin to cue
  51. % count number of trials per condition
  52. % we need to do this as there could be trial w.o. spikes
  53. first_trial = min(unit_trial_id);
  54. last_trial = max(unit_trial_id);
  55. trialIDs = first_trial:last_trial;
  56. trial_in_range = nwb.intervals_trials.getRow(first_trial:last_trial, 'useId', true,...
  57. 'columns', {'CueOnset', 'DelayDuration', 'FirstLick', 'GoodTrials',...
  58. 'Unrewarded','Rewarded','NoLick','NoCue','start_time','ActualTrialOnsetTime'});
  59. % spike width
  60. SpikeWidth = nwb.general_extracellular_ephys_electrodes.getRow(1, 'useId', true,...
  61. 'columns', {'spike_width'});
  62. % note SpikeWidth>0.5 is regular spiking cells, <0.35 is fast spiking
  63. % (FS) cells.
  64. % putative cell type
  65. CellTypes = nwb.general_extracellular_ephys_electrodes.getRow(1, 'useId', true,...
  66. 'columns', {'cell_type'});
  67. % summarize spike info for plotting
  68. xs = unit_spike_time;
  69. ys = unit_trial_id;
  70. curr_unit = unit_struct;
  71. curr_unit.xs = xs;
  72. curr_unit.ys = ys;
  73. curr_unit.trialID = trialIDs;
  74. curr_unit.trialTypes = trial_in_range;
  75. curr_unit.spikeWidth = SpikeWidth;
  76. curr_unit.cellTypes = CellTypes;
  77. Unit(unit_id) = curr_unit;
  78. end
  79. %plot PSTH
  80. plot_PSTH(Unit(plot_cell_id))
  81. end
  82. %% PSTH helper function
  83. function plot_PSTH(Unit)
  84. time_bin = 0.001; % time bin for PSTH (s)
  85. T_axis = -6:time_bin:6;
  86. smooth_bin = 50; % 50ms box car smoothing
  87. v1 = ones(smooth_bin,1)/smooth_bin;
  88. spk = Unit.xs;
  89. trials = Unit.ys;
  90. trialID = Unit.trialID;
  91. trialTypes = Unit.trialTypes;
  92. numTrial = numel(trialID);
  93. PSTH = nan(numTrial,numel(T_axis));
  94. lick_time = trialTypes{:,3}; % lick time
  95. delay_dur = trialTypes{:,2}; % delay duration
  96. no_cue_trials = trialTypes{:,8}; % no cue trial or not
  97. start_time = trialTypes{:,9}; % trial start time (s)
  98. %note that this is not the actual trial start time. Data was converted to
  99. %trial based strcture (-7 to 7 sec from trial onset) in our pipeline.
  100. % Pseudo trial onset time (20s interval) was added for NWB.
  101. % actual trial onset time in sec is in ('ActualTrialOnsetTime').
  102. spkTrialAligned = [];trialsSpk=[];
  103. for i = 1:numTrial
  104. spk_mask = trials==trialID(i);
  105. spk_in_trial = spk(spk_mask)-start_time(i);
  106. spkTrialAligned = [spkTrialAligned;spk_in_trial];
  107. trialsSpk = [trialsSpk;ones(size(spk_in_trial))*i];
  108. spk_in_trial_aligned = spk_in_trial;
  109. counts = hist(spk_in_trial_aligned,T_axis);
  110. mean_spike_rate = counts/time_bin;
  111. PSTH_tmp = conv(mean_spike_rate,v1,'full');
  112. smoothedPSTH = PSTH_tmp(1:numel(mean_spike_rate)); % causal filtering
  113. PSTH(i,:) = smoothedPSTH;
  114. end
  115. % pool PSTH per lick time
  116. LT_ranges = [0.15 0.3;0.3 0.45;0.45 0.6;0.6 0.75;0.75 0.9;0.9 1.05;1.05 1.20;1.20 1.35];
  117. num_LT_range = size(LT_ranges,1);
  118. meanPSTH = nan(num_LT_range,numel(T_axis));
  119. for lt = 1:num_LT_range
  120. trMask = lick_time>=LT_ranges(lt,1) & lick_time<LT_ranges(lt,2) &~no_cue_trials;
  121. if sum(trMask)>=30
  122. meanPSTH(lt,:) = mean(PSTH(trMask,:));
  123. end
  124. end
  125. lineColor = turbo(num_LT_range);
  126. %% plot spike raster & PSTH
  127. figure;set(gcf,'Color','w','Position',[110 182 450 700])
  128. subplot(2,1,1);hold on
  129. plot(spkTrialAligned,trialsSpk,'k.')
  130. plot(lick_time,1:numTrial,'m*')
  131. plot(delay_dur,1:numTrial,'g')
  132. xlim([-1 2])
  133. ylim([0.5 numTrial+0.5])
  134. xline(0,'k:')
  135. set(gca,'tickdir','out','box','off')
  136. xlabel('Time from cue (s)')
  137. ylabel('Trials')
  138. title('Spike raster')
  139. subplot(2,1,2);hold on
  140. for lt = 1:num_LT_range
  141. plot(T_axis,meanPSTH(lt,:),'Color',lineColor(lt,:))
  142. xline(mean(LT_ranges(lt,:)),':','Color',lineColor(lt,:))
  143. end
  144. xlim([-1 2])
  145. ylims = ylim();
  146. yMax = ylims(2)*1.1;
  147. ylim([0 yMax]);
  148. xline(0,'k:')
  149. set(gca,'tickdir','out','box','off')
  150. xlabel('Time from cue (s)')
  151. ylabel('Spikes per s')
  152. title('PSTH')
  153. end

plotNWBdata.m at commit b9a84be, no license · at the source

Overview

  1. Max Planck Florida Institute for Neuroscience,Jupiter, FL USA
  2. Florida Atlantic University,Boca Raton, FL USA
  3. IMPRS for Synapses and Circuits, Jupiter, FL USA
  4. National Institute of Mental Health,Bethesda, MD USA
  5. Turing Centre for Living Systems, Aix-Marseille University,Marseille, France
  6. Janelia Research Campus,HHMI, Ashburn, VA USA
Journal: Nature communications, volume 17, issue 1, article 8353
Dates: received 11 November 2025; accepted 11 June 2026; published online 6 July 2026
Type: Research article · Language: English
License: CC BY-NC-ND
Identifiers: DOI 10.1038/s41467-026-74869-1 · PMID 42409803 · PMCID PMC13473605 · OpenAlex W7167493109
Open access: gold, a free copy (OpenAlex)
Status: code verified
Categories: mouse (organism), cellular / molecular (subfield)
Methods: Connectivity, Statistics, Smoothing, state filtering, decompositions, Machine learning, Preprocessing, Evoked potentials, Single-unit activity, calcium imaging
Keywords: Synaptic plasticity, Premotor cortex, Neural circuits
MeSH: Learning*, Motor Cortex*, Neocortex*, Neuronal Plasticity*, Action Potentials, Animals, Calcium-Calmodulin-Dependent Protein Kinase Type 2, Male, Mice, Mice, Inbred C57BL, Neurons, Pyramidal Cells (* major topic)
Topic: Neural dynamics and brain function (Cognitive Neuroscience, Neuroscience), according to OpenAlex
Citations: not cited yet (Europe PMC); 126 references in the paper

Abstract

The abstract is not reproduced here: the paper's license (CC BY-NC-ND) does not allow it. Read it in the paper, at the publisher or on Europe PMC.

Repositories

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

inagaki-lab/Majumder_et_al

License: none: the authors keep all their rights
State: the link answers, verified on 27 September 2026
Evidence: files inventoried
Commit: b9a84be50bbcfe06989e48e4cdf03c27d449387f, 5 July 2026
Languages: MATLAB (2)
Size: 3 files, 2 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
3 files

Zenodo 20314082

License: CC-BY-4.0
State: the link answers, verified on 27 September 2026
Evidence: files inventoried
Size: 1 file
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)
2 files
At the source:

Code availability statement

The paper has a code availability statement. Its license (CC BY-NC-ND) does not allow reproducing it here; in short, from what the harvester recognized in it:

Read it in the paper: doi.org/10.1038/s41467-026-74869-1.

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

The paper has a data availability statement. Its license (CC BY-NC-ND) does not allow reproducing it here; in short, from what the harvester recognized in it:

Read it in the paper: doi.org/10.1038/s41467-026-74869-1.

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, 10 authors, 3 keywords, 12 MeSH terms, 5 funders, 123 references, 10 RRIDs.

Cite

This paper

Majumder, S., Hirokawa, K., Yang, Z., Jain, A., Paletzki, R., Gerfen, C. R., Fontolan, L., Romani, S., Yasuda, R., & Inagaki, H. K. (2026). Complementary roles of cell-type-specific plasticity in shaping neocortical dynamics for learning action timing. Nature communications, 17(1), 8353. https://doi.org/10.1038/s41467-026-74869-1

BibTeX

@article{majumder2026complementary,
author = {Majumder, Shouvik and Hirokawa, Koichi and Yang, Zidan and Jain, Anant and Paletzki, Ronald and Gerfen, Charles R. and Fontolan, Lorenzo and Romani, Sandro and Yasuda, Ryohei and Inagaki, Hidehiko K.},
title = {{Complementary roles of cell-type-specific plasticity in shaping neocortical dynamics for learning action timing}},
journal = {Nature communications},
year = {2026},
month = jul,
volume = {17},
number = {1},
pages = {8353},
publisher = {Nature Publishing Group},
issn = {2041-1723},
doi = {10.1038/s41467-026-74869-1},
url = {https://doi.org/10.1038/s41467-026-74869-1},
pmid = {42409803},
pmcid = {PMC13473605}
}

RIS

TY - JOUR
AU - Majumder, Shouvik
AU - Hirokawa, Koichi
AU - Yang, Zidan
AU - Jain, Anant
AU - Paletzki, Ronald
AU - Gerfen, Charles R.
AU - Fontolan, Lorenzo
AU - Romani, Sandro
AU - Yasuda, Ryohei
AU - Inagaki, Hidehiko K.
TI - Complementary roles of cell-type-specific plasticity in shaping neocortical dynamics for learning action timing
T2 - Nature communications
J2 - Nat Commun
PY - 2026
DA - 2026/07/06
VL - 17
IS - 1
SP - 8353
SN - 2041-1723
PB - Nature Publishing Group
DO - 10.1038/s41467-026-74869-1
UR - https://doi.org/10.1038/s41467-026-74869-1
LA - en
ER -

CSL-JSON

{
"id": "10.1038/s41467-026-74869-1",
"type": "article-journal",
"title": "Complementary roles of cell-type-specific plasticity in shaping neocortical dynamics for learning action timing",
"container-title": "Nature communications",
"author": [
{
"family": "Majumder",
"given": "Shouvik"
},
{
"family": "Hirokawa",
"given": "Koichi"
},
{
"family": "Yang",
"given": "Zidan"
},
{
"family": "Jain",
"given": "Anant"
},
{
"family": "Paletzki",
"given": "Ronald"
},
{
"family": "Gerfen",
"given": "Charles R."
},
{
"family": "Fontolan",
"given": "Lorenzo"
},
{
"family": "Romani",
"given": "Sandro"
},
{
"family": "Yasuda",
"given": "Ryohei"
},
{
"family": "Inagaki",
"given": "Hidehiko K."
}
],
"container-title-short": "Nat Commun",
"volume": "17",
"issue": "1",
"page": "8353",
"DOI": "10.1038/s41467-026-74869-1",
"PMID": "42409803",
"PMCID": "PMC13473605",
"ISSN": "2041-1723",
"publisher": "Nature Publishing Group",
"URL": "https://doi.org/10.1038/s41467-026-74869-1",
"language": "en",
"issued": {
"date-parts": [
[
2026,
7,
6
]
]
}
}

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.7554/elife.111876 [code]
Distinct sensorimotor encoding in tuft dendrites and somata associated with action, correction, and learning.
Journal: eLife
In common: mouse, 12 references
[2] doi:10.7554/elife.109240 [code]
Neural activity profiles reveal overlapping, intermingled subpopulations spanning area borders in mouse sensorimotor cortex.
Journal: eLife
In common: mouse, 7 references
[3] doi:10.1038/s41592-026-03076-z [code]
Neuropixels Opto: combining high-resolution electrophysiology and optogenetics.
Journal: Nature methods
In common: Neurodata Without Borders (PyNWB, MatNWB), mouse, 5 references
[4] doi:10.1016/j.neuron.2026.07.016 [code]
Inferring brain-wide interactions using data-constrained recurrent neural network models.
Journal: Neuron
In common: mouse, 6 references
[5] 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: mouse, 6 references
[6] doi:10.1126/sciadv.aed6417 [code]
Intrinsic timing, not temporal prediction, underlies ramping dynamics in visual and parietal cortex during passive behavior.
Journal: Science advances
In common: mouse, 5 references
[7] doi:10.7554/elife.109717 [code]
Retrosplenial cortex enables context-dependent goal-directed sensorimotor transformation.
Journal: eLife
In common: Neurodata Without Borders (PyNWB, MatNWB), mouse, 4 references
[8] doi:10.1126/sciadv.aef3715
A cortical output channel for perceptual categorization.
Journal: Science advances
In common: mouse, 5 references
[9] doi:10.1016/j.celrep.2026.117419 [code]
Conserved role of primary motor cortex in the control of prehension in mice and macaques.
Journal: Cell reports
In common: mouse, 5 references
[10] doi:10.1371/journal.pcbi.1014585 [code]
Decoding behavior with minimal and interpretable agent models.
Journal: PLoS computational biology
In common: mouse, 5 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.