Offline generative network reconfiguration guides insight-like accelerated learning by assimilation into schema in rats.
6 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 7 matches · 3 of them tie a paragraph to a whole file without given lines: weak matches, whose lines are not tinted
- [1] § Methods › Methods details › Bayesian decoding of neural activity ↔ KetamineProject/libs/Decoding/BayePosDecode_LabCode_Lite_CosineExp.m, the whole file · a weak match · score 0.74 · Bayesian decoding, awake rest, temporal bins, reconstructed, firing rate, window · block
oscr:b:TAQ4XR1QT3030-E· Report a mismatch - [2] § Methods › Methods details › Bayesian decoding of neural activity ↔ KetamineProject/AnalysisTutorial/function_ThetaSeq_ByVelocity.m, the whole file · a weak match · score 0.71 · Bayesian decoding, decoded position, immobility, posterior, window, peak · block
oscr:b:FGWNZA0SRTYQ4-P· Report a mismatch - [3] § Methods › Methods details › mPFC cell-assemblies ↔ DetourProject/function_PlaceMap_Mvregress.m, lines 157 to 223 · score 0.70 · ID shuffles, reduced models, full model, linear regression, cell · block
oscr:b:GS740AGFW6P0W-K· Report a mismatch - [4] § Methods › Methods details › Cue-, place-, and outcome-responsive neurons ↔ DetourProject/function_PlaceMap_Mvregress.m, lines 157 to 223 · score 0.61 · reduced model, full model, linear regression, id, shuffled · block
oscr:b:GS740AGFW6P0W-K· Report a mismatch - [5] § Methods › Methods details › LFP Analysis in ripple disruption experiments ↔ SchemaBasedLearning/Fig6/Fig6Disruption.m, lines 563 to 651 · score 0.61 · power spectrum, linear regression, subtracting, fit, log, disruption · block
oscr:b:5YKEWBCVN2KD8-Z· Report a mismatch - [6] § Methods › Methods details › Linearization and firing rates ↔ KetamineProject/libs/Placecells/CA_Getplacefield5cms.m, the whole file · a weak match · score 0.61 · linearized, occupancy, Firing rates, smoothed, kernel, SD · block
oscr:b:AC2H4WPGF2G3Q-I· Report a mismatch - [7] § Results › Inference and rapid network reconfiguration during sleep ↔ KetamineProject/AnalysisTutorial/python/LDS_FitEachREM.py, lines 1 to 52 · score 0.51 · REM sleep, sleep sessions, asked, epochs, trajectory, activity · block
oscr:b:W2WSA5M2RBYRK-V· 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 · 224 lines · 9.1 KB · no license · 2 matches
- function [pctvar,shfpctvar] = function_PlaceMap_Mvregress(ses,M1,M2,PlFields,ClF,PlFmesh)
- % function_PlaceMap_Mvregress
- % this function extract tuning curves on the first and the last 50 cm
- % segments on detoured tracks, and use a multi-variable regressor to study
- % how post-detour tuning curves can be predicted based on pre-detour,
- % detour, parallel track, and T1&T3. The result is quantified as the
- % percentage residual difference between the full model and the reduced
- % model where one regressor is removed. The result is also compared against
- % shuffle datasets where the sample ID is shuffled in the mvregress
- %
- % inputs: ses, M1, M2, PlFields, ClF, PlFmesh, see documents: "DataStructure"
- %
- % outputs: pctvar, is a 1*5 vector contain the percentage residual
- % difference in the mvregress to predict post-detour
- % tuning curve if we remove:
- % 1. pre-detour tuning curve; 2. detour tuning curve;
- % 3. parralel track tuning curve; 4. T1 tuning curve;
- % 5. T3 tuning curve
- % from the model
- % shfpctvar, is a n*5 matrix, with row being shuffles and
- % column being regressors
- %
- % Yuchen Zhou 2025 Apr, [email hidden], [email hidden]
- %% preprocess and setting parameters
- % exclude int neurons in this analysis
- [~,~,~,PlFields,~,~] = CA_ExcludeInt(M1,M2,ClF,PlFields);
- % order tracks by linear pos
- ses = Detour_Ordertracks(ses);
- % get segment length for each detour track
- rplens = Detour_GetDetourSegLen(ses,[2,4]);
- dettra = [2,4]; % detoured tracks
- klint = [1,3]; % kept linear tracks
- segdof = 50; % for each segment, we will interpolate to make sure the tuning curve
- % has the length of 50, so we will have the same vector length
- shft = 500; % number of sample ID shuffle in mvregress
- %% get tuning curves on kept segments on tracks
- allplf = cell(1,6);
- % in allplf, we will have tuning curves for
- % 1.Pre-detour, 2.Det, 3.Post-detour, 4.Parallel, 5.T1, 6.T3 tracks
- % we only track the first and the last 50cm segments on tracks, and
- % concatenate those tuning curves. We do this because there is no direct
- % correpsondence between the 150cm U shape detour segment and 50cm removed
- % or reversal segments.
- % in each element of allplf, it's a matrix with
- % D1 being observations (cell * detour tracks * direction)
- % D2 being spatial bins (dimension of the data)
- % find tuning curve on the first and the last 50 cm segments on detoured tracks
- % in pre-detour, detour, and post detour sessions
- for icat = 1:3
- % cat 1,2,3 are pre-detour,detour,post-detour sessions
- for idir = 1:2
- for it = dettra
- detses = Det_FindDetTSes(it,ses);
- is = detses + icat-2;
- % get track limit and range of linear segment, rescale
- % them to have segdof bins
- tralim = ses(is).tralim(it,:);
- cornertol = 0;
- seg1 = [tralim(1)+cornertol,tralim(1) + rplens{it}(1)];
- seg2 = [tralim(2) - rplens{it}(2),tralim(2)-cornertol];
- idx1 = idxinrange(PlFmesh,seg1);
- idx2 = idxinrange(PlFmesh,seg2);
- plfm1 = PlFmesh(idx1);
- plfm2 = PlFmesh(idx2);
- % interpolate to make sure they have the same length
- newplfm1 = linspace(plfm1(1),plfm1(end),segdof);
- newplfm2 = linspace(plfm2(1),plfm2(end),segdof);
- plf1 = squeeze(PlFields(:,is,idir,idx1));
- plf2 = squeeze(PlFields(:,is,idir,idx2));
- newplf1 = interp1(plfm1,plf1',newplfm1);
- newplf2 = interp1(plfm2,plf2',newplfm2);
- newplf1 = newplf1';
- newplf2 = newplf2';
- nowplf = cat(2,newplf1,newplf2);
- % concatenate all the obeservations, D1 are observations (cell* detour tracks * direction)
- % D2 are spatial bins (dimension of the data)
- allplf{icat} = cat(1,allplf{icat},nowplf);
- end
- end
- end
- % find tuning curve on the first and the last 50 cm segments on the parallel tracks
- % during detour session
- for idir = 1:2
- for it = dettra
- detses = Det_FindDetTSes(it,ses);
- ot = setdiff(dettra,it);
- is = detses;
- % get track limit and range of linear segment, rescale
- % them to have segdof bins
- tralim = ses(is).tralim(ot,:);
- seg1 = [tralim(1)+cornertol,tralim(1) + rplens{ot}(1)];
- seg2 = [tralim(2) - rplens{ot}(2),tralim(2)-cornertol];
- idx1 = idxinrange(PlFmesh,seg1);
- idx2 = idxinrange(PlFmesh,seg2);
- plfm1 = PlFmesh(idx1);
- plfm2 = PlFmesh(idx2);
- % interpolate to make sure they have the same length
- newplfm1 = linspace(plfm1(1),plfm1(end),segdof);
- newplfm2 = linspace(plfm2(1),plfm2(end),segdof);
- plf1 = squeeze(PlFields(:,is,idir,idx1));
- plf2 = squeeze(PlFields(:,is,idir,idx2));
- newplf1 = interp1(plfm1,plf1',newplfm1);
- newplf2 = interp1(plfm2,plf2',newplfm2);
- newplf1 = newplf1';
- newplf2 = newplf2';
- nowplf = cat(2,newplf1,newplf2);
- % concatenate all the obeservations, D1 are observations (cell* detour tracks * direction)
- % D2 are spatial bins (dimension of the data)
- allplf{4} = cat(1,allplf{4},nowplf);
- end
- end
- % find tuning curve on the first and the last 50 cm segments on the T1 and
- % T3 during detour session
- for idir = 1:2
- % we still need this detour track loop, as for each detoured segment, we
- % want to explain tuning curve from T1 & T3
- for it = dettra
- for jt = 1:length(klint)
- is = detses;
- % get track limit and range of linear segment, rescale
- % them to have segdof bins
- tralim = ses(is).tralim(klint(jt),:);
- seg1 = [tralim(1)+cornertol,tralim(1) + 50];
- seg2 = [tralim(2) - 50,tralim(2)-cornertol];
- idx1 = idxinrange(PlFmesh,seg1);
- idx2 = idxinrange(PlFmesh,seg2);
- plfm1 = PlFmesh(idx1);
- plfm2 = PlFmesh(idx2);
- % interpolate to make sure they have the same length
- newplfm1 = linspace(plfm1(1),plfm1(end),segdof);
- newplfm2 = linspace(plfm2(1),plfm2(end),segdof);
- plf1 = squeeze(PlFields(:,is,idir,idx1));
- plf2 = squeeze(PlFields(:,is,idir,idx2));
- newplf1 = interp1(plfm1,plf1',newplfm1);
- newplf2 = interp1(plfm2,plf2',newplfm2);
- newplf1 = newplf1';
- newplf2 = newplf2';
- nowplf = cat(2,newplf1,newplf2);
- % concatenate all the obeservations, D1 are observations (cell* detour tracks * direction)
- % D2 are spatial bins (dimension of the data)
- allplf{4+jt} = cat(1,allplf{4+jt},nowplf);
- end
- end
- end
- %% build Multivariate linear regression full model
- allobs = size(allplf{1},1);
- X = cell(1,allobs); % this are the regressors
- % in X we have the following terms:
- % 1. intercept, 2. pre-detour tuning curve, 3. detour tuning curve,
- % 4. parallel track tuning curve, 5. T1 tuning curve, 6. T3 tuning curve,
- % 7. averaged tuning turve
- % The averaged tuning turve illustrate the spatial preference rather than
- % single cell tuning properties, for example, higher rate at corners
- averate = nanmean(allplf{3},1);
- DOF = size(allplf{1},2);
- for iob = 1:allobs
- X{iob} = [ones(DOF,1),allplf{1}(iob,:)',allplf{2}(iob,:)',...
- allplf{4}(iob,:)',allplf{5}(iob,:)',allplf{6}(iob,:)',becolumn(averate)];
- % intercept,pre,detour,parallel T,T1,T3,averate
- end
- % we need to predict post-detour tuning curve
- Ynow = allplf{3};
- [~,~,resi,~,~] = mvregress(X,Ynow,'algorithm','cwls');
- % get the model residual
- fullvar = norm(resi(:));
- % build reduced model, get model residual, compare with sample ID shuffle
- effectele = [2,3,4,5,6];
- % we will remove each regressor once at a time, and see how much it
- % contribute to the model residual
- % we will remove pre,detour,parallel,T1,T3
- pctvar = nan(1,5);
- % this is the pct residual related to each regressor
- for iele = 1:length(effectele)
- Xtmp = cell(1,allobs);
- for iob = 1:allobs
- % remove that regressor
- nowele = setdiff(effectele,effectele(iele));
- Xtmp{iob} = X{iob}(:,[1,nowele,7]);
- end
- [~,~,resinow,~,~] = mvregress(Xtmp,Ynow,'algorithm','cwls');
- % get the model residual
- resivar = norm(resinow(:));
- % get improvement from this regressor
- pctvar(effectele(iele)-1) = (resivar-fullvar)./fullvar*100;
- end
- % we will do a sample id shuffle, where we shuffle the sample id in post
- % session
- shfpctvar = nan(shft,5);
- for ish = 1:shft
- shfplf = Ynow(randperm(size(Ynow,1)),:);
- [~,~,resinow,~,~]= mvregress(X,shfplf,'algorithm','cwls');
- fullshfvar = norm(resinow(:));
- for iele = 1:length(effectele)
- Xtmp = cell(1,allobs);
- for iob = 1:allobs
- % remove that regressor
- nowele = setdiff(effectele,effectele(iele));
- Xtmp{iob} = X{iob}(:,[1,nowele,7]);
- end
- % get the model residual
- [~,~,resinow,~,~] = mvregress(Xtmp,shfplf,'algorithm','cwls');
- resivar = norm(resinow(:));
- shfpctvar(ish,effectele(iele)-1) = (resivar-fullshfvar)./fullshfvar*100;
- end
- end
- end
function_PlaceMap_Mvregress.m at commit 60a3d34, no license · at the source
Overview
- Department of Psychiatry, Yale School of Medicine,New Haven, CT USA
- Department of Neuroscience and Wu Tsai Institute, Yale School of Medicine,New Haven, CT USA
Abstract
Complex cross-modal de-novo associative learning generally requires numerous encoding exposures, but acquisition of an underlying mental schema of associative abstract rules enables insight-like accelerated new learning. Reports indicate that post-encoding sleep/
Reproduced under the paper's license (CC BY), from the paper cited above.
Repository
Its files are read in the Code ↔ Paper reader above, with 7 matches between paragraphs and lines of code.
GDYlab/GDYlabcode
60a3d348416c94c167a8cd94a6b1ded0030e0240, 17 July 2026Availability: 2 checks, the latest on 26 October 2026: the link answers
- 26 October 2026: the link answers
- 26 September 2026: the link answers
200 files
- DetourProject/
RunTemplate.m , MATLAB, 275 lines - DetourProject/
function_DetRun_Flickeri , MATLAB, 229 linesngofPreMobile.m - DetourProject/
function_DetourEarlylap_ , MATLAB, 251 linesCCG_CorrXTimeScale.m - DetourProject/
function_DetourLaps_Thet , MATLAB, 333 linesaSeqDcd_QR.m - DetourProject/
function_DetourThetaCycl , MATLAB, 133 linese_PreSlpFrame_RankCorrPc t.m - DetourProject/
function_PlaceMap_Mvregr , MATLAB, 224 lines, 2 matchesess.m - DetourProject/
function_PostDetRun_Flic , MATLAB, 224 lineskeringofDetour.m - DetourProject/
function_PplCorrXSpaceBi , MATLAB, 78 linesn_PrevsDet.m - DetourProject/
libs/ , MATLAB, 37 linesCommonOperation/ CellCatinAllD.m - DetourProject/
libs/ , MATLAB, 9 linesCommonOperation/ GaussianSmooth1D.m - DetourProject/
libs/ , MATLAB, 6 linesCommonOperation/ GetCenterfromEdge.m - DetourProject/
libs/ , MATLAB, 27 linesCommonOperation/ GetEpochwithCrioverLen.m - DetourProject/
libs/ , MATLAB, 307 linesCommonOperation/ RunLength_2017_04_08/ InstallMex.m - DetourProject/
libs/ , C, 459 linesCommonOperation/ RunLength_2017_04_08/ RunLength.c - DetourProject/
libs/ , MATLAB, 77 linesCommonOperation/ RunLength_2017_04_08/ RunLength.m - DetourProject/
libs/ , MATLAB, 162 linesCommonOperation/ RunLength_2017_04_08/ RunLength_M.m - DetourProject/
libs/ , MATLAB, 588 linesCommonOperation/ RunLength_2017_04_08/ uTest_RunLength.m - DetourProject/
libs/ , MATLAB, 11 linesCommonOperation/ TakeUpTriElements.m - DetourProject/
libs/ , MATLAB, 21 linesCommonOperation/ becolumn.m - DetourProject/
libs/ , MATLAB, 22 linesCommonOperation/ berow.m - DetourProject/
libs/ , MATLAB, 27 linesCommonOperation/ bload.m - DetourProject/
libs/ , MATLAB, 10 linesCommonOperation/ bsave.m - DetourProject/
libs/ , MATLAB, 21 linesCommonOperation/ downzerocrossing.m - DetourProject/
libs/ , MATLAB, 11 linesCommonOperation/ get_tbins.m - DetourProject/
libs/ , MATLAB, 9 linesCommonOperation/ getmeanfromcell.m - DetourProject/
libs/ , MATLAB, 6 linesCommonOperation/ idxinrange.m - DetourProject/
libs/ , MATLAB, 13 linesCommonOperation/ idxinrange_v2.m - DetourProject/
libs/ , MATLAB, 232 linesCommonOperation/ invprctile.m - DetourProject/
libs/ , MATLAB, 12 linesCommonOperation/ myclip.m - DetourProject/
libs/ , MATLAB, 28 linesCommonOperation/ mysaveplot.m - DetourProject/
libs/ , MATLAB, 29 linesCommonOperation/ nanflip.m - DetourProject/
libs/ , MATLAB, 10 linesCommonOperation/ nanreplace.m - DetourProject/
libs/ , MATLAB, 19 linesCommonOperation/ nanweightmean.m - DetourProject/
libs/ , MATLAB, 18 linesCommonOperation/ pctdisplay.m - DetourProject/
libs/ , MATLAB, 13 linesCommonOperation/ setdiag.m - DetourProject/
libs/ , MATLAB, 17 linesCommonOperation/ testsubpos.m - DetourProject/
libs/ , MATLAB, 21 linesCommonOperation/ upzerocrossing.m - DetourProject/
libs/ , MATLAB, 60 linesDecoding/ BayePosDecode_LabCode_Li te.m - DetourProject/
libs/ , MATLAB, 15 linesDecoding/ histcounts_row_kf.m - DetourProject/
libs/ , MATLAB, 75 linesDecoding/ parameter_estimation_sim ple.m - DetourProject/
libs/ , MATLAB, 63 linesDecoding/ parseArgs.m - DetourProject/
libs/ , MATLAB, 71 linesDecoding/ reconstruct_yuchen.m - DetourProject/
libs/ , MATLAB, 35 linesDetourRelated/ CA_ExcludeInt.m - DetourProject/
libs/ , MATLAB, 10 linesDetourRelated/ Det_FindDetTSes.m - DetourProject/
libs/ , MATLAB, 40 linesDetourRelated/ Det_SleepBehPrePost.m - DetourProject/
libs/ , MATLAB, 22 linesDetourRelated/ Detour_GetDetourSegLen.m - DetourProject/
libs/ , MATLAB, 17 linesDetourRelated/ Detour_Ordertracks.m - DetourProject/
libs/ , MATLAB, 20 linesDetourRelated/ uniquemazeltime.m - DetourProject/
libs/ , MATLAB, 61 linesMarkovChain/ FramePWOrderPct.m - DetourProject/
libs/ , MATLAB, 65 linesMarkovChain/ FrameTPM_CMass.m - DetourProject/
libs/ , MATLAB, 18 linesPlots/ Color_FrenchDisp_modify. m - DetourProject/
libs/ , MATLAB, 48 linesPlots/ StatPlot/ AllGroupRankSum.m - DetourProject/
libs/ , MATLAB, 31 linesPlots/ StatPlot/ AllGroupSignRank.m - DetourProject/
libs/ , MATLAB, 31 linesPlots/ StatPlot/ AllGroupTtest.m - DetourProject/
libs/ , MATLAB, 34 linesPlots/ StatPlot/ AllGroupTtest2.m - DetourProject/
libs/ , MATLAB, 75 linesPlots/ StatPlot/ My1PDF1VComparePlot.m - DetourProject/
libs/ , MATLAB, 58 linesPlots/ StatPlot/ My1PDF1VComparePlot_v2.m - DetourProject/
libs/ , MATLAB, 60 linesPlots/ StatPlot/ My2CDFCompare.m - DetourProject/
libs/ , MATLAB, 93 linesPlots/ StatPlot/ My2CDFCompare_v2.m - DetourProject/
libs/ , MATLAB, 95 linesPlots/ StatPlot/ My2CDFCompare_v3.m - DetourProject/
libs/ , MATLAB, 82 linesPlots/ StatPlot/ My2PDFComparePlot.m - DetourProject/
libs/ , MATLAB, 81 linesPlots/ StatPlot/ My2sampleRatioBarCompare .m - DetourProject/
libs/ , MATLAB, 213 linesPlots/ StatPlot/ My2samplesCompare.m - DetourProject/
libs/ , MATLAB, 84 linesPlots/ StatPlot/ MyBarSampleSEMPlot.m - DetourProject/
libs/ , MATLAB, 86 linesPlots/ StatPlot/ MyBarSampleSEMPlot_v2.m - DetourProject/
libs/ , MATLAB, 180 linesPlots/ StatPlot/ MyBootstrapMean.m - DetourProject/
libs/ , MATLAB, 172 linesPlots/ StatPlot/ MyBootstrapMean_v2.m - DetourProject/
libs/ , MATLAB, 166 linesPlots/ StatPlot/ MyBootstrapMedian.m - DetourProject/
libs/ , MATLAB, 149 linesPlots/ StatPlot/ MyBoxPlot.m - DetourProject/
libs/ , MATLAB, 167 linesPlots/ StatPlot/ MyBoxPlot_v2.m - DetourProject/
libs/ , MATLAB, 172 linesPlots/ StatPlot/ MyBoxPlot_v3.m - DetourProject/
libs/ , MATLAB, 127 linesPlots/ StatPlot/ MyCDFsCompare.m - DetourProject/
libs/ , MATLAB, 173 linesPlots/ StatPlot/ MyCDFsCompare_v2.m - DetourProject/
libs/ , MATLAB, 131 linesPlots/ StatPlot/ MyCDFsCompare_v3.m - DetourProject/
libs/ , MATLAB, 88 linesPlots/ StatPlot/ MyJointPDF.m - DetourProject/
libs/ , MATLAB, 56 linesPlots/ StatPlot/ MyNCDFCompare.m - DetourProject/
libs/ , MATLAB, 54 linesPlots/ StatPlot/ MyNCDFCompare_v2.m - DetourProject/
libs/ , MATLAB, 64 linesPlots/ StatPlot/ MyNCDFCompare_v3.m - DetourProject/
libs/ , MATLAB, 59 linesPlots/ StatPlot/ MyNPDFCompare.m - DetourProject/
libs/ , MATLAB, 99 linesPlots/ StatPlot/ MyPairSEMBarPlot.m - DetourProject/
libs/ , MATLAB, 61 linesPlots/ StatPlot/ MyPairSEMPlot.m - DetourProject/
libs/ , MATLAB, 84 linesPlots/ StatPlot/ MyPairSEMPlot_v2.m - DetourProject/
libs/ , MATLAB, 120 linesPlots/ StatPlot/ MySEMPlot.m - DetourProject/
libs/ , MATLAB, 65 linesPlots/ StatPlot/ MySEMPlot_v2.m - DetourProject/
libs/ , MATLAB, 105 linesPlots/ StatPlot/ MySampleComparePlot.m - DetourProject/
libs/ , MATLAB, 72 linesPlots/ StatPlot/ MyStemPDFPlot.m - DetourProject/
libs/ , MATLAB, 53 linesPlots/ StatPlot/ Plot2SetDisjointVenn.m - DetourProject/
libs/ , MATLAB, 83 linesPlots/ StatPlot/ TwoProportionZtest2D.m - DetourProject/
libs/ , MATLAB, 91 linesPlots/ StatPlot/ TwoProportionZtest2D_Log plot.m - DetourProject/
libs/ , MATLAB, 111 linesPlots/ StatPlot/ TwoProportionZtest2D_v2. m - DetourProject/
libs/ , MATLAB, 119 linesPlots/ StatPlot/ TwoProportionZtest2D_v3. m - DetourProject/
libs/ , MATLAB, 108 linesPlots/ StatPlot/ TwoProportionZtest2D_v3_ pdf.m - DetourProject/
libs/ , MATLAB, 34 linesPlots/ StatPlot/ addSEMBartoPlot.m - DetourProject/
libs/ , MATLAB, 246 linesPlots/ StatPlot/ myBinomTest_yc.m - DetourProject/
libs/ , MATLAB, 83 linesPlots/ StatPlot/ plot2vcorr.m - DetourProject/
libs/ , MATLAB, 321 linesPlots/ StatPlot/ sigstar.m - DetourProject/
libs/ , MATLAB, 1,589 linesPlots/ StatPlot/ spider_plot/ spider_plot.m - DetourProject/
libs/ , MATLAB, 1,388 linesPlots/ StatPlot/ spider_plot/ spider_plot_R2019b.m - DetourProject/
libs/ , MATLAB, to read at its sourcePlots/ StatPlot/ spider_plot/ spider_plot_R2019b_examp les.mlx - DetourProject/
libs/ , MATLAB, 2,191 linesPlots/ StatPlot/ spider_plot/ spider_plot_class.m - DetourProject/
libs/ , MATLAB, to read at its sourcePlots/ StatPlot/ spider_plot/ spider_plot_class_exampl es.mlx - DetourProject/
libs/ , MATLAB, to read at its sourcePlots/ StatPlot/ spider_plot/ spider_plot_examples.mlx - DetourProject/
libs/ , MATLAB, 21 linesPlots/ addcolorbar.m - DetourProject/
libs/ , MATLAB, 19 linesPlots/ figure_letter.m - DetourProject/
libs/ , MATLAB, 16 linesPlots/ ncl_colormaps/ flamecmap.m - DetourProject/
libs/ , MATLAB, 32 linesPlots/ ncl_colormaps/ getNCLColmap.m - DetourProject/
libs/ , MATLAB, 16 linesPlots/ ncl_colormaps/ makecamp1stwhite.m - DetourProject/
libs/ , MATLAB, 42 linesPlots/ ncl_colormaps/ myStepSeq.m - DetourProject/
libs/ , MATLAB, 42 linesPlots/ ncl_colormaps/ stripedCMap.m - DetourProject/
libs/ , MATLAB, 79 linesPlots/ plotPplVCosExample.m - DetourProject/
libs/ , MATLAB, 188 linesTimeSeriesAnalysis/ CCG_zyc.m - DetourProject/
libs/ , MATLAB, 26 linesTimeSeriesAnalysis/ Filter0.m - DetourProject/
libs/ , MATLAB, 28 linesTimeSeriesAnalysis/ Population_Corre.m - KetamineProject/
AnalysisTutorial/ , MATLAB, 265 linesRunTemplate.m - KetamineProject/
AnalysisTutorial/ , MATLAB, 191 linesfunction_Beh_RunVelocity Measures.m - KetamineProject/
AnalysisTutorial/ , MATLAB, 122 linesfunction_Embedding_RunSp ikeDim.m - KetamineProject/
AnalysisTutorial/ , MATLAB, 114 linesfunction_LFPSpec_RunBisp ectrum.m - KetamineProject/
AnalysisTutorial/ , MATLAB, 127 linesfunction_RunSpikeMutualI nfo.m - KetamineProject/
AnalysisTutorial/ , MATLAB, 140 lines, 1 matchfunction_ThetaSeq_ByVelo city.m - KetamineProject/
AnalysisTutorial/ , MATLAB, 162 linesfunction_WakingMazeRep_C osineProb.m - KetamineProject/
AnalysisTutorial/ , Python, 141 lines, 1 matchpython/ LDS_FitEachREM.py - KetamineProject/
AnalysisTutorial/ , Python, 143 linespython/ LDS_REMPredictStepErr.py - KetamineProject/
FigureScripts/ , MATLAB, 765 linesDissociationBehHPC_v9.m - KetamineProject/
FigureScripts/ , MATLAB, 597 linesLDSREMandRun_v5.m - KetamineProject/
FigureScripts/ , MATLAB, 765 linesSetup_BehLFPImpact_v5.m - KetamineProject/
FigureScripts/ , MATLAB, 1,059 linesSleepStateIntrusion_v12. m - KetamineProject/
FigureScripts/ , MATLAB, 1,051 linesWakingRestDissociation_v 6.m - KetamineProject/
FigureScripts/ , MATLAB, 741 linesWeakerFunctionalConnect_ v7.m - KetamineProject/
libs/ , MATLAB, 23 linesBehavior/ Detour_Ordertracks.m - KetamineProject/
libs/ , MATLAB, 15 linesBehavior/ KTM_SessionLabels.m - KetamineProject/
libs/ , MATLAB, 19 linesBehavior/ KTM_ValidSessions.m - KetamineProject/
libs/ , MATLAB, 23 linesBehavior/ uniquemazeltime.m - KetamineProject/
libs/ , MATLAB, 35 linesClustering/ CA_ExcludeInt.m - KetamineProject/
libs/ , MATLAB, 6 linesCommonOperation/ GetCenterfromEdge.m - KetamineProject/
libs/ , MATLAB, 42 linesCommonOperation/ GetEpochwithCrioverLen.m - KetamineProject/
libs/ , MATLAB, 21 linesCommonOperation/ addcolorbar.m - KetamineProject/
libs/ , MATLAB, 11 linesCommonOperation/ get_tbins.m - KetamineProject/
libs/ , MATLAB, 6 linesCommonOperation/ idxinrange.m - KetamineProject/
libs/ , MATLAB, 12 linesCommonOperation/ myclip.m - KetamineProject/
libs/ , MATLAB, 60 linesDecoding/ BayePosDecode_LabCode_Li te.m - KetamineProject/
libs/ , MATLAB, 65 lines, 1 matchDecoding/ BayePosDecode_LabCode_Li te_CosineExp.m - KetamineProject/
libs/ , MATLAB, 14 linesDecoding/ addnoisetoplf.m - KetamineProject/
libs/ , MATLAB, 15 linesDecoding/ histcounts_row_kf.m - KetamineProject/
libs/ , MATLAB, 83 linesDecoding/ parameter_estimation_cos ineExp.m - KetamineProject/
libs/ , MATLAB, 75 linesDecoding/ parameter_estimation_sim ple.m - KetamineProject/
libs/ , MATLAB, 63 linesDecoding/ parseArgs.m - KetamineProject/
libs/ , MATLAB, 95 linesDecoding/ reconstruct_CosineExp.m - KetamineProject/
libs/ , MATLAB, 71 linesDecoding/ reconstruct_yuchen.m - KetamineProject/
libs/ , MATLAB, 26 linesElectrophysiology/ Filter0.m - KetamineProject/
libs/ , MATLAB, 70 linesEmbedding/ Dfrom2NN.m - KetamineProject/
libs/ , MATLAB, 118 linesEntropy/ PointMutualInfo_multiseg .m - KetamineProject/
libs/ , MATLAB, 89 lines, 1 matchPlacecells/ CA_Getplacefield5cms.m - KetamineProject/
libs/ , MATLAB, 103 linesSpectralAna/ basicN2BSpt_Yu.m - KetamineProject/
libs/ , MATLAB, 16 linesVectorOperation/ AngleBetweenV.m - SchemaBasedLearning/
Fig1/ , MATLAB, 1,893 linesFig1LearningCurves.m - SchemaBasedLearning/
Fig2/ , MATLAB, 1,119 linesFig2Generalization.m - SchemaBasedLearning/
Fig3/ , MATLAB, 2,295 linesFig3Prediction.m - SchemaBasedLearning/
Fig4/ , MATLAB, 1,676 linesFig4SleepNetwork.m - SchemaBasedLearning/
Fig5/ , MATLAB, 1,761 linesFig5PFCCoordination.m - SchemaBasedLearning/
Fig6/ , MATLAB, 1,444 lines, 1 matchFig6Disruption.m - SchemaBasedLearning/
Helpers/ , MATLAB, 48 linesBayesDecode_FramesWithPl ot.m - SchemaBasedLearning/
Helpers/ , MATLAB, 72 linesCalcAwakeCAActivationInS leep25.m - SchemaBasedLearning/
Helpers/ , MATLAB, 93 linesCalcAwakeCellAssemblyPer iRippleActivationClassif ication.m - SchemaBasedLearning/
Helpers/ , MATLAB, 310 linesCalcCorrMatForCuePlaceCo activityInSleep.m - SchemaBasedLearning/
Helpers/ , MATLAB, 111 linesCalcExampleRSMMatPlotDat a.m - SchemaBasedLearning/
Helpers/ , MATLAB, 42 linesCalcFiringRatesSleep.m - SchemaBasedLearning/
Helpers/ , MATLAB, 78 linesCalcFlavorCellsRippleAct ivityForFinalPlot.m - SchemaBasedLearning/
Helpers/ , MATLAB, 68 linesCalcGoalFiringRatesCellA ssemblies.m - SchemaBasedLearning/
Helpers/ , MATLAB, 302 linesCalcGoalGenralizingPFCCA ShuffleV2.m - SchemaBasedLearning/
Helpers/ , MATLAB, 111 linesCalcGoalProbConsolidatio nEffectNewVsOld.m - SchemaBasedLearning/
Helpers/ , MATLAB, 455 linesCalcGoalProbLearningEffe ctsOnSleepFramesNewVsOld .m - SchemaBasedLearning/
Helpers/ , MATLAB, 277 linesCalcLFPBestTet.m - SchemaBasedLearning/
Helpers/ , MATLAB, 125 linesCalcMembershipCueCellsin PFCAssemblies.m - SchemaBasedLearning/
Helpers/ , MATLAB, 1,092 linesCalcRSMSimilaritiesTempo ralEachSessWithShufflesV 2.m - SchemaBasedLearning/
Helpers/ , MATLAB, 146 linesCalcReplayConcatPriorCom bSleep.m - SchemaBasedLearning/
Helpers/ , MATLAB, 304 linesCalcRepresentationalMatr ixForAwakeCellAssemblies GoalForSleepActivations. m - SchemaBasedLearning/
Helpers/ , MATLAB, 67 linesCalcSingleCellPeriRipple Activation.m - SchemaBasedLearning/
Helpers/ , MATLAB, 56 linesCalcSleepRipples.m - SchemaBasedLearning/
Helpers/ , MATLAB, 177 linesCalcStartArmDecodingSpat ialEachTrialWithShuff.m - SchemaBasedLearning/
Helpers/ , MATLAB, 245 linesCalcStartArmDecodingTemp oralEachSessLast.m - SchemaBasedLearning/
Helpers/ , MATLAB, 321 linesCalcStartArmDecodingTemp oralEachTrialWithShuff.m - SchemaBasedLearning/
Helpers/ , MATLAB, 121 linesCalcStartArmSpatialDecod ingNextTargetAllTrials50 .m - SchemaBasedLearning/
Helpers/ , MATLAB, 238 linesCalcStartArmTemporalDeco dingNextTargetRTURT.m - SchemaBasedLearning/
Helpers/ , MATLAB, 148 linesCalcTimeSequenceConcatSl eep.m - SchemaBasedLearning/
Helpers/ , MATLAB, 345 linesCalcTimeSequencesInstant aneousError.m - SchemaBasedLearning/
Helpers/ , MATLAB, 114 linesCalcTrackProbLearningEff ectOnSleepFramesHPC.m - SchemaBasedLearning/
Helpers/ , MATLAB, 118 linesCalcTrackProbLearningEff ectsOnSleepFramesNewVsOl d.m - SchemaBasedLearning/
Helpers/ , MATLAB, 98 linesCellAssembliesCorrMatSle epFrames.m - SchemaBasedLearning/
Helpers/ , MATLAB, 82 linesCellAssembliesToFiringRa tes.m - SchemaBasedLearning/
Helpers/ , MATLAB, 70 linesCellAssemblyFromAwakeRun .m - SchemaBasedLearning/
Helpers/ , MATLAB, 360 linesChosenArmsExperiments.m - SchemaBasedLearning/
Helpers/ , MATLAB, 438 linesChosenArmsTraining.m - SchemaBasedLearning/
Helpers/ , MATLAB, 212 linesDecodeFramesConcatPriorB aselineAssimilated.m - SchemaBasedLearning/
Helpers/ , MATLAB, 175 linesFindFramesSleep.m - SchemaBasedLearning/
Helpers/ , MATLAB, 287 linesGeneratePerformanceMatEx periments.m - SchemaBasedLearning/
Helpers/ , MATLAB, 193 linescl2mat.m - ensembleframepaircorrela
tions.m , MATLAB, 24 lines - framepairsimiliarty_norm
alization_by_shuffles.m , MATLAB, 1 line - plotting_detected_cluste
rmats.m , MATLAB, 1 line - README.md, Text, 5 lines
Code availability
The custom codes specific to this study that are needed to interpret, verify, and extend the research in the article are uploaded and made available at: https://
Reproduced under the paper's license (CC BY), from the paper cited above.
Tracing map
Proposed by the machine: these links were found in the paper and verified at the source, without human review. The map will receive a Zenodo DOI once one of the paper's authors has validated it with their ORCID.
What the map holds:
- 1 repository of the authors' code, each at its verified commit, with its license and how the link was found in the paper;
- 199 scripts, each with its path and the digest of its content;
- 7 matches between paragraphs of the paper and lines of the code (method lexical-v1);
- neither the text of the paper nor the code itself.
Its JSON (tracing-map.json) is deposited on Zenodo with its DOI once the map is validated.
Data
No dataset and no data link were found in the paper.
Data availability
All data needed to evaluate or extend the conclusions in the article are presented in the main article, Supplementary Figs., and tables. Source data are provided with this paper. All data generated in this study have been deposited into the file servers of the Yale University Medical School. The very large size of raw data prohibits their archiving on public servers. The data are available under restricted access behind a firewall, and access can be obtained from the corresponding author of the study. No clinical datasets or genetic data have been generated or used in this study. Source data are provided with this paper.
Reproduced under the paper's license (CC BY), from the paper cited above.
Versions
The history of this record: each version stored by the harvester or made by a correction of its authors or of the maintainers of its code, and what changed in its facts. The texts of the paper (its abstract, its availability statements) are not part of it; versions that changed only those are not listed.
Version 1, 27 September 2026: the first record
Recorded: type, language, journal, volume, issue, pages, dates, 2 authors, 2 keywords, 13 MeSH terms, 2 funders, 99 references.
Cite
This paper
Bhattarai, B., & Dragoi, G. (2026). Offline generative network reconfiguration guides insight-like accelerated learning by assimilation into schema in rats. Nature communications, 17(1), 9694. https://
BibTeX
@article{bhattarai2026of
author = {Bhattarai, Baburam and Dragoi, George},
title = {{Offline generative network reconfiguration guides insight-like accelerated learning by assimilation into schema in rats}},
journal = {Nature communications},
year = {2026},
month = sep,
volume = {17},
number = {1},
pages = {9694},
publisher = {Nature Publishing Group},
issn = {2041-1723},
doi = {10.1038/
url = {https://
pmid = {42722686},
pmcid = {PMC13562695}
}
RIS
TY - JOUR
AU - Bhattarai, Baburam
AU - Dragoi, George
TI - Offline generative network reconfiguration guides insight-like accelerated learning by assimilation into schema in rats
T2 - Nature communications
J2 - Nat Commun
PY - 2026
DA - 2026/
VL - 17
IS - 1
SP - 9694
SN - 2041-1723
PB - Nature Publishing Group
DO - 10.1038/
UR - https://
LA - en
ER -
CSL-JSON
{
"id": "10.1038/
"type": "article-journal",
"title": "Offline generative network reconfiguration guides insight-like accelerated learning by assimilation into schema in rats",
"container-title": "Nature communications",
"author": [
{
"family": "Bhattarai",
"given": "Baburam"
},
{
"family": "Dragoi",
"given": "George"
}
],
"container-title-short":
"volume": "17",
"issue": "1",
"page": "9694",
"DOI": "10.1038/
"PMID": "42722686",
"PMCID": "PMC13562695",
"ISSN": "2041-1723",
"publisher": "Nature Publishing Group",
"URL": "https://
"language": "en",
"issued": {
"date-parts": [
[
2026,
9,
3
]
]
}
}
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-024-52758-9 [code]
- Experience of Euclidean geometry sculpts the development and dynamics of rodent hippocampal sequential cell assemblies.Journal: Nature communicationsIn common: Wavelet Toolbox, Signal Processing Toolbox, seaborn, 5 other tools, rat, systems, 14 references, author George Dragoi
- [2] doi:10.1038/s41467-025-63346-w [code]
- Generative emergence of non-local representations in the hippocampus.Journal: Nature communicationsIn common: Wavelet Toolbox, Signal Processing Toolbox, seaborn, 5 other tools, rat, systems, 13 references, author George Dragoi
- [3] doi:10.1038/s41562-023-01799-z [code]
- A generative model of memory construction and consolidation.Journal: Nature human behaviourIn common: scikit-learn, pandas, SciPy, 1 other tool, 13 references
- [4] doi:10.1016/j.neuron.2025.09.012 [code]
- Hippocampal ripple diversity organizes neuronal reactivation dynamics in the offline brain.Journal: NeuronIn common: seaborn, SciPy, Matplotlib, systems, 13 references
- [5] doi:10.1101/lm.053834.123 [code]
- Hippocampal memory reactivation during sleep is correlated with specific cortical states of the retrosplenial and prefrontal cortices.Journal: Learning & memory (Cold Spring Harbor, N.Y.)In common: 15 references
- [6] doi:10.1038/s41467-023-43939-z [code]
- The role of experience in prioritizing hippocampal replay.Journal: Nature communicationsIn common: Signal Processing Toolbox, Statistics and Machine Learning Toolbox, rat, systems, 12 references
- [7] doi:10.1523/jneurosci.1125-25.2025 [code]
- Local Neuronal Ensembles That Coreactivate across Regions during Sleep Are Preferentially Stabilized.Journal: The Journal of neuroscience : the official journal of the Society for NeuroscienceIn common: Signal Processing Toolbox, Statistics and Machine Learning Toolbox, rat, systems, 11 references
- [8] doi:10.1073/pnas.2123424119 [code]
- Sleep deprivation and hippocampal ripple disruption after one-session learning eliminate memory expression the next day.Journal: Proceedings of the National Academy of Sciences of the United States of AmericaIn common: Signal Processing Toolbox, seaborn, Statistics and Machine Learning Toolbox, 3 other tools, 9 references
- [9] doi:10.1038/s41593-026-02357-2 [code]
- Experience reorganizes content-specific memory traces in macaques.Journal: Nature neuroscienceIn common: Signal Processing Toolbox, seaborn, Statistics and Machine Learning Toolbox, 4 other tools, 8 references
- [10] doi:10.1038/s41593-022-01149-8 [code]
- Complementary task representations in hippocampus and prefrontal cortex for generalizing the structure of problems.Journal: Nature neuroscienceIn common: seaborn, scikit-learn, pandas, 2 other tools, systems, 9 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: 1 repository of the authors' code, each at its verified commit and with its license, 199 scripts, and 7 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:f828bfa6a48135c9…
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-77318-1)
<!-- oscr-badge:end -->reStructuredText
.. oscr-badge:start
.. image:: https://openscicode.org/badge/doi/10.1038/s41467-026-77318-1.svg
:target: https://openscicode.org/badge/doi/10.1038/s41467-026-77318-1
:alt: OSCR
.. oscr-badge:endHTML
<!-- oscr-badge:start -->
<a href="https://openscicode.org/badge/doi/10.1038/s41467-026-77318-1"><img src="https://openscicode.org/badge/doi/10.1038/s41467-026-77318-1.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.
