Complementary roles of cell-type-specific plasticity in shaping neocortical dynamics for learning action timing.
The 3 matches
- [1] § Methods › Extracellular recording analysis ↔ plotNWBdata.m, lines 1–124 · score 0.63 · spike width, fast spiking, Putative, PSTHs, Extracellular, ALM
- [2] § Methods › Extracellular recording analysis ↔ plotNWBdata.m, lines 127–216 · score 0.63 · spike rate, smoothed, filter, causal, PSTHs, lick
- [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
- function [] = plotNWBdata()
- % code to plot data in https://dandiarchive.org/dandiset/001848
- % modified the original code to plot NWB data @ https://neurodatawithoutborders.github.io/matnwb/tutorials/html/basicUsage.html
- % modified by Hidehiko 7/5/2026
- % add matnwb to your path
- addpath('matnwb-main');
- nwb = nwbRead('MI91_03032022_ALM.nwb');
- plot_cell_id = 6;
- %% read nwb file
- unit_names = keys(nwb.analysis);
- unit_ids = nwb.units.id.data.load(); % array of unit ids represented within this
- % Initialize trials & times Map containers indexed by unit_ids
- unit_trials = containers.Map('KeyType',class(unit_ids),'ValueType','any');
- unit_times = containers.Map('KeyType',class(unit_ids),'ValueType','any');
- last_idx = 0;
- for i = 1:length(unit_ids)
- unit_id = unit_ids(i);
- row = nwb.units.getRow(unit_id, 'useId', true, 'columns', {'spike_times', 'trialsID'});
- unit_trials(unit_id) = row.trialsID{1};
- unit_times(unit_id) = row.spike_times{1};
- end
- sorted_ids = sort(unit_ids);
- Photostim = struct(...
- 'ind', true,... % mask into xs and ys for this photostim
- 'name', 'none',...
- 'stim_duration', 0,... % in seconds after the onset of normal go cue
- 'stim_onset', 0); % in seconds after the onset of normal go cue
- % Initialize Map container of plotting data for each unit, stored as structure
- Unit = containers.Map('KeyType',class(unit_ids),'ValueType','any');
- unit_struct = struct(...
- 'id', [],...
- 'xs', [],...
- 'ys', [],...
- 'xlim', [-Inf Inf],...
- 'trialID',[],...
- 'trialTypes', 0,...
- 'spikeWidth',[],...
- 'cellTypes',[],...
- 'ontology',[],...
- 'photostim', Photostim); % can have multiple photostim
- % read data from indv units
- for unit_id = unit_ids'
- unit_trial_id = unit_trials(unit_id);
- % extract good trials to find trial range
- trial = nwb.intervals_trials.getRow(unit_trial_id, 'useId', true,...
- 'columns', {'CueOnset','GoodTrials'});
- unit_good_trials = logical(trial.GoodTrials) & ~isnan(trial.CueOnset);
- unit_trial_id = unit_trial_id(unit_good_trials);
- unit_spike_time = unit_times(unit_id);
- unit_spike_time = unit_spike_time(unit_good_trials) - trial.CueOnset(unit_good_trials); % algin to cue
- % count number of trials per condition
- % we need to do this as there could be trial w.o. spikes
- first_trial = min(unit_trial_id);
- last_trial = max(unit_trial_id);
- trialIDs = first_trial:last_trial;
- trial_in_range = nwb.intervals_trials.getRow(first_trial:last_trial, 'useId', true,...
- 'columns', {'CueOnset', 'DelayDuration', 'FirstLick', 'GoodTrials',...
- 'Unrewarded','Rewarded','NoLick','NoCue','start_time','ActualTrialOnsetTime'});
- % spike width
- SpikeWidth = nwb.general_extracellular_ephys_electrodes.getRow(1, 'useId', true,...
- 'columns', {'spike_width'});
- % note SpikeWidth>0.5 is regular spiking cells, <0.35 is fast spiking
- % (FS) cells.
- % putative cell type
- CellTypes = nwb.general_extracellular_ephys_electrodes.getRow(1, 'useId', true,...
- 'columns', {'cell_type'});
- % summarize spike info for plotting
- xs = unit_spike_time;
- ys = unit_trial_id;
- curr_unit = unit_struct;
- curr_unit.xs = xs;
- curr_unit.ys = ys;
- curr_unit.trialID = trialIDs;
- curr_unit.trialTypes = trial_in_range;
- curr_unit.spikeWidth = SpikeWidth;
- curr_unit.cellTypes = CellTypes;
- Unit(unit_id) = curr_unit;
- end
- %plot PSTH
- plot_PSTH(Unit(plot_cell_id))
- end
- %% PSTH helper function
- function plot_PSTH(Unit)
- time_bin = 0.001; % time bin for PSTH (s)
- T_axis = -6:time_bin:6;
- smooth_bin = 50; % 50ms box car smoothing
- v1 = ones(smooth_bin,1)/smooth_bin;
- spk = Unit.xs;
- trials = Unit.ys;
- trialID = Unit.trialID;
- trialTypes = Unit.trialTypes;
- numTrial = numel(trialID);
- PSTH = nan(numTrial,numel(T_axis));
- lick_time = trialTypes{:,3}; % lick time
- delay_dur = trialTypes{:,2}; % delay duration
- no_cue_trials = trialTypes{:,8}; % no cue trial or not
- start_time = trialTypes{:,9}; % trial start time (s)
- %note that this is not the actual trial start time. Data was converted to
- %trial based strcture (-7 to 7 sec from trial onset) in our pipeline.
- % Pseudo trial onset time (20s interval) was added for NWB.
- % actual trial onset time in sec is in ('ActualTrialOnsetTime').
- spkTrialAligned = [];trialsSpk=[];
- for i = 1:numTrial
- spk_mask = trials==trialID(i);
- spk_in_trial = spk(spk_mask)-start_time(i);
- spkTrialAligned = [spkTrialAligned;spk_in_trial];
- trialsSpk = [trialsSpk;ones(size(spk_in_trial))*i];
- spk_in_trial_aligned = spk_in_trial;
- counts = hist(spk_in_trial_aligned,T_axis);
- mean_spike_rate = counts/time_bin;
- PSTH_tmp = conv(mean_spike_rate,v1,'full');
- smoothedPSTH = PSTH_tmp(1:numel(mean_spike_rate)); % causal filtering
- PSTH(i,:) = smoothedPSTH;
- end
- % pool PSTH per lick time
- 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];
- num_LT_range = size(LT_ranges,1);
- meanPSTH = nan(num_LT_range,numel(T_axis));
- for lt = 1:num_LT_range
- trMask = lick_time>=LT_ranges(lt,1) & lick_time<LT_ranges(lt,2) &~no_cue_trials;
- if sum(trMask)>=30
- meanPSTH(lt,:) = mean(PSTH(trMask,:));
- end
- end
- lineColor = turbo(num_LT_range);
- %% plot spike raster & PSTH
- figure;set(gcf,'Color','w','Position',[110 182 450 700])
- subplot(2,1,1);hold on
- plot(spkTrialAligned,trialsSpk,'k.')
- plot(lick_time,1:numTrial,'m*')
- plot(delay_dur,1:numTrial,'g')
- xlim([-1 2])
- ylim([0.5 numTrial+0.5])
- xline(0,'k:')
- set(gca,'tickdir','out','box','off')
- xlabel('Time from cue (s)')
- ylabel('Trials')
- title('Spike raster')
- subplot(2,1,2);hold on
- for lt = 1:num_LT_range
- plot(T_axis,meanPSTH(lt,:),'Color',lineColor(lt,:))
- xline(mean(LT_ranges(lt,:)),':','Color',lineColor(lt,:))
- end
- xlim([-1 2])
- ylims = ylim();
- yMax = ylims(2)*1.1;
- ylim([0 yMax]);
- xline(0,'k:')
- set(gca,'tickdir','out','box','off')
- xlabel('Time from cue (s)')
- ylabel('Spikes per s')
- title('PSTH')
- end
plotNWBdata.m at commit b9a84be, no license · at the source
Overview
- Max Planck Florida Institute for Neuroscience,Jupiter, FL USA
- Florida Atlantic University,Boca Raton, FL USA
- IMPRS for Synapses and Circuits, Jupiter, FL USA
- National Institute of Mental Health,Bethesda, MD USA
- Turing Centre for Living Systems, Aix-Marseille University,Marseille, France
- Janelia Research Campus,HHMI, Ashburn, VA USA
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
b9a84be50bbcfe06989e48e4cdf03c27d449387f, 5 July 2026Availability: 1 check, the latest on 27 September 2026: the link answers
- 27 September 2026: the link answers
3 files
- Two_attarctors_model.m, MATLAB, 309 lines
- plotNWBdata.m, MATLAB, 233 lines, 3 matches
- README.md, Text, 1 line
Zenodo 20314082
Availability: 1 check, the latest on 27 September 2026: the link answers (HTTP 200)
- 27 September 2026: the link answers (HTTP 200)
2 files
- Two_attarctors_model.m, MATLAB, 309 lines
- README.md, Text, 1 line
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:
- it points to the authors' code: inagaki-lab/
Majumder_et_al , Zenodo 20314082
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
- dandi:001848, at DANDI; found in “Data availability”
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:
- it points to a dataset: DANDI 001848
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://
BibTeX
@article{majumder2026com
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/
url = {https://
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/
VL - 17
IS - 1
SP - 8353
SN - 2041-1723
PB - Nature Publishing Group
DO - 10.1038/
UR - https://
LA - en
ER -
CSL-JSON
{
"id": "10.1038/
"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":
"volume": "17",
"issue": "1",
"page": "8353",
"DOI": "10.1038/
"PMID": "42409803",
"PMCID": "PMC13473605",
"ISSN": "2041-1723",
"publisher": "Nature Publishing Group",
"URL": "https://
"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: eLifeIn 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: eLifeIn common: mouse, 7 references
- [3] doi:10.1038/s41592-026-03076-z [code]
- Neuropixels Opto: combining high-resolution electrophysiology and optogenetics.Journal: Nature methodsIn 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: NeuronIn 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 communicationsIn 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 advancesIn common: mouse, 5 references
- [7] doi:10.7554/elife.109717 [code]
- Retrosplenial cortex enables context-dependent goal-directed sensorimotor transformation.Journal: eLifeIn common: Neurodata Without Borders (PyNWB, MatNWB), mouse, 4 references
- [8] doi:10.1126/sciadv.aef3715
- A cortical output channel for perceptual categorization.Journal: Science advancesIn 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 reportsIn common: mouse, 5 references
- [10] doi:10.1371/journal.pcbi.1014585 [code]
- Decoding behavior with minimal and interpretable agent models.Journal: PLoS computational biologyIn 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.
Claim this paper
Correct its record
Say what each link of this record is, remove the ones that are not the paper's, add the ones that are missing. The correction becomes a new version of the record, in its Versions section.
Validate its tracing map
You validate the map as this page shows it: 2 repositories of the authors' code, each at its verified commit and with its license, 3 scripts, and 3 matches between paragraphs and code (see the Code and Map sections). It then receives a DOI on Zenodo, with you (your ORCID iD) and OSCR as its creators; the code itself is not deposited.
The map's fingerprint: sha256:0c00b20ebc3bf048…
Add the badge to its README
The badge links the code to this page. Copy one of these into the README of the paper's code: only you decide where it goes, and nothing is changed for you.
Markdown
[, paste the snippet at the top, then “Commit changes…” and, to review it first, “Create a new branch and start a pull request”. You open the pull request; OSCR asks for no permission.
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.
