Contextual gating of whisker-evoked responses by frontal cortex supports flexible decision making.
A correction to this paper has been published: the notice, 42486857, from Europe PMC.
4 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 4 matches · 2 of them tie a paragraph to a whole file without given lines: weak matches, whose lines are not tinted
- [1] § Methods › Histology and localization of electrode tracks ↔ UniversalProbeFinder.m, the whole file · a weak match · score 0.85 · Universal Probe Finder, Mouse Brain Atlas, Pre processing, Allen CCF, v3, alignment · block
oscr:b:7D0X3V8M2ZZZK-L· Report a mismatch - [2] § Methods › Histology and localization of electrode tracks ↔ ProbeFinder.m, lines 1 to 42 · score 0.76 · Universal Probe Finder, Mouse Brain Atlas, Allen CCF, v3, alignment, MATLAB · block
oscr:b:JMGSJF4F7P91N-1· Report a mismatch - [3] § Methods › Electrophysiology data analysis ↔ common/DP_DetectSpikes.m, the whole file · a weak match · score 0.62 · Spike detection, kilosort2, thresholds, median, channels · block
oscr:b:3KHAQPWPJXWYW-U· Report a mismatch - [4] § Results › Spatiotemporal dynamics of neocortical activity ↔ SHARP-Track/Convert_CCF_Coords_to_FP_Regions.m, lines 11 to 47 · score 0.52 · mouse brain atlas, Allen CCF, located, Neuropixels, tracks, probes · block
oscr:b:HXT57AYGB20NM-4· 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 · 128 lines · 5.4 KB · GPL-3.0 · 1 match
- function UniversalProbeFinder
- %The Universal Probe Finder consists of three independent programs:
- % - SlicePrepper: pre-process your images & annotate traces
- % - SliceFinder: align each slice to a brain atlas
- % - ProbeFinder: use ephys data to fine-tune your probe's location & export the brain at each
- % contact point or cluster
- %
- %To use any program, simply type the name of the program in the matlab prompt, e.g.:
- %ProbeFinder
- %
- %Please read the manual for more detailed instructions.
- %
- %The Universal Probe Finder can use multiple atlases and ephys data formats, and calculates the
- %stimulus responsiveness of your clusters with the zetatest using only an array of event-onset
- %times. Using these neurophysiological markers will allow a more reliable alignment of your probe's
- %contact points to specific brain areas.
- %
- %At this time, can use the following atlases:
- %a. Sprague Dawley rat brain atlas, downloadable at: https://www.nitrc.org/projects/whs-sd-atlas
- %b. Allen CCF mouse brain atlas, downloadable at: http://data.cortexlab.net/allenCCF/
- %c. CHARM/SARM macaque brain atlas: https://afni.nimh.nih.gov/pub/dist/doc/htmldoc/nonhuman/macaque_tempatl/atlas_charm.html
- %It is also possible to add your own Atlas by editing the configAtlas.ini file that is created
- %when you first run the ProbeFinder (see manual).
- %
- %Please reach out to us (for example here: https://github.com/JorritMontijn/UniversalProbeFinder)
- %if you wish to have a different atlas added with out-of-the-box support. Adding an atlas is
- %very easy, and we're happy to extend the usefulness of our program for all its users.
- %
- %Acknowledgements
- %This work is based on earlier work by people from the cortex lab, most notably Philip Shamash
- %and Andy Peters. See for example this paper: https://www.biorxiv.org/content/10.1101/447995v1
- %
- %This repository includes various functions that come from other repositories, credit for these
- %functions go to their creators:
- %https://github.com/petersaj/AP_histology
- %https://github.com/JorritMontijn/Acquipix
- %https://github.com/JorritMontijn/GeneralAnalysis
- %https://github.com/kwikteam/npy-matlab
- %https://github.com/cortex-lab/spikes
- %https://github.com/JorritMontijn/zetatest
- %
- %License
- %This repository is licensed under the GNU General Public License v3.0, meaning you are free to
- %use, edit, and redistribute any part of this code, as long as you refer to the source (this
- %repository) and apply the same non-restrictive license to any derivative work (GNU GPL v3).
- %
- %The logo for the Universal Probe Finder uses this image as background (CC licensed):
- %https://upload.wikimedia.org/wikipedia/commons/7/75/Massive_galaxies_discovered_in_the_early_Universe.jpg
- %
- %Created by Jorrit Montijn at the Cortical Structure and Function laboratory (KNAW-NIN)
- %
- %Rev:20240221 - v1.1.0
- %ask which program to run
- %set disable/enable global
- global sUPF_ChooseGui
- if isfield(sUPF_ChooseGui,'hMain') && ishandle(sUPF_ChooseGui.hMain),return;end
- %create GUI
- hChooseGui = figure('WindowStyle','Normal','Name','Universal Probe Finder',...
- 'Menubar','none','NumberTitle','off','Position',[500 500 400 200],'CloseRequestFcn',@UPF_DeleteFcn);
- hChooseGui.Units = 'normalized';
- %add paths
- if ~isdeployed
- strFullpath = mfilename('fullpath');
- strPath = fileparts(strFullpath);
- sDir=dir([strPath filesep '**' filesep]);
- %remove git folders
- sDir(contains({sDir.folder},[filesep '.git'])) = [];
- cellFolders = unique({sDir.folder});
- for intFolder=1:numel(cellFolders)
- addpath(cellFolders{intFolder});
- end
- end
- %change icon
- try
- warning('off','MATLAB:ui:javaframe:PropertyToBeRemoved');
- warning('off','MATLAB:HandleGraphics:ObsoletedProperty:JavaFrame');
- jframe=get(hChooseGui,'javaframe');
- jIcon=javax.swing.ImageIcon(fullpath(SH_getIniPath(),'icon.png'));
- jframe.setFigureIcon(jIcon);
- catch
- end
- %create gui
- ptrTextPrepper = uicontrol(hChooseGui,'Style','text','String','Select the program you wish to run:',...
- 'Units','normalized','FontSize',12,'Position',[0.1 0.8 0.8 0.15],'backgroundcolor',[1 1 1]);
- ptrButtonPrepper = uicontrol(hChooseGui,'Style','pushbutton','String','Slice Prepper',...
- 'Units','normalized','FontSize',12,'Position',[0.2 0.63 0.6 0.15],...
- 'Callback',@SlicePrepper);
- ptrButtonFinder = uicontrol(hChooseGui,'Style','pushbutton','String','Slice Finder',...
- 'Units','normalized','FontSize',12,'Position',[0.2 0.43 0.6 0.15],...
- 'Callback',@SliceFinder);
- ptrButtonProber = uicontrol(hChooseGui,'Style','pushbutton','String','Probe Finder',...
- 'Units','normalized','FontSize',12,'Position',[0.2 0.23 0.6 0.15],...
- 'Callback',@ProbeFinder);
- %check for ini file
- strIni = strcat(SH_getIniPath(),filesep,'configPF.ini');
- %load ini
- ptrButtonSetter = uicontrol(hChooseGui,'Style','pushbutton','String','Settings',...
- 'Units','normalized','FontSize',12,'Position',[0.3 0.05 0.4 0.12],...
- 'Callback',@SetVariablesUPF);
- if exist(strIni,'file')
- ptrButtonSetter.Visible = 'on';
- else
- ptrButtonSetter.Visible = 'off';
- end
- %add handles to global
- sUPF_ChooseGui = struct;
- sUPF_ChooseGui.hMain = hChooseGui;
- sUPF_ChooseGui.handles.ptrTextPrepper = ptrTextPrepper;
- sUPF_ChooseGui.handles.ptrButtonPrepper = ptrButtonPrepper;
- sUPF_ChooseGui.handles.ptrButtonFinder = ptrButtonFinder;
- sUPF_ChooseGui.handles.ptrButtonProber = ptrButtonProber;
- sUPF_ChooseGui.handles.ptrButtonSetter = ptrButtonSetter;
- %move
- movegui(hChooseGui,'center');
- end
UniversalProbeFinder.m at commit d281538, under GPL-3.0 · at the source
Overview
Abstract
Context-dependent sensory processing underlies important aspects of flexible behavior. Here, we investigate how mice can use a briefly-presented auditory contextual Go or Nogo cue after a delay period to gate the transformation of a whisker deflection into licking for reward. Spatiotemporally-specifi
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 4 matches between paragraphs and lines of code.
cortex-lab/allenCCF
e5a57fe7e1c9fb333fec51c29a8471131c233a76, 15 July 2025Availability: 2 checks, the latest on 29 October 2026: the link answers
- 29 October 2026: the link answers
- 27 September 2026: the link answers
62 files
- Browsing Functions/
AtlasTransformBrowser.m , MATLAB, 1,196 lines - Browsing Functions/
CCF_to_FP.m , MATLAB, 66 lines - Browsing Functions/
addAllenCtxOutlines.m , MATLAB, 51 lines - Browsing Functions/
aggregateAcr.m , MATLAB, 146 lines - Browsing Functions/
allenAtlasBrowser.m , MATLAB, 658 lines - Browsing Functions/
allenAtlasBrowser_origin , MATLAB, 262 linesal.m - Browsing Functions/
allenCCFbregma.m , MATLAB, 8 lines - Browsing Functions/
allenTilt.m , MATLAB, 172 lines - Browsing Functions/
allen_ccf_2pi.m , MATLAB, 780 lines - Browsing Functions/
allen_ccf_colormap.m , MATLAB, 10 lines - Browsing Functions/
allen_ccf_npx.m , MATLAB, 1,087 lines - Browsing Functions/
allen_ccf_npx_4shank.m , MATLAB, 931 lines - Browsing Functions/
allen_ccf_npx_4shank_sph , MATLAB, 987 lineserical.m - Browsing Functions/
best_fit_line.m , MATLAB, 28 lines - Browsing Functions/
customVectorSlice.m , MATLAB, 38 lines - Browsing Functions/
distinguishable_colors.m , MATLAB, 152 lines - Browsing Functions/
get_offset_map.m , MATLAB, 41 lines - Browsing Functions/
gridIn3D.m , MATLAB, 80 lines - Browsing Functions/
hierarchicalSelect.m , MATLAB, 130 lines - Browsing Functions/
idRegionByAcr.m , MATLAB, 27 lines - Browsing Functions/
isAreaOrContains.m , MATLAB, 31 lines - Browsing Functions/
loadCCFtoFP.m , MATLAB, 17 lines - Browsing Functions/
loadFPtable.m , MATLAB, 16 lines - Browsing Functions/
loadStructureTree.m , MATLAB, 48 lines - Browsing Functions/
makeSTtree.m , MATLAB, 45 lines - Browsing Functions/
makeSmoothCoords.m , MATLAB, 23 lines - Browsing Functions/
natsort.m , MATLAB, 330 lines - Browsing Functions/
natsortfiles.m , MATLAB, 169 lines - Browsing Functions/
plotAVoverlay.m , MATLAB, 28 lines - Browsing Functions/
plotAVslice.m , MATLAB, 13 lines - Browsing Functions/
plotAsProbe.m , MATLAB, 37 lines - Browsing Functions/
plotBrainGrid.m , MATLAB, 35 lines - Browsing Functions/
plotBrainOutlinesByAxis. , MATLAB, 23 linesm - Browsing Functions/
plotDistToNearest.m , MATLAB, 123 lines - Browsing Functions/
plotDistToNearestToTip.m , MATLAB, 252 lines - Browsing Functions/
plotLabelsAsProbe.m , MATLAB, 110 lines - Browsing Functions/
plotNeuronOnSliceFromCoo , MATLAB, 20 linesrd.m - Browsing Functions/
plotTVslice.m , MATLAB, 12 lines - Browsing Functions/
plotTopDownOutlines.m , MATLAB, 100 lines - Browsing Functions/
sagittalSlices.m , MATLAB, 50 lines - Browsing Functions/
sanitizeStructureTree.m , MATLAB, 31 lines - Browsing Functions/
script_sliceMovie.m , MATLAB, 66 lines - Browsing Functions/
selectStructure.m , MATLAB, 264 lines - Browsing Functions/
sliceBrowser.m , MATLAB, 142 lines - Browsing Functions/
sliceByVector.m , MATLAB, 55 lines - Browsing Functions/
sliceOutlineWithRegion.m , MATLAB, 38 lines - Browsing Functions/
sliceOutlineWithRegionVe , MATLAB, 74 linesc.m - Browsing Functions/
transformed_sliceBrowser , MATLAB, 171 lines.m - Histology Functions/
HistologyBrowser.m , MATLAB, 161 lines - Histology Functions/
HistologyCropper.m , MATLAB, 105 lines - Histology Functions/
SliceFlipper.m , MATLAB, 177 lines - Histology Functions/
natsort.m , MATLAB, 330 lines - Histology Functions/
natsortfiles.m , MATLAB, 169 lines - SHARP-Track/
Analyze_Clicked_Points.m , MATLAB, 131 lines - SHARP-Track/
Analyze_ROIs.m , MATLAB, 158 lines - SHARP-Track/
Convert_CCF_Coords_to_FP , MATLAB, 117 lines, 1 match_Regions.m - SHARP-Track/
Convert_Clicked_Points_t , MATLAB, 145 lineso_FP_coords.m - SHARP-Track/
Display_Probe_Track.m , MATLAB, 229 lines - SHARP-Track/
Navigate_Atlas_and_Regis , MATLAB, 66 linester_Slices.m - SHARP-Track/
Process_Histology.m , MATLAB, 133 lines - setup_utils.m, MATLAB, 47 lines
- README.md, Text, 72 lines
JorritMontijn/UniversalProbeFinder
d2815385b6a980ffe2efba6560ab6d29a454f039, 20 March 2024Availability: 2 checks, the latest on 2 November 2026: the link answers
- 2 November 2026: the link answers
- 28 September 2026: the link answers
163 files
- ProbeFinder.m, MATLAB, 193 lines, 1 match
- SetVariablesUPF.m, MATLAB, 25 lines
- SliceFinder.m, MATLAB, 69 lines
- SlicePrepper.m, MATLAB, 44 lines
- UniversalProbeFinder.m, MATLAB, 128 lines, 1 match
- atlasloaders/
AL_PrepABA.m , MATLAB, 98 lines - atlasloaders/
AL_PrepMCS.m , MATLAB, 174 lines - atlasloaders/
AL_PrepSDA.m , MATLAB, 131 lines - common/
DP_ChannelCountsIM.m , MATLAB, 10 lines - common/
DP_ChannelCountsNI.m , MATLAB, 11 lines - common/
DP_DetectSpikes.m , MATLAB, 136 lines, 1 match - common/
DP_DetectSpikesInBinaryF , MATLAB, 189 linesile.m - common/
DP_FindMins.m , MATLAB, 67 lines - common/
DP_GetChanMap.m , MATLAB, 107 lines - common/
DP_ReadBin.m , MATLAB, 116 lines - common/
DP_ReadMeta.m , MATLAB, 36 lines - common/
DP_SampRate.m , MATLAB, 10 lines - common/
DP_gpufilter.m , MATLAB, 47 lines - common/
assertBioFormats.m , MATLAB, 57 lines - common/
catstruct.m , MATLAB, 165 lines - common/
cellfill.m , MATLAB, 21 lines - common/
circ_dist.m , MATLAB, 31 lines - common/
clusterAverage.m , MATLAB, 27 lines - common/
countUnique.m , MATLAB, 9 lines - common/
czifinfo.m , MATLAB, 172 lines - common/
cziinfo.m , MATLAB, 107 lines - common/
cziread.m , MATLAB, 46 lines - common/
flat.m , MATLAB, 6 lines - common/
fullpath.m , MATLAB, 18 lines - common/
getDate.m , MATLAB, 8 lines - common/
getFlankedBy.m , MATLAB, 41 lines - common/
getOr.m , MATLAB, 26 lines - common/
getTrace3D.m , MATLAB, 72 lines - common/
ini2struct.m , MATLAB, 29 lines - common/
isaxes.m , MATLAB, 3 lines - common/
loadClusterTsvs.m , MATLAB, 127 lines - common/
loadKSdir.m , MATLAB, 96 lines - common/
loadParamsPy.m , MATLAB, 48 lines - common/
loadcsv.m , MATLAB, 89 lines - common/
maxfig.m , MATLAB, 43 lines - common/
median.m , MATLAB, 229 lines - common/
modx.m , MATLAB, 7 lines - common/
offsetaxes.m , MATLAB, 19 lines - common/
parsecsv.m , MATLAB, 57 lines - common/
readClusterGroupsCSV.m , MATLAB, 27 lines - common/
readNPY.m , MATLAB, 37 lines - common/
readNPYheader.m , MATLAB, 72 lines - common/
redblack.m , MATLAB, 22 lines - common/
redbluepurple.m , MATLAB, 12 lines - common/
roundi.m , MATLAB, 25 lines - common/
selectcolor.m , MATLAB, 518 lines - common/
struct2ini.m , MATLAB, 34 lines - common/
templatePositionsAmplitu , MATLAB, 82 linesdes.m - common/
tsvread.m , MATLAB, 122 lines - common/
uitext.m , MATLAB, 71 lines - common/
val2idx.m , MATLAB, 42 lines - common/
xml2struct2.m , MATLAB, 172 lines - common/
xsize.m , MATLAB, 34 lines - ephysloaders/
EL_PrepEphys_AS.m , MATLAB, 101 lines - ephysloaders/
EL_PrepEphys_KS.m , MATLAB, 141 lines - ephysloaders/
EL_PrepEphys_NC.m , MATLAB, 60 lines - ephysloaders/
EL_PrepEphys_SG.m , MATLAB, 123 lines - subfunctions/
PF_AssertVersion.m , MATLAB, 12 lines - subfunctions/
PF_GetAreaPerCluster.m , MATLAB, 21 lines - subfunctions/
PF_getAtlasIni.m , MATLAB, 46 lines - subfunctions/
PF_getEphysIni.m , MATLAB, 55 lines - subfunctions/
PF_getIniVar.m , MATLAB, 103 lines - subfunctions/
PH_BregmaVec2SphVec.m , MATLAB, 55 lines - subfunctions/
PH_CartVec2SphVec.m , MATLAB, 31 lines - subfunctions/
PH_DeleteFcn.m , MATLAB, 44 lines - subfunctions/
PH_DeleteHelpFcn.m , MATLAB, 18 lines - subfunctions/
PH_DisableButtons.m , MATLAB, 20 lines - subfunctions/
PH_DiscardOtherCategs.m , MATLAB, 74 lines - subfunctions/
PH_DisplayControls.m , MATLAB, 78 lines - subfunctions/
PH_EnableButtons.m , MATLAB, 20 lines - subfunctions/
PH_ExportClusters.m , MATLAB, 43 lines - subfunctions/
PH_ExtractProbeCoords.m , MATLAB, 86 lines - subfunctions/
PH_GenGUI.m , MATLAB, 425 lines - subfunctions/
PH_GetBrainIntersection. , MATLAB, 42 linesm - subfunctions/
PH_GetBregma.m , MATLAB, 3 lines - subfunctions/
PH_GetClusterCategories. , MATLAB, 29 linesm - subfunctions/
PH_GetClusterField.m , MATLAB, 17 lines - subfunctions/
PH_GetClusterPropertyLis , MATLAB, 20 linest.m - subfunctions/
PH_GetProbeAreas.m , MATLAB, 30 lines - subfunctions/
PH_GetProbeVector.m , MATLAB, 11 lines - subfunctions/
PH_GetRefVector.m , MATLAB, 24 lines - subfunctions/
PH_HelloWorld.m , MATLAB, 44 lines - subfunctions/
PH_KeyPress.m , MATLAB, 212 lines - subfunctions/
PH_LoadEphysFcn.m , MATLAB, 20 lines - subfunctions/
PH_LoadProbeFcn.m , MATLAB, 12 lines - subfunctions/
PH_LoadProbeFile.m , MATLAB, 43 lines - subfunctions/
PH_LoadProbeLocation.m , MATLAB, 29 lines - subfunctions/
PH_LoadTsvFcn.m , MATLAB, 41 lines - subfunctions/
PH_LoadZetaFcn.m , MATLAB, 33 lines - subfunctions/
PH_MergeClusterData.m , MATLAB, 90 lines - subfunctions/
PH_OpenCoordsFile.m , MATLAB, 58 lines - subfunctions/
PH_OpenEphys.m , MATLAB, 87 lines - subfunctions/
PH_OpenZeta.m , MATLAB, 147 lines - subfunctions/
PH_PlotProbeEphys.m , MATLAB, 358 lines - subfunctions/
PH_Points2vec.m , MATLAB, 49 lines - subfunctions/
PH_RemPrefixes.m , MATLAB, 14 lines - subfunctions/
PH_ResetFcn.m , MATLAB, 19 lines - subfunctions/
PH_SaveProbeFile.m , MATLAB, 43 lines - subfunctions/
PH_SaveZeta.m , MATLAB, 15 lines - subfunctions/
PH_SelectCategProp.m , MATLAB, 17 lines - subfunctions/
PH_SelectPlotProp.m , MATLAB, 13 lines - subfunctions/
PH_SelectProbeNr.m , MATLAB, 39 lines - subfunctions/
PH_SetProbePosition.m , MATLAB, 35 lines - subfunctions/
PH_ShowStructure.m , MATLAB, 62 lines - subfunctions/
PH_SphVec2BregmaVec.m , MATLAB, 38 lines - subfunctions/
PH_SphVec2CartVec.m , MATLAB, 18 lines - subfunctions/
PH_ToggleControl.m , MATLAB, 23 lines - subfunctions/
PH_ToggleFreeze.m , MATLAB, 18 lines - subfunctions/
PH_UndoDiscardCategs.m , MATLAB, 28 lines - subfunctions/
PH_UpdateProbeCoordinate , MATLAB, 185 liness.m - subfunctions/
PH_UpdateSlice.m , MATLAB, 95 lines - subfunctions/
PH_loadStructureTree.m , MATLAB, 48 lines - subfunctions/
SF_DeleteFcn.m , MATLAB, 49 lines - subfunctions/
SF_DisplaySliceFinderCon , MATLAB, 83 linestrols.m - subfunctions/
SF_ExportSliceFinderFile , MATLAB, 40 lines.m - subfunctions/
SF_GenSliceFinderGUI.m , MATLAB, 195 lines - subfunctions/
SF_KeyPress.m , MATLAB, 414 lines - subfunctions/
SF_LoadSliceData.m , MATLAB, 52 lines - subfunctions/
SF_PlotIms.m , MATLAB, 78 lines - subfunctions/
SF_PlotSliceInAtlas.m , MATLAB, 160 lines - subfunctions/
SF_SaveSliceFinderFile.m , MATLAB, 29 lines - subfunctions/
SF_SliceFile2TracksFile. , MATLAB, 31 linesm - subfunctions/
SF_SlicePts2AtlasPts.m , MATLAB, 83 lines - subfunctions/
SH_AddTrajectory.m , MATLAB, 30 lines - subfunctions/
SH_AssertSliceValidity.m , MATLAB, 26 lines - subfunctions/
SH_ButtonDownFilterFcn.m , MATLAB, 18 lines - subfunctions/
SH_ClearClick.m , MATLAB, 24 lines - subfunctions/
SH_DeleteFcn.m , MATLAB, 49 lines - subfunctions/
SH_DeleteTrackVector.m , MATLAB, 18 lines - subfunctions/
SH_DisplaySlicePrepperCo , MATLAB, 72 linesntrols.m - subfunctions/
SH_EditAssignment.m , MATLAB, 144 lines - subfunctions/
SH_EditTrack.m , MATLAB, 38 lines - subfunctions/
SH_FlipHorz.m , MATLAB, 32 lines - subfunctions/
SH_GenSliceHeader.m , MATLAB, 35 lines - subfunctions/
SH_GenSlicePrepperGUI.m , MATLAB, 149 lines - subfunctions/
SH_HeaderClick.m , MATLAB, 17 lines - subfunctions/
SH_KeyPress.m , MATLAB, 129 lines - subfunctions/
SH_LoadSliceData.m , MATLAB, 49 lines - subfunctions/
SH_LoadSlicePath.m , MATLAB, 590 lines - subfunctions/
SH_MagicAssignment.m , MATLAB, 132 lines - subfunctions/
SH_NewTrack.m , MATLAB, 40 lines - subfunctions/
SH_PlotPrepIms.m , MATLAB, 83 lines - subfunctions/
SH_ReadImages.m , MATLAB, 108 lines - subfunctions/
SH_RemTrack.m , MATLAB, 71 lines - subfunctions/
SH_SaveSlicePrepperFile. , MATLAB, 26 linesm - subfunctions/
SH_SelectChannel.m , MATLAB, 13 lines - subfunctions/
SH_SelectTrack.m , MATLAB, 29 lines - subfunctions/
SH_SliceClick.m , MATLAB, 174 lines - subfunctions/
SH_TrackUI.m , MATLAB, 70 lines - subfunctions/
SH_UnpackCZI.m , MATLAB, 70 lines - subfunctions/
SH_UpdateMousePointerLin , MATLAB, 27 linese.m - subfunctions/
SH_getIniPath.m , MATLAB, 31 lines - subfunctions/
SH_getRegexpIni.m , MATLAB, 53 lines - subfunctions/
UPF_DeleteFcn.m , MATLAB, 10 lines - subfunctions/
UPF_DisableButtons.m , MATLAB, 7 lines - subfunctions/
UPF_EnableButtons.m , MATLAB, 7 lines - LICENSE, License, 674 lines
- README.md, Text, 72 lines
Zenodo 17973874
Availability: 1 check, the latest on 28 September 2026: the link answers (HTTP 200)
- 28 September 2026: the link answers (HTTP 200)
Code availability
MATLAB and Python code used for analyses are available via Zenodo at (10.5281/
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:
- 3 repositories of the authors' code, each at its verified commit, with its license and how the link was found in the paper;
- 222 scripts, each with its path and the digest of its content;
- 4 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
- zenodo:17973873, at Zenodo; found in DataCite
Data availability
The data described in this study are available via Zenodo at (10.5281/
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, 28 September 2026: the first record
Recorded: type, language, journal, volume, issue, pages, dates, 3 authors, 5 keywords, 10 MeSH terms, 1 funder, 57 references, 1 integrity notice.
Cite
This paper
Ghaderi, P., Crochet, S., & Petersen, C. C. H. (2026). Contextual gating of whisker-evoked responses by frontal cortex supports flexible decision making. Nature communications, 17(1), 5982. https://
BibTeX
@article{ghaderi2026cont
author = {Ghaderi, Parviz and Crochet, Sylvain and Petersen, Carl C H},
title = {{Contextual gating of whisker-evoked responses by frontal cortex supports flexible decision making}},
journal = {Nature communications},
year = {2026},
month = may,
volume = {17},
number = {1},
pages = {5982},
publisher = {Nature Publishing Group},
issn = {2041-1723},
doi = {10.1038/
url = {https://
pmid = {42191718},
pmcid = {PMC13346651}
}
RIS
TY - JOUR
AU - Ghaderi, Parviz
AU - Crochet, Sylvain
AU - Petersen, Carl C H
TI - Contextual gating of whisker-evoked responses by frontal cortex supports flexible decision making
T2 - Nature communications
J2 - Nat Commun
PY - 2026
DA - 2026/
VL - 17
IS - 1
SP - 5982
SN - 2041-1723
PB - Nature Publishing Group
DO - 10.1038/
UR - https://
LA - en
ER -
CSL-JSON
{
"id": "10.1038/
"type": "article-journal",
"title": "Contextual gating of whisker-evoked responses by frontal cortex supports flexible decision making",
"container-title": "Nature communications",
"author": [
{
"family": "Ghaderi",
"given": "Parviz"
},
{
"family": "Crochet",
"given": "Sylvain"
},
{
"family": "Petersen",
"given": "Carl C H"
}
],
"container-title-short":
"volume": "17",
"issue": "1",
"page": "5982",
"DOI": "10.1038/
"PMID": "42191718",
"PMCID": "PMC13346651",
"ISSN": "2041-1723",
"publisher": "Nature Publishing Group",
"URL": "https://
"language": "en",
"issued": {
"date-parts": [
[
2026,
5,
26
]
]
}
}
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.109717 [code]
- Retrosplenial cortex enables context-dependent goal-directed sensorimotor transformation.Journal: eLifeIn common: Statistics and Machine Learning Toolbox, mouse, 29 references, 2 authors
- [2] doi:10.1371/journal.pbio.3001667 [code]
- Learning-related congruent and incongruent changes of excitation and inhibition in distinct cortical areas.Journal: PLoS biologyIn common: Parallel Computing Toolbox, Image Processing Toolbox, Statistics and Machine Learning Toolbox, mouse, 22 references, 2 authors
- [3] doi:10.1101/2025.10.31.685738 [code]
- Retrosplenial cortex enables context-dependent goal-directed sensorimotor transformationJournal: bioRxiv (preprint)In common: Statistics and Machine Learning Toolbox, 20 references, 2 authors
- [4] doi:10.1016/j.heliyon.2024.e37831 [code]
- Dopamine dynamics in nucleus accumbens across reward-based learning of goal-directed whisker-to-lick sensorimotor transformations in mice.Journal: HeliyonIn common: mouse, 18 references, 2 authors
- [5] doi:10.7554/elife.97602 [code]
- Cell class-specific long-range axonal projections of neurons in mouse whisker-related somatosensory cortices.Journal: eLifeIn common: mouse, 18 references, 2 authors
- [6] doi:10.3389/fnana.2021.791015 [code]
- Axonal and Dendritic Morphology of Excitatory Neurons in Layer 2/
3 Mouse Barrel Cortex Imaged Through Whole-Brain Two-Photon Tomography and Registered to a Digital Brain Atlas. Journal: Frontiers in neuroanatomyIn common: Parallel Computing Toolbox, Signal Processing Toolbox, Image Processing Toolbox, 1 other tool, mouse, 14 references, 2 authors - [7] doi:10.1371/journal.pone.0287174
- Membrane potential dynamics of excitatory and inhibitory neurons in mouse barrel cortex during active whisker sensing.Journal: PloS oneIn common: mouse, 10 references, 2 authors
- [8] doi:10.1016/j.celrep.2024.113991 [code]
- Tactile processing in mouse cortex depends on action context.Journal: Cell reportsIn common: Signal Processing Toolbox, Statistics and Machine Learning Toolbox, mouse, 13 references
- [9] doi:10.7554/elife.92620 [code]
- Rule-based modulation of a sensorimotor transformation across cortical areas.Journal: eLifeIn common: Signal Processing Toolbox, Statistics and Machine Learning Toolbox, mouse, 12 references
- [10] doi:10.1016/j.cell.2022.02.006 [code]
- A midbrain-thalamus-cortex
circuit reorganizes cortical dynamics to initiate movement. Journal: CellIn common: Parallel Computing Toolbox, Signal Processing Toolbox, Image Processing Toolbox, 1 other tool, 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.
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: 3 repositories of the authors' code, each at its verified commit and with its license, 222 scripts, and 4 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:5f9a198a78b6f5e5…
Add the badge to the code's README
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 -->
[](https://openscicode.org/badge/doi/10.1038/s41467-026-73622-y)
<!-- oscr-badge:end -->reStructuredText
.. oscr-badge:start
.. image:: https://openscicode.org/badge/doi/10.1038/s41467-026-73622-y.svg
:target: https://openscicode.org/badge/doi/10.1038/s41467-026-73622-y
:alt: OSCR
.. oscr-badge:endHTML
<!-- oscr-badge:start -->
<a href="https://openscicode.org/badge/doi/10.1038/s41467-026-73622-y"><img src="https://openscicode.org/badge/doi/10.1038/s41467-026-73622-y.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.
