Ventrolateral prefrontal cortex in macaques guides decisions in different learning conditions.
The 1 match
- [1] § Methods › fMRI data analyses ↔ Fujimoto_NatComm_2026_gPPI.m, lines 1–25 · score 0.56 · gPPI, 4–8 seconds, seed, vlPFC, 4 seconds, window
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 · 588 lines · 48 KB · no license · 1 match
- %---------------------------------------------------------
- % Fujimoto et al (2026) Functional connectivity analysis
- % vlPFC seed to ACC or MD ROI FC
- %---------------------------------------------------------
- clear all; close all;
- % set directory
- maindir = char('C:\MATLAB_analy\LRN_analy\data\'); %my computer
- cd(maindir);
- TR_dur = 2.12*1000; %set TR
- %analysis window settings
- psth_window = [-4000,8000];
- w_bin = 1000; w_step = 200; % bin and step sizes - 1000, 200
- nstep = floor((psth_window(2)-psth_window(1)+1-w_bin)/w_step)+1;
- %subjects
- monkey_list = ["Mew","Eevee","Starmie","Genger"];
- sbj_num = length(monkey_list);
- % ROIs generated based on gPPI result
- seed_name_tmp = 'roi_clus6_vlpfc_R_2mm'; % seed - right vlPFC
- % roi_name_list = ["roi_ppi6_clus15_acc_R_2mm"]; % ACC
- roi_name_list = ["roi_ppi6_clus8_md_L_2mm"]; % MD
- an_table_all = {};
- %%
- for roi_cnt = 1:length(roi_name_list)
- %% Each ROI analysis
- roi_name_tmp = roi_name_list(roi_cnt);
- block_rval_nov_rstay = []; block_rval_nov_nrstay = []; block_rval_nov_rswitch = []; block_rval_nov_nrswitch = [];
- block_rval_fam_rstay = []; block_rval_fam_nrstay = []; block_rval_fam_rswitch = []; block_rval_fam_nrswitch = [];
- block_rval_nov_rew = []; block_rval_fam_rew = []; block_rval_nov_nrew = []; block_rval_fam_nrew = [];
- block_rval_nov_stay = []; block_rval_nov_switch = []; block_rval_fam_stay = []; block_rval_fam_switch = [];
- pfm_allmk_each_block_nov = []; pfm_allmk_each_block_fam = [];
- for sbj = 1:sbj_num
- %read list
- lname = strcat('LRN_data_',monkey_list{sbj},'.csv');
- list = readtable(lname); %specify .csv file!
- sesnum = size(list,1); %total number of sessions to analyze
- pfm_each_block_nov = []; pfm_each_block_fam = []; pfm_z_each_block_nov = []; pfm_z_each_block_fam = [];
- parfor ses = 1:sesnum
- %specify data to analyze from list
- day = char(string(list.day(ses))); %yyyymmdd
- monkey = string(list.monkey(ses));
- %block configuration
- listchar = num2str(list.block(ses));
- block_config = [];
- for ea_char=1:length(listchar)
- block_config = [block_config,str2num(listchar(ea_char))];
- end
- %analyze each data
- % if length(unique(block_config))>1
- for blc = 1:length(block_config)
- % load session file
- fname = strcat(day(1,3:end),'_',monkey,'_learning',monkey,'MRI_',num2str(blc),'.bhv2');
- A = [];
- A = mlread(fname);
- bsize = size([A.Trial],2); %block size
- % MRI trigger time
- trig_time = A(1).BehavioralCodes.CodeTimes(A(1).BehavioralCodes.CodeNumbers>=311 & A(1).BehavioralCodes.CodeNumbers<=313);
- % read ROI timeseries - already aligned to scan data collection initiation
- % to average over trials, make pseudo activity for milisecond resolution
- seed_ts_fill = []; roi_ts_fill = [];
- seed_name = strcat("ts_",seed_name_tmp,'_',monkey,string(day),"r0",string(blc),".1D"); % seed time series
- seed_ts = importdata(seed_name)*(-1); % MION inverse signal
- for slice_cnt = 1:length(seed_ts)
- for i = 1:TR_dur
- seed_ts_fill(TR_dur*(slice_cnt-1)+i) = seed_ts(slice_cnt); %filling in for msec data
- end
- end
- roi_name = strcat("ts_",roi_name_tmp,'_',monkey,string(day),"r0",string(blc),".1D"); % ROI time series
- roi_ts = importdata(roi_name)*(-1); % MION inverse signal
- for slice_cnt = 1:length(roi_ts)
- for i = 1:TR_dur
- roi_ts_fill(TR_dur*(slice_cnt-1)+i) = roi_ts(slice_cnt); %filling in for msec data
- end
- end
- % extract event codes and time stamps for correct trials
- tcnt = 0; tdat = zeros(100,7); evtime = []; hvchoice = [];
- for i=1:bsize
- if A(i).TrialError==0
- tcnt = tcnt+1;
- % events
- tdat(tcnt,1) = tcnt; %trial number
- tdat(tcnt,2) = A(i).BehavioralCodes.CodeNumbers(ismember(A(i).BehavioralCodes.CodeNumbers,[501,502]))-500; %response L/R
- tdat(tcnt,3) = A(i).BehavioralCodes.CodeNumbers(ismember(A(i).BehavioralCodes.CodeNumbers,[311,312,313]))-310; %left option
- tdat(tcnt,4) = A(i).BehavioralCodes.CodeNumbers(ismember(A(i).BehavioralCodes.CodeNumbers,[321,322,323]))-320; %right option
- if A(i).RewardRecord.StartTimes>0
- tdat(tcnt,5) = 1; %reward
- else
- tdat(tcnt,5) = 0; %no reward
- end
- if tdat(tcnt,2)==1
- tdat(tcnt,6) = tdat(tcnt,3); %chosen option
- tdat(tcnt,7) = tdat(tcnt,4); %unchosen option
- else
- tdat(tcnt,6) = tdat(tcnt,4); %chosen option
- tdat(tcnt,7) = tdat(tcnt,3); %unchosen option
- end
- %hv choice
- if tdat(tcnt,6)<tdat(tcnt,7)
- hvchoice(tcnt) = 1;
- else
- hvchoice(tcnt) = 0;
- end
- % time stamps
- if i>1
- evtime(tcnt,1) = A(i).AbsoluteTrialStartTime+A(i).BehavioralCodes.CodeTimes(A(i).BehavioralCodes.CodeNumbers==100); %FP on
- evtime(tcnt,2) = A(i).AbsoluteTrialStartTime+A(i).BehavioralCodes.CodeTimes(A(i).BehavioralCodes.CodeNumbers==110); %Fixation start
- evtime(tcnt,3) = A(i).AbsoluteTrialStartTime+A(i).BehavioralCodes.CodeTimes(A(i).BehavioralCodes.CodeNumbers==120); %Target on
- evtime(tcnt,4) = A(i).AbsoluteTrialStartTime+A(i).BehavioralCodes.CodeTimes(A(i).BehavioralCodes.CodeNumbers==150); %Response
- evtime(tcnt,5) = A(i).AbsoluteTrialStartTime+A(i).BehavioralCodes.CodeTimes(A(i).BehavioralCodes.CodeNumbers==160); %Reward
- else
- evtime(tcnt,1) = A(i).BehavioralCodes.CodeTimes(A(i).BehavioralCodes.CodeNumbers==100); %FP on
- evtime(tcnt,2) = A(i).BehavioralCodes.CodeTimes(A(i).BehavioralCodes.CodeNumbers==110); %Fixation start
- evtime(tcnt,3) = A(i).BehavioralCodes.CodeTimes(A(i).BehavioralCodes.CodeNumbers==120); %Target on
- evtime(tcnt,4) = A(i).BehavioralCodes.CodeTimes(A(i).BehavioralCodes.CodeNumbers==150); %Response
- evtime(tcnt,5) = A(i).BehavioralCodes.CodeTimes(A(i).BehavioralCodes.CodeNumbers==160); %Reward
- end
- end
- end
- evtime = evtime-trig_time; %msec, aligned to scan data collection initiation
- tnum = tcnt;
- %hv choice probability
- hv_prob = sum(hvchoice(1:50))/50;
- %align ROI timeseries to trial event and divided trials into
- %conditions of interest
- trial_seed_ts_rstay = []; trial_seed_ts_nrstay = []; trial_seed_ts_rswitch = []; trial_seed_ts_nrswitch = []; trial_seed_ts_stay = []; trial_seed_ts_switch = [];
- trial_roi_ts_rstay = []; trial_roi_ts_nrstay = []; trial_roi_ts_rswitch = []; trial_roi_ts_nrswitch = []; trial_roi_ts_stay = []; trial_roi_ts_switch = [];
- trial_seed_ts_all = []; trial_roi_ts_all = []; trial_roi_ts_rew = []; trial_roi_ts_nrew = []; trial_seed_ts_rew = []; trial_seed_ts_nrew = [];
- tr_rstay_cnt = 0; tr_nrstay_cnt = 0; tr_rswitch_cnt = 0; tr_nrswitch_cnt = 0; tr_rew_cnt = 0; tr_nrew_cnt = 0;
- tr_stay_cnt = 0; tr_switch_cnt = 0;
- for tcnt2 = 1:tnum
- %reward vs no reward (reward timing)
- if tdat(tcnt2,5)==1 && round(evtime(tcnt2,5))+psth_window(1)>0 && round(evtime(tcnt2,5))+psth_window(2)<length(roi_ts_fill) %rewarded trials
- tr_rew_cnt = tr_rew_cnt+1;
- trial_roi_ts_rew(tr_rew_cnt,1:(psth_window(2)-psth_window(1)+1)) = roi_ts_fill(round(evtime(tcnt2,5))+psth_window(1):round(evtime(tcnt2,5))+psth_window(2));
- trial_seed_ts_rew(tr_rew_cnt,1:(psth_window(2)-psth_window(1)+1)) = seed_ts_fill(round(evtime(tcnt2,5))+psth_window(1):round(evtime(tcnt2,5))+psth_window(2));
- elseif tdat(tcnt2,5)==0 && round(evtime(tcnt2,5))+psth_window(1)>0 && round(evtime(tcnt2,5))+psth_window(2)<length(roi_ts_fill) %no reward trials
- tr_nrew_cnt = tr_nrew_cnt+1;
- trial_roi_ts_nrew(tr_nrew_cnt,1:(psth_window(2)-psth_window(1)+1)) = roi_ts_fill(round(evtime(tcnt2,5))+psth_window(1):round(evtime(tcnt2,5))+psth_window(2));
- trial_seed_ts_nrew(tr_nrew_cnt,1:(psth_window(2)-psth_window(1)+1)) = seed_ts_fill(round(evtime(tcnt2,5))+psth_window(1):round(evtime(tcnt2,5))+psth_window(2));
- end
- %switch vs stay (timing of previous reward)
- if tcnt2>1 && ismember(tdat(tcnt2-1,6),[tdat(tcnt2,3),tdat(tcnt2,4)]) %chosen opt available as current option
- if tdat(tcnt2-1,6)==tdat(tcnt2,6) && round(evtime(tcnt2-1,5))+psth_window(1)>0 && round(evtime(tcnt2-1,5))+psth_window(2)<length(roi_ts_fill)
- tr_stay_cnt = tr_stay_cnt+1;
- trial_seed_ts_stay(tr_stay_cnt,1:(psth_window(2)-psth_window(1)+1)) = seed_ts_fill(round(evtime(tcnt2-1,5))+psth_window(1):round(evtime(tcnt2-1,5))+psth_window(2));
- trial_roi_ts_stay(tr_stay_cnt,1:(psth_window(2)-psth_window(1)+1)) = roi_ts_fill(round(evtime(tcnt2-1,5))+psth_window(1):round(evtime(tcnt2-1,5))+psth_window(2));
- elseif tdat(tcnt2-1,6)~=tdat(tcnt2,6) && round(evtime(tcnt2-1,5))+psth_window(1)>0 && round(evtime(tcnt2-1,5))+psth_window(2)<length(roi_ts_fill)
- tr_switch_cnt = tr_switch_cnt+1;
- trial_seed_ts_switch(tr_switch_cnt,1:(psth_window(2)-psth_window(1)+1)) = seed_ts_fill(round(evtime(tcnt2-1,5))+psth_window(1):round(evtime(tcnt2-1,5))+psth_window(2));
- trial_roi_ts_switch(tr_switch_cnt,1:(psth_window(2)-psth_window(1)+1)) = roi_ts_fill(round(evtime(tcnt2-1,5))+psth_window(1):round(evtime(tcnt2-1,5))+psth_window(2));
- end
- if tdat(tcnt2-1,5)==1 && tdat(tcnt2-1,6)==tdat(tcnt2,6) && round(evtime(tcnt2-1,5))+psth_window(1)>0 && round(evtime(tcnt2-1,5))+psth_window(2)<length(roi_ts_fill)
- tr_rstay_cnt = tr_rstay_cnt+1;
- trial_seed_ts_rstay(tr_rstay_cnt,1:(psth_window(2)-psth_window(1)+1)) = seed_ts_fill(round(evtime(tcnt2-1,5))+psth_window(1):round(evtime(tcnt2-1,5))+psth_window(2));
- trial_roi_ts_rstay(tr_rstay_cnt,1:(psth_window(2)-psth_window(1)+1)) = roi_ts_fill(round(evtime(tcnt2-1,5))+psth_window(1):round(evtime(tcnt2-1,5))+psth_window(2));
- elseif tdat(tcnt2-1,5)==0 && tdat(tcnt2-1,6)==tdat(tcnt2,6) && round(evtime(tcnt2-1,5))+psth_window(1)>0 && round(evtime(tcnt2-1,5))+psth_window(2)<length(roi_ts_fill)
- tr_nrstay_cnt = tr_nrstay_cnt+1;
- trial_seed_ts_nrstay(tr_nrstay_cnt,1:(psth_window(2)-psth_window(1)+1)) = seed_ts_fill(round(evtime(tcnt2-1,5))+psth_window(1):round(evtime(tcnt2-1,5))+psth_window(2));
- trial_roi_ts_nrstay(tr_nrstay_cnt,1:(psth_window(2)-psth_window(1)+1)) = roi_ts_fill(round(evtime(tcnt2-1,5))+psth_window(1):round(evtime(tcnt2-1,5))+psth_window(2));
- elseif tdat(tcnt2-1,5)==1 && tdat(tcnt2-1,6)~=tdat(tcnt2,6) && round(evtime(tcnt2-1,5))+psth_window(1)>0 && round(evtime(tcnt2-1,5))+psth_window(2)<length(roi_ts_fill)
- tr_rswitch_cnt = tr_rswitch_cnt+1;
- trial_seed_ts_rswitch(tr_rswitch_cnt,1:(psth_window(2)-psth_window(1)+1)) = seed_ts_fill(round(evtime(tcnt2-1,5))+psth_window(1):round(evtime(tcnt2-1,5))+psth_window(2));
- trial_roi_ts_rswitch(tr_rswitch_cnt,1:(psth_window(2)-psth_window(1)+1)) = roi_ts_fill(round(evtime(tcnt2-1,5))+psth_window(1):round(evtime(tcnt2-1,5))+psth_window(2));
- elseif tdat(tcnt2-1,5)==0 && tdat(tcnt2-1,6)~=tdat(tcnt2,6) && round(evtime(tcnt2-1,5))+psth_window(1)>0 && round(evtime(tcnt2-1,5))+psth_window(2)<length(roi_ts_fill)
- tr_nrswitch_cnt = tr_nrswitch_cnt+1;
- trial_seed_ts_nrswitch(tr_nrswitch_cnt,1:(psth_window(2)-psth_window(1)+1)) = seed_ts_fill(round(evtime(tcnt2-1,5))+psth_window(1):round(evtime(tcnt2-1,5))+psth_window(2));
- trial_roi_ts_nrswitch(tr_nrswitch_cnt,1:(psth_window(2)-psth_window(1)+1)) = roi_ts_fill(round(evtime(tcnt2-1,5))+psth_window(1):round(evtime(tcnt2-1,5))+psth_window(2));
- end
- end
- end
- % Compute correlation between seed and roi time series (each block)
- rval_rstay = []; rval_nrstay = []; rval_rswitch = []; rval_nrswitch = []; rval_wsls = []; rval_anti = []; rval_rew = []; rval_nrew = []; rval_stay = []; rval_switch = [];
- for bn = 1:nstep
- [R,~] = corrcoef(trial_seed_ts_rstay(:,w_step*(bn-1)+1:w_step*(bn-1)+w_bin),trial_roi_ts_rstay(:,w_step*(bn-1)+1:w_step*(bn-1)+w_bin));
- rval_rstay(bn) = R(1,2);
- [R,~] = corrcoef(trial_seed_ts_nrstay(:,w_step*(bn-1)+1:w_step*(bn-1)+w_bin),trial_roi_ts_nrstay(:,w_step*(bn-1)+1:w_step*(bn-1)+w_bin));
- rval_nrstay(bn) = R(1,2);
- [R,~] = corrcoef(trial_seed_ts_rswitch(:,w_step*(bn-1)+1:w_step*(bn-1)+w_bin),trial_roi_ts_rswitch(:,w_step*(bn-1)+1:w_step*(bn-1)+w_bin));
- rval_rswitch(bn) = R(1,2);
- [R,~] = corrcoef(trial_seed_ts_nrswitch(:,w_step*(bn-1)+1:w_step*(bn-1)+w_bin),trial_roi_ts_nrswitch(:,w_step*(bn-1)+1:w_step*(bn-1)+w_bin));
- rval_nrswitch(bn) = R(1,2);
- [R,~] = corrcoef(trial_seed_ts_rew(:,w_step*(bn-1)+1:w_step*(bn-1)+w_bin),trial_roi_ts_rew(:,w_step*(bn-1)+1:w_step*(bn-1)+w_bin));
- rval_rew(bn) = R(1,2);
- [R,~] = corrcoef(trial_seed_ts_nrew(:,w_step*(bn-1)+1:w_step*(bn-1)+w_bin),trial_roi_ts_nrew(:,w_step*(bn-1)+1:w_step*(bn-1)+w_bin));
- rval_nrew(bn) = R(1,2);
- [R,~] = corrcoef(trial_seed_ts_stay(:,w_step*(bn-1)+1:w_step*(bn-1)+w_bin),trial_roi_ts_stay(:,w_step*(bn-1)+1:w_step*(bn-1)+w_bin));
- rval_stay(bn) = R(1,2);
- [R,~] = corrcoef(trial_seed_ts_switch(:,w_step*(bn-1)+1:w_step*(bn-1)+w_bin),trial_roi_ts_switch(:,w_step*(bn-1)+1:w_step*(bn-1)+w_bin));
- rval_switch(bn) = R(1,2);
- end
- % Classify data by block type
- if block_config(blc)==1 %novel block
- block_rval_nov_rstay = [block_rval_nov_rstay;rval_rstay];
- block_rval_nov_nrstay = [block_rval_nov_nrstay;rval_nrstay];
- block_rval_nov_rswitch = [block_rval_nov_rswitch;rval_rswitch];
- block_rval_nov_nrswitch = [block_rval_nov_nrswitch;rval_nrswitch];
- block_rval_nov_rew = [block_rval_nov_rew;rval_rew];
- block_rval_nov_nrew = [block_rval_nov_nrew;rval_nrew];
- pfm_each_block_nov = [pfm_each_block_nov;hv_prob];
- block_rval_nov_stay = [block_rval_nov_stay;rval_stay];
- block_rval_nov_switch = [block_rval_nov_switch;rval_switch];
- else % familiar block
- block_rval_fam_rstay = [block_rval_fam_rstay;rval_rstay];
- block_rval_fam_nrstay = [block_rval_fam_nrstay;rval_nrstay];
- block_rval_fam_rswitch = [block_rval_fam_rswitch;rval_rswitch];
- block_rval_fam_nrswitch = [block_rval_fam_nrswitch;rval_nrswitch];
- block_rval_fam_rew = [block_rval_fam_rew;rval_rew];
- block_rval_fam_nrew = [block_rval_fam_nrew;rval_nrew];
- pfm_each_block_fam = [pfm_each_block_fam;hv_prob];
- block_rval_fam_stay = [block_rval_fam_stay;rval_stay];
- block_rval_fam_switch = [block_rval_fam_switch;rval_switch];
- end
- end % each block
- end % each session
- % normalize
- pfm_z_each_block_nov = (pfm_each_block_nov-mean(pfm_each_block_nov))./std(pfm_each_block_nov);
- pfm_z_each_block_fam = (pfm_each_block_fam-mean(pfm_each_block_fam))./std(pfm_each_block_fam);
- pfm_allmk_each_block_nov = [pfm_allmk_each_block_nov;pfm_z_each_block_nov];
- pfm_allmk_each_block_fam = [pfm_allmk_each_block_fam;pfm_z_each_block_fam];
- end % each monkey
- %% Multiple regression
- % number of blocks
- bnum_nov = size(block_rval_nov_rstay,1);
- bnum_fam = size(block_rval_fam_rstay,1);
- %multiple regression for each block data
- block_rval_ts_nov = [block_rval_nov_rstay;block_rval_nov_nrstay;block_rval_nov_rswitch;block_rval_nov_nrswitch];
- block_rval_rew_nov = [ones(size(block_rval_nov_rstay,1),1);zeros(size(block_rval_nov_nrstay,1),1);ones(size(block_rval_nov_rswitch,1),1);zeros(size(block_rval_nov_nrswitch,1),1)];
- block_rval_str_nov = [ones(size(block_rval_nov_rstay,1),1);ones(size(block_rval_nov_nrstay,1),1);zeros(size(block_rval_nov_rswitch,1),1);zeros(size(block_rval_nov_nrswitch,1),1)];
- block_rval_ts_fam = [block_rval_fam_rstay;block_rval_fam_nrstay;block_rval_fam_rswitch;block_rval_fam_nrswitch];
- block_rval_rew_fam = [ones(size(block_rval_fam_rstay,1),1);zeros(size(block_rval_fam_nrstay,1),1);ones(size(block_rval_fam_rswitch,1),1);zeros(size(block_rval_fam_nrswitch,1),1)];
- block_rval_str_fam = [ones(size(block_rval_fam_rstay,1),1);ones(size(block_rval_fam_nrstay,1),1);zeros(size(block_rval_fam_rswitch,1),1);zeros(size(block_rval_fam_nrswitch,1),1)];
- ef_rval_nov = []; ef_rval_fam = [];
- parfor bn = 1:nstep
- bn_x(bn) = psth_window(1)+w_bin/2+w_step*(bn-1); % for x axis label
- tbl_nov = table(block_rval_rew_nov,block_rval_str_nov,block_rval_ts_nov(:,bn),'VariableNames',{'Reward','Decision','TS'});
- lm_nov = fitlm(tbl_nov,'interactions');
- ef_rval_nov(:,bn) = lm_nov.Coefficients.Estimate(2:4);
- tbl_fam = table(block_rval_rew_fam,block_rval_str_fam,block_rval_ts_fam(:,bn),'VariableNames',{'Reward','Decision','TS'});
- lm_fam = fitlm(tbl_fam,'interactions');
- ef_rval_fam(:,bn) = lm_fam.Coefficients.Estimate(2:4);
- end
- ef_block_nov_reward = ef_rval_nov(1,:);
- ef_block_nov_choice = ef_rval_nov(2,:);
- ef_block_nov_wsls = ef_rval_nov(3,:);
- ef_block_fam_reward = ef_rval_fam(1,:);
- ef_block_fam_choice = ef_rval_fam(2,:);
- ef_block_fam_wsls = ef_rval_fam(3,:);
- %shuffled data
- itr_max = 1000; % iteration
- block_sff_ts_nov = []; block_sff_ts_fam = []; ef_sff_nov_reward = []; ef_sff_nov_choice = []; ef_sff_nov_wsls = []; ef_sff_fam_reward = []; ef_sff_fam_choice = []; ef_sff_fam_wsls = [];
- parfor itr = 1:itr_max
- tmp_rand_nov = randperm(size(block_rval_ts_nov,1));
- block_sff_ts_nov = block_rval_ts_nov(tmp_rand_nov,:);
- tmp_rand_fam = randperm(size(block_rval_ts_fam,1));
- block_sff_ts_fam = block_rval_ts_fam(tmp_rand_fam,:);
- for bn = 1:nstep
- tbl_nov = table(block_rval_rew_nov,block_rval_str_nov,block_sff_ts_nov(:,bn),'VariableNames',{'Reward','Decision','TS'});
- lm_nov = fitlm(tbl_nov,'interactions');
- ef_sff_nov_reward(itr,bn) = lm_nov.Coefficients.Estimate(2);
- ef_sff_nov_choice(itr,bn) = lm_nov.Coefficients.Estimate(3);
- ef_sff_nov_wsls(itr,bn) = lm_nov.Coefficients.Estimate(4);
- tbl_fam = table(block_rval_rew_fam,block_rval_str_fam,block_sff_ts_fam(:,bn),'VariableNames',{'Reward','Decision','TS'});
- lm_fam = fitlm(tbl_fam,'interactions');
- ef_sff_fam_reward(itr,bn) = lm_fam.Coefficients.Estimate(2);
- ef_sff_fam_choice(itr,bn) = lm_fam.Coefficients.Estimate(3);
- ef_sff_fam_wsls(itr,bn) = lm_fam.Coefficients.Estimate(4);
- end
- end
- % confidence interval
- alpha_perm = 0.05; % 0.05 - 95% ci
- for bn = 1:nstep
- [muHat,sigmaHat,muCI,sigmaCI] = normfit(ef_sff_nov_reward(:,bn),alpha_perm);
- ci_sff_nov_reward(bn,1:2) = sigmaCI;
- [muHat,sigmaHat,muCI,sigmaCI] = normfit(ef_sff_nov_choice(:,bn),alpha_perm);
- ci_sff_nov_choice(bn,1:2) = sigmaCI;
- [muHat,sigmaHat,muCI,sigmaCI] = normfit(ef_sff_nov_wsls(:,bn),alpha_perm);
- ci_sff_nov_wsls(bn,1:2) = sigmaCI;
- [muHat,sigmaHat,muCI,sigmaCI] = normfit(ef_sff_fam_reward(:,bn),alpha_perm);
- ci_sff_fam_reward(bn,1:2) = sigmaCI;
- [muHat,sigmaHat,muCI,sigmaCI] = normfit(ef_sff_fam_choice(:,bn),alpha_perm);
- ci_sff_fam_choice(bn,1:2) = sigmaCI;
- [muHat,sigmaHat,muCI,sigmaCI] = normfit(ef_sff_fam_wsls(:,bn),alpha_perm);
- ci_sff_fam_wsls(bn,1:2) = sigmaCI;
- end
- %% PPI data plot
- sm_param = 20;
- pthr = 0.01;
- ts_win = [-2000 2000];
- % ts_win = [0 4000];
- yrange_psth = [-0.3 0.3];
- figure(1);
- FIGSIZE = 80;
- set(gcf,'Position',[50,50,15*FIGSIZE,8.5*FIGSIZE]);
- % time course of PPI (correlation coeff)
- subplot(2,4,1); hold on;
- boundedline(bn_x,smooth(nanmean(block_rval_nov_rstay,1),sm_param),smooth(nanstd(block_rval_nov_rstay)/(bnum_nov^0.5),sm_param),'transparency',0.1,'r');
- boundedline(bn_x,smooth(nanmean(block_rval_nov_rswitch,1),sm_param),smooth(nanstd(block_rval_nov_rswitch)/(bnum_nov^0.5),sm_param),'transparency',0.1,'m');
- for i = 1:nstep-3
- if ranksum(block_rval_nov_rstay(:,i),zeros(size(block_rval_nov_rstay,1),1))<pthr
- if ranksum(block_rval_nov_rstay(:,i+1),zeros(size(block_rval_nov_rstay,1),1))<pthr && ranksum(block_rval_nov_rstay(:,i+2),zeros(size(block_rval_nov_rstay,1),1))<pthr
- plot([bn_x(i)-w_bin/2 bn_x(i+2)+w_bin/2],[yrange_psth(2)*0.95 yrange_psth(2)*0.95],'r-','linewidth',4);
- end
- end
- if ranksum(block_rval_nov_rswitch(:,i),zeros(size(block_rval_nov_rswitch,1),1))<pthr
- if ranksum(block_rval_nov_rswitch(:,i+1),zeros(size(block_rval_nov_rswitch,1),1))<pthr && ranksum(block_rval_nov_rswitch(:,i+2),zeros(size(block_rval_nov_rswitch,1),1))<pthr
- plot([bn_x(i)-w_bin/2 bn_x(i+2)+w_bin/2],[yrange_psth(2)*0.9 yrange_psth(2)*0.9],'m-','linewidth',4);
- end
- end
- end
- plot([ts_win(1) ts_win(2)],[yrange_psth(1) yrange_psth(1)],'k-');
- plot([0 0],[yrange_psth(1) yrange_psth(2)],'k--'); plot([psth_window(1) psth_window(2)],[0 0],'k-'); ylabel("PPI"); xlabel("Time from rew"); title('Novel');
- xlim(psth_window); ylim(yrange_psth);
- subplot(2,4,3); hold on;
- boundedline(bn_x,smooth(nanmean(block_rval_fam_rstay,1),sm_param),smooth(nanstd(block_rval_fam_rstay)/(bnum_fam^0.5),sm_param),'transparency',0.1,'r');
- boundedline(bn_x,smooth(nanmean(block_rval_fam_rswitch,1),sm_param),smooth(nanstd(block_rval_fam_rswitch)/(bnum_fam^0.5),sm_param),'transparency',0.1,'m');
- for i = 1:nstep-3
- if ranksum(block_rval_fam_rstay(:,i),zeros(size(block_rval_fam_rstay,1),1))<pthr
- if ranksum(block_rval_fam_rstay(:,i+1),zeros(size(block_rval_fam_rstay,1),1))<pthr && ranksum(block_rval_fam_rstay(:,i+2),zeros(size(block_rval_fam_rstay,1),1))<pthr
- plot([bn_x(i)-w_bin/2 bn_x(i+2)+w_bin/2],[yrange_psth(2)*0.95 yrange_psth(2)*0.95],'r-','linewidth',4);
- end
- end
- if ranksum(block_rval_fam_rswitch(:,i),zeros(size(block_rval_fam_rswitch,1),1))<pthr
- if ranksum(block_rval_fam_rswitch(:,i+1),zeros(size(block_rval_fam_rswitch,1),1))<pthr && ranksum(block_rval_fam_rswitch(:,i+2),zeros(size(block_rval_fam_rswitch,1),1))<pthr
- plot([bn_x(i)-w_bin/2 bn_x(i+2)+w_bin/2],[yrange_psth(2)*0.9 yrange_psth(2)*0.9],'m-','linewidth',4);
- end
- end
- end
- plot([ts_win(1) ts_win(2)],[yrange_psth(1) yrange_psth(1)],'k-');
- plot([0 0],[yrange_psth(1) yrange_psth(2)],'k--'); plot([psth_window(1) psth_window(2)],[0 0],'k-'); ylabel("PPI"); xlabel("Time from rew"); title('Familiar');
- xlim(psth_window); ylim(yrange_psth);
- subplot(2,4,5); hold on;
- boundedline(bn_x,smooth(nanmean(block_rval_nov_nrstay,1),sm_param),smooth(nanstd(block_rval_nov_nrstay)/(bnum_nov^0.5),sm_param),'transparency',0.1,'b');
- boundedline(bn_x,smooth(nanmean(block_rval_nov_nrswitch,1),sm_param),smooth(nanstd(block_rval_nov_nrswitch)/(bnum_nov^0.5),sm_param),'transparency',0.1,'c');
- for i = 1:nstep-3
- if ranksum(block_rval_nov_nrstay(:,i),zeros(size(block_rval_nov_nrstay,1),1))<pthr
- if ranksum(block_rval_nov_nrstay(:,i+1),zeros(size(block_rval_nov_nrstay,1),1))<pthr && ranksum(block_rval_nov_nrstay(:,i+2),zeros(size(block_rval_nov_nrstay,1),1))<pthr
- plot([bn_x(i)-w_bin/2 bn_x(i+2)+w_bin/2],[yrange_psth(2)*0.95 yrange_psth(2)*0.95],'b-','linewidth',4);
- end
- end
- if ranksum(block_rval_nov_nrswitch(:,i),zeros(size(block_rval_nov_nrswitch,1),1))<pthr
- if ranksum(block_rval_nov_nrswitch(:,i+1),zeros(size(block_rval_nov_nrswitch,1),1))<pthr && ranksum(block_rval_nov_nrswitch(:,i+2),zeros(size(block_rval_nov_nrswitch,1),1))<pthr
- plot([bn_x(i)-w_bin/2 bn_x(i+2)+w_bin/2],[yrange_psth(2)*0.9 yrange_psth(2)*0.9],'c-','linewidth',4);
- end
- end
- end
- plot([ts_win(1) ts_win(2)],[yrange_psth(1) yrange_psth(1)],'k-');
- plot([0 0],[yrange_psth(1) yrange_psth(2)],'k--'); plot([psth_window(1) psth_window(2)],[0 0],'k-'); ylabel("PPI"); xlabel("Time from rew");
- xlim(psth_window); ylim(yrange_psth);
- subplot(2,4,7); hold on;
- boundedline(bn_x,smooth(nanmean(block_rval_fam_nrstay,1),sm_param),smooth(nanstd(block_rval_fam_nrstay)/(bnum_fam^0.5),sm_param),'transparency',0.1,'b');
- boundedline(bn_x,smooth(nanmean(block_rval_fam_nrswitch,1),sm_param),smooth(nanstd(block_rval_fam_nrswitch)/(bnum_fam^0.5),sm_param),'transparency',0.1,'c');
- for i = 1:nstep-3
- if ranksum(block_rval_fam_nrstay(:,i),zeros(size(block_rval_fam_nrstay,1),1))<pthr
- if ranksum(block_rval_fam_nrstay(:,i+1),zeros(size(block_rval_fam_nrstay,1),1))<pthr && ranksum(block_rval_fam_nrstay(:,i+2),zeros(size(block_rval_fam_nrstay,1),1))<pthr
- plot([bn_x(i)-w_bin/2 bn_x(i+2)+w_bin/2],[yrange_psth(2)*0.95 yrange_psth(2)*0.95],'b-','linewidth',4);
- end
- end
- if ranksum(block_rval_fam_nrswitch(:,i),zeros(size(block_rval_fam_nrswitch,1),1))<pthr
- if ranksum(block_rval_fam_nrswitch(:,i+1),zeros(size(block_rval_fam_nrswitch,1),1))<pthr && ranksum(block_rval_fam_nrswitch(:,i+2),zeros(size(block_rval_fam_nrswitch,1),1))<pthr
- plot([bn_x(i)-w_bin/2 bn_x(i+2)+w_bin/2],[yrange_psth(2)*0.9 yrange_psth(2)*0.9],'c-','linewidth',4);
- end
- end
- end
- plot([ts_win(1) ts_win(2)],[yrange_psth(1) yrange_psth(1)],'k-');
- plot([0 0],[yrange_psth(1) yrange_psth(2)],'k--'); plot([psth_window(1) psth_window(2)],[0 0],'k-'); ylabel("PPI"); xlabel("Time from rew");
- xlim(psth_window); ylim(yrange_psth);
- % averaged value
- pthr2 = 0.05
- subplot(2,4,2); hold on;
- errorbar(1,nanmean(mean(block_rval_nov_rstay(:,min(find(bn_x>ts_win(1))):min(find(bn_x>ts_win(2)))),2),1),nanstd(mean(block_rval_nov_rstay(:,min(find(bn_x>ts_win(1))):min(find(bn_x>ts_win(2)))),2),1)/bnum_nov^0.5,'r');
- errorbar(2,nanmean(mean(block_rval_nov_rswitch(:,min(find(bn_x>ts_win(1))):min(find(bn_x>ts_win(2)))),2),1),nanstd(mean(block_rval_nov_rswitch(:,min(find(bn_x>ts_win(1))):min(find(bn_x>ts_win(2)))),2),1)/bnum_nov^0.5,'m');
- plot(1,nanmean(mean(block_rval_nov_rstay(:,min(find(bn_x>ts_win(1))):min(find(bn_x>ts_win(2)))),2),1),'ro');
- plot(2,nanmean(mean(block_rval_nov_rswitch(:,min(find(bn_x>ts_win(1))):min(find(bn_x>ts_win(2)))),2),1),'mo');
- pval_nov_r(1) = ranksum(mean(block_rval_nov_rstay(:,min(find(bn_x>ts_win(1))):min(find(bn_x>ts_win(2)))),2),zeros(sum(~isnan(mean(block_rval_nov_rstay(:,min(find(bn_x>ts_win(1))):min(find(bn_x>ts_win(2)))),2))),1));
- pval_nov_r(2) = ranksum(mean(block_rval_nov_rswitch(:,min(find(bn_x>ts_win(1))):min(find(bn_x>ts_win(2)))),2),zeros(sum(~isnan(mean(block_rval_nov_rswitch(:,min(find(bn_x>ts_win(1))):min(find(bn_x>ts_win(2)))),2))),1));
- for i=1:2
- if pval_nov_r(i)<pthr2
- plot(i,0.18,'k*');
- end
- text(i,0.1,sprintf('%.2f',pval_nov_r(i)));
- end
- plot([0 3],[0 0],'k-');
- xlim([0 3]); ylim([-0.1 0.2]); title(roi_name_tmp,'interpreter','none');
- subplot(2,4,4); hold on;
- errorbar(1,nanmean(mean(block_rval_fam_rstay(:,min(find(bn_x>ts_win(1))):min(find(bn_x>ts_win(2)))),2),1),nanstd(mean(block_rval_fam_rstay(:,min(find(bn_x>ts_win(1))):min(find(bn_x>ts_win(2)))),2),1)/bnum_fam^0.5,'r');
- errorbar(2,nanmean(mean(block_rval_fam_rswitch(:,min(find(bn_x>ts_win(1))):min(find(bn_x>ts_win(2)))),2),1),nanstd(mean(block_rval_fam_rswitch(:,min(find(bn_x>ts_win(1))):min(find(bn_x>ts_win(2)))),2),1)/bnum_fam^0.5,'m');
- plot(1,nanmean(mean(block_rval_fam_rstay(:,min(find(bn_x>ts_win(1))):min(find(bn_x>ts_win(2)))),2),1),'ro');
- plot(2,nanmean(mean(block_rval_fam_rswitch(:,min(find(bn_x>ts_win(1))):min(find(bn_x>ts_win(2)))),2),1),'mo');
- pval_fam_r(1) = ranksum(mean(block_rval_fam_rstay(:,min(find(bn_x>ts_win(1))):min(find(bn_x>ts_win(2)))),2),zeros(sum(~isnan(mean(block_rval_fam_rstay(:,min(find(bn_x>ts_win(1))):min(find(bn_x>ts_win(2)))),2))),1));
- pval_fam_r(2) = ranksum(mean(block_rval_fam_rswitch(:,min(find(bn_x>ts_win(1))):min(find(bn_x>ts_win(2)))),2),zeros(sum(~isnan(mean(block_rval_fam_rswitch(:,min(find(bn_x>ts_win(1))):min(find(bn_x>ts_win(2)))),2))),1));
- for i=1:2
- if pval_fam_r(i)<pthr2
- plot(i,0.18,'k*');
- end
- text(i,0.1,sprintf('%.2f',pval_fam_r(i)));
- end
- plot([0 3],[0 0],'k-');
- xlim([0 3]); ylim([-0.1 0.2]);
- subplot(2,4,6); hold on;
- errorbar(1,nanmean(mean(block_rval_nov_nrstay(:,min(find(bn_x>ts_win(1))):min(find(bn_x>ts_win(2)))),2),1),nanstd(mean(block_rval_nov_nrstay(:,min(find(bn_x>ts_win(1))):min(find(bn_x>ts_win(2)))),2),1)/bnum_nov^0.5,'b');
- errorbar(2,nanmean(mean(block_rval_nov_nrswitch(:,min(find(bn_x>ts_win(1))):min(find(bn_x>ts_win(2)))),2),1),nanstd(mean(block_rval_nov_nrswitch(:,min(find(bn_x>ts_win(1))):min(find(bn_x>ts_win(2)))),2),1)/bnum_nov^0.5,'c');
- plot(1,nanmean(mean(block_rval_nov_nrstay(:,min(find(bn_x>ts_win(1))):min(find(bn_x>ts_win(2)))),2),1),'bo');
- plot(2,nanmean(mean(block_rval_nov_nrswitch(:,min(find(bn_x>ts_win(1))):min(find(bn_x>ts_win(2)))),2),1),'co');
- pval_nov_nr(1) = ranksum(mean(block_rval_nov_nrstay(:,min(find(bn_x>ts_win(1))):min(find(bn_x>ts_win(2)))),2),zeros(sum(~isnan(mean(block_rval_nov_nrstay(:,min(find(bn_x>ts_win(1))):min(find(bn_x>ts_win(2)))),2))),1));
- pval_nov_nr(2) = ranksum(mean(block_rval_nov_nrswitch(:,min(find(bn_x>ts_win(1))):min(find(bn_x>ts_win(2)))),2),zeros(sum(~isnan(mean(block_rval_nov_nrswitch(:,min(find(bn_x>ts_win(1))):min(find(bn_x>ts_win(2)))),2))),1));
- for i=1:2
- if pval_nov_nr(i)<pthr2
- plot(i,0.18,'k*');
- end
- text(i,0.1,sprintf('%.2f',pval_nov_nr(i)));
- end
- plot([0 3],[0 0],'k-');
- xlim([0 3]); ylim([-0.1 0.2]);
- subplot(2,4,8); hold on;
- errorbar(1,nanmean(mean(block_rval_fam_nrstay(:,min(find(bn_x>ts_win(1))):min(find(bn_x>ts_win(2)))),2),1),nanstd(mean(block_rval_fam_nrstay(:,min(find(bn_x>ts_win(1))):min(find(bn_x>ts_win(2)))),2),1)/bnum_fam^0.5,'b');
- errorbar(2,nanmean(mean(block_rval_fam_nrswitch(:,min(find(bn_x>ts_win(1))):min(find(bn_x>ts_win(2)))),2),1),nanstd(mean(block_rval_fam_nrswitch(:,min(find(bn_x>ts_win(1))):min(find(bn_x>ts_win(2)))),2),1)/bnum_fam^0.5,'c');
- plot(1,nanmean(mean(block_rval_fam_nrstay(:,min(find(bn_x>ts_win(1))):min(find(bn_x>ts_win(2)))),2),1),'bo');
- plot(2,nanmean(mean(block_rval_fam_nrswitch(:,min(find(bn_x>ts_win(1))):min(find(bn_x>ts_win(2)))),2),1),'co');
- pval_fam_nr(1) = ranksum(mean(block_rval_fam_nrstay(:,min(find(bn_x>ts_win(1))):min(find(bn_x>ts_win(2)))),2),zeros(sum(~isnan(mean(block_rval_fam_nrstay(:,min(find(bn_x>ts_win(1))):min(find(bn_x>ts_win(2)))),2))),1));
- pval_fam_nr(2) = ranksum(mean(block_rval_fam_nrswitch(:,min(find(bn_x>ts_win(1))):min(find(bn_x>ts_win(2)))),2),zeros(sum(~isnan(mean(block_rval_fam_nrswitch(:,min(find(bn_x>ts_win(1))):min(find(bn_x>ts_win(2)))),2))),1));
- for i=1:2
- if pval_fam_nr(i)<pthr2
- plot(i,0.18,'k*');
- end
- text(i,0.1,sprintf('%.2f',pval_fam_nr(i)));
- end
- plot([0 3],[0 0],'k-');
- xlim([0 3]); ylim([-0.1 0.2]);
- % anova, for each block type
- tmp_nov_ppi = [mean(block_rval_nov_rstay(:,min(find(bn_x>ts_win(1))):min(find(bn_x>ts_win(2)))),2);mean(block_rval_nov_rswitch(:,min(find(bn_x>ts_win(1))):min(find(bn_x>ts_win(2)))),2);
- mean(block_rval_nov_nrstay(:,min(find(bn_x>ts_win(1))):min(find(bn_x>ts_win(2)))),2);mean(block_rval_nov_nrswitch(:,min(find(bn_x>ts_win(1))):min(find(bn_x>ts_win(2)))),2)];
- an_nov_ppi = tmp_nov_ppi(~isnan(tmp_nov_ppi));
- an_nov_stsw = [ones(sum(~isnan(mean(block_rval_nov_rstay(:,min(find(bn_x>ts_win(1))):min(find(bn_x>ts_win(2)))),2))),1);2*ones(sum(~isnan(mean(block_rval_nov_rswitch(:,min(find(bn_x>ts_win(1))):min(find(bn_x>ts_win(2)))),2))),1);
- ones(sum(~isnan(mean(block_rval_nov_nrstay(:,min(find(bn_x>ts_win(1))):min(find(bn_x>ts_win(2)))),2))),1);2*ones(sum(~isnan(mean(block_rval_nov_nrswitch(:,min(find(bn_x>ts_win(1))):min(find(bn_x>ts_win(2)))),2))),1)];
- an_nov_rew = [ones(sum(~isnan(mean(block_rval_nov_rstay(:,min(find(bn_x>ts_win(1))):min(find(bn_x>ts_win(2)))),2))),1);ones(sum(~isnan(mean(block_rval_nov_rswitch(:,min(find(bn_x>ts_win(1))):min(find(bn_x>ts_win(2)))),2))),1);
- 2*ones(sum(~isnan(mean(block_rval_nov_nrstay(:,min(find(bn_x>ts_win(1))):min(find(bn_x>ts_win(2)))),2))),1);2*ones(sum(~isnan(mean(block_rval_nov_nrswitch(:,min(find(bn_x>ts_win(1))):min(find(bn_x>ts_win(2)))),2))),1)];
- [~,tbl_nov,stats_nov] = anovan(an_nov_ppi,{an_nov_stsw,an_nov_rew},'model','interaction','varnames',{'StaySwitch','Reward'},'display','off');
- tmp_fam_ppi = [mean(block_rval_fam_rstay(:,min(find(bn_x>ts_win(1))):min(find(bn_x>ts_win(2)))),2);mean(block_rval_fam_rswitch(:,min(find(bn_x>ts_win(1))):min(find(bn_x>ts_win(2)))),2);
- mean(block_rval_fam_nrstay(:,min(find(bn_x>ts_win(1))):min(find(bn_x>ts_win(2)))),2);mean(block_rval_fam_nrswitch(:,min(find(bn_x>ts_win(1))):min(find(bn_x>ts_win(2)))),2)];
- an_fam_ppi = tmp_fam_ppi(~isnan(tmp_fam_ppi));
- an_fam_stsw = [ones(sum(~isnan(mean(block_rval_fam_rstay(:,min(find(bn_x>ts_win(1))):min(find(bn_x>ts_win(2)))),2))),1);2*ones(sum(~isnan(mean(block_rval_fam_rswitch(:,min(find(bn_x>ts_win(1))):min(find(bn_x>ts_win(2)))),2))),1);
- ones(sum(~isnan(mean(block_rval_fam_nrstay(:,min(find(bn_x>ts_win(1))):min(find(bn_x>ts_win(2)))),2))),1);2*ones(sum(~isnan(mean(block_rval_fam_nrswitch(:,min(find(bn_x>ts_win(1))):min(find(bn_x>ts_win(2)))),2))),1)];
- an_fam_rew = [ones(sum(~isnan(mean(block_rval_fam_rstay(:,min(find(bn_x>ts_win(1))):min(find(bn_x>ts_win(2)))),2))),1);ones(sum(~isnan(mean(block_rval_fam_rswitch(:,min(find(bn_x>ts_win(1))):min(find(bn_x>ts_win(2)))),2))),1);
- 2*ones(sum(~isnan(mean(block_rval_fam_nrstay(:,min(find(bn_x>ts_win(1))):min(find(bn_x>ts_win(2)))),2))),1);2*ones(sum(~isnan(mean(block_rval_fam_nrswitch(:,min(find(bn_x>ts_win(1))):min(find(bn_x>ts_win(2)))),2))),1)];
- [~,tbl_fam,stats_fam] = anovan(an_fam_ppi,{an_fam_stsw,an_fam_rew},'model','interaction','varnames',{'StaySwitch','Reward'},'display','off');
- % anova, for rewarded trials and unrewarded trials
- tmp_r_ppi = [mean(block_rval_nov_rstay(:,min(find(bn_x>ts_win(1))):min(find(bn_x>ts_win(2)))),2);mean(block_rval_nov_rswitch(:,min(find(bn_x>ts_win(1))):min(find(bn_x>ts_win(2)))),2);mean(block_rval_fam_rstay(:,min(find(bn_x>ts_win(1))):min(find(bn_x>ts_win(2)))),2);mean(block_rval_fam_rswitch(:,min(find(bn_x>ts_win(1))):min(find(bn_x>ts_win(2)))),2)];
- an_r_ppi = tmp_r_ppi(~isnan(tmp_r_ppi));
- tmp_nr_ppi = [mean(block_rval_nov_nrstay(:,min(find(bn_x>ts_win(1))):min(find(bn_x>ts_win(2)))),2);mean(block_rval_nov_nrswitch(:,min(find(bn_x>ts_win(1))):min(find(bn_x>ts_win(2)))),2);mean(block_rval_fam_nrstay(:,min(find(bn_x>ts_win(1))):min(find(bn_x>ts_win(2)))),2);mean(block_rval_fam_nrswitch(:,min(find(bn_x>ts_win(1))):min(find(bn_x>ts_win(2)))),2)];
- an_nr_ppi = tmp_nr_ppi(~isnan(tmp_nr_ppi));
- an_r_novfam = [ones(sum(~isnan(mean(block_rval_nov_rstay(:,min(find(bn_x>ts_win(1))):min(find(bn_x>ts_win(2)))),2)))+sum(~isnan(mean(block_rval_nov_rswitch(:,min(find(bn_x>ts_win(1))):min(find(bn_x>ts_win(2)))),2))),1); 2*ones(sum(~isnan(mean(block_rval_fam_rstay(:,min(find(bn_x>ts_win(1))):min(find(bn_x>ts_win(2)))),2)))+sum(~isnan(mean(block_rval_fam_rswitch(:,min(find(bn_x>ts_win(1))):min(find(bn_x>ts_win(2)))),2))),1)];
- an_nr_novfam = [ones(sum(~isnan(mean(block_rval_nov_nrstay(:,min(find(bn_x>ts_win(1))):min(find(bn_x>ts_win(2)))),2)))+sum(~isnan(mean(block_rval_nov_nrswitch(:,min(find(bn_x>ts_win(1))):min(find(bn_x>ts_win(2)))),2))),1); 2*ones(sum(~isnan(mean(block_rval_fam_nrstay(:,min(find(bn_x>ts_win(1))):min(find(bn_x>ts_win(2)))),2)))+sum(~isnan(mean(block_rval_fam_nrswitch(:,min(find(bn_x>ts_win(1))):min(find(bn_x>ts_win(2)))),2))),1)];
- an_r_stsw = [ones(sum(~isnan(mean(block_rval_nov_rstay(:,min(find(bn_x>ts_win(1))):min(find(bn_x>ts_win(2)))),2))),1);2*ones(sum(~isnan(mean(block_rval_nov_rswitch(:,min(find(bn_x>ts_win(1))):min(find(bn_x>ts_win(2)))),2))),1);ones(sum(~isnan(mean(block_rval_fam_rstay(:,min(find(bn_x>ts_win(1))):min(find(bn_x>ts_win(2)))),2))),1);2*ones(sum(~isnan(mean(block_rval_fam_rswitch(:,min(find(bn_x>ts_win(1))):min(find(bn_x>ts_win(2)))),2))),1)];
- an_nr_stsw = [ones(sum(~isnan(mean(block_rval_nov_nrstay(:,min(find(bn_x>ts_win(1))):min(find(bn_x>ts_win(2)))),2))),1);2*ones(sum(~isnan(mean(block_rval_nov_nrswitch(:,min(find(bn_x>ts_win(1))):min(find(bn_x>ts_win(2)))),2))),1);ones(sum(~isnan(mean(block_rval_fam_nrstay(:,min(find(bn_x>ts_win(1))):min(find(bn_x>ts_win(2)))),2))),1);2*ones(sum(~isnan(mean(block_rval_fam_nrswitch(:,min(find(bn_x>ts_win(1))):min(find(bn_x>ts_win(2)))),2))),1)];
- [~,tbl_r,stats_r] = anovan(an_r_ppi,{an_r_novfam,an_r_stsw},'model','interaction','varnames',{'NovFam','StaySwitch'},'display','off');
- [~,tbl_nr,stats_nr] = anovan(an_nr_ppi,{an_nr_novfam,an_nr_stsw},'model','interaction','varnames',{'NovFam','StaySwitch'},'display','off');
- % anova, all trials
- an_all_ppi = [an_r_ppi;an_nr_ppi];
- an_all_novfam = [an_r_novfam;an_nr_novfam];
- an_all_stsw = [an_r_stsw;an_nr_stsw];
- an_all_rew = [ones(length(an_r_stsw),1);2*ones(length(an_nr_stsw),1)];
- [p,tbl_all,stats_all] = anovan(an_all_ppi,{an_all_novfam,an_all_stsw,an_all_rew},'model','full','varnames',{'NovFam','StaySwitch','Rew'},'display','off');
- an_table_all{roi_cnt,1} = tbl_r;
- an_table_all{roi_cnt,2} = tbl_nr;
- an_table_all{roi_cnt,3} = tbl_all;
- % c = multcompare(stats_all);
- %% PPI-performance correlation analysis
- sc_range = [-1 1];
- ts_win2 = [0 4000];
- % ts_win2 = ts_win;
- figure(2);
- block_rval_nov_rew_mean = mean(block_rval_nov_rew(:,min(find(bn_x>ts_win2(1))):min(find(bn_x>ts_win2(2)))),2);
- block_rval_fam_rew_mean = mean(block_rval_fam_rew(:,min(find(bn_x>ts_win2(1))):min(find(bn_x>ts_win2(2)))),2);
- block_rval_nov_nrew_mean = mean(block_rval_nov_nrew(:,min(find(bn_x>ts_win2(1))):min(find(bn_x>ts_win2(2)))),2);
- block_rval_fam_nrew_mean = mean(block_rval_fam_nrew(:,min(find(bn_x>ts_win2(1))):min(find(bn_x>ts_win2(2)))),2);
- block_rval_nov_stay_mean = mean(block_rval_nov_stay(:,min(find(bn_x>ts_win2(1))):min(find(bn_x>ts_win2(2)))),2);
- block_rval_fam_stay_mean = mean(block_rval_fam_stay(:,min(find(bn_x>ts_win2(1))):min(find(bn_x>ts_win2(2)))),2);
- block_rval_nov_switch_mean = mean(block_rval_nov_switch(:,min(find(bn_x>ts_win2(1))):min(find(bn_x>ts_win2(2)))),2);
- block_rval_fam_switch_mean = mean(block_rval_fam_switch(:,min(find(bn_x>ts_win2(1))):min(find(bn_x>ts_win2(2)))),2);
- subplot(2,2,1); hold on;
- plot(pfm_allmk_each_block_nov,block_rval_nov_rew_mean,'r.');
- [R,Pval] = corrcoef(pfm_allmk_each_block_nov,block_rval_nov_rew_mean);
- plot(pfm_allmk_each_block_nov,polyval(polyfit(pfm_allmk_each_block_nov,block_rval_nov_rew_mean,1),pfm_allmk_each_block_nov),'r-');
- xlim([-3 3]); ylim([sc_range(1) sc_range(2)]); if Pval(1,2)<0.1 text(0,-0.1,string(Pval(1,2)),'color','g'); else text(0,-0.1,string(Pval(1,2)),'color','k'); end
- title("Novel block"); xlabel("Correct pfm (Z)"); ylabel("win trials PPI");
- subplot(2,2,2); hold on;
- plot(pfm_allmk_each_block_fam,block_rval_fam_rew_mean,'b.');
- [R,Pval] = corrcoef(pfm_allmk_each_block_fam,block_rval_fam_rew_mean);
- plot(pfm_allmk_each_block_fam,polyval(polyfit(pfm_allmk_each_block_fam,block_rval_fam_rew_mean,1),pfm_allmk_each_block_fam),'b-');
- xlim([-3 3]); ylim([sc_range(1) sc_range(2)]); if Pval(1,2)<0.1 text(0,-0.1,string(Pval(1,2)),'color','g'); else text(0,-0.1,string(Pval(1,2)),'color','k'); end
- title("Familiar block"); xlabel("Correct pfm (Z)"); ylabel("win trials PPI");
- subplot(2,2,3); hold on;
- plot(pfm_allmk_each_block_nov,block_rval_nov_nrew_mean,'r.');
- [R,Pval] = corrcoef(pfm_allmk_each_block_nov,block_rval_nov_nrew_mean);
- plot(pfm_allmk_each_block_nov,polyval(polyfit(pfm_allmk_each_block_nov,block_rval_nov_nrew_mean,1),pfm_allmk_each_block_nov),'r-');
- xlim([-3 3]); ylim([sc_range(1) sc_range(2)]); if Pval(1,2)<0.1 text(0,-0.1,string(Pval(1,2)),'color','g'); else text(0,-0.1,string(Pval(1,2)),'color','k'); end
- title(roi_name_tmp,'interpreter','none'); xlabel("Correct pfm (Z)"); ylabel("loss trials PPI");
- subplot(2,2,4); hold on;
- plot(pfm_allmk_each_block_fam,block_rval_fam_nrew_mean,'b.');
- [R,Pval] = corrcoef(pfm_allmk_each_block_fam,block_rval_fam_nrew_mean);
- plot(pfm_allmk_each_block_fam,polyval(polyfit(pfm_allmk_each_block_fam,block_rval_fam_nrew_mean,1),pfm_allmk_each_block_fam),'b-');
- xlim([-3 3]); ylim([sc_range(1) sc_range(2)]); if Pval(1,2)<0.1 text(0,-0.1,string(Pval(1,2)),'color','g'); else text(0,-0.1,string(Pval(1,2)),'color','k'); end
- title(""); xlabel("Correct pfm (Z)"); ylabel("loss trials PPI");
- %Stay/Shift trials vs Performance
- figure(3);
- subplot(2,2,1); hold on;
- plot(pfm_allmk_each_block_nov,block_rval_nov_stay_mean,'r.');
- [R,Pval] = corrcoef(pfm_allmk_each_block_nov,block_rval_nov_stay_mean);
- plot(pfm_allmk_each_block_nov,polyval(polyfit(pfm_allmk_each_block_nov,block_rval_nov_stay_mean,1),pfm_allmk_each_block_nov),'r-');
- xlim([-3 3]); ylim([sc_range(1) sc_range(2)]); if Pval(1,2)<0.1 text(0,-0.1,string(Pval(1,2)),'color','g'); else text(0,-0.1,string(Pval(1,2)),'color','k'); end
- title("Novel block"); xlabel("Correct pfm (Z)"); ylabel("Stay trials PPI");
- subplot(2,2,2); hold on;
- plot(pfm_allmk_each_block_fam,block_rval_fam_stay_mean,'b.');
- [R,Pval] = corrcoef(pfm_allmk_each_block_fam,block_rval_fam_stay_mean);
- plot(pfm_allmk_each_block_fam,polyval(polyfit(pfm_allmk_each_block_fam,block_rval_fam_stay_mean,1),pfm_allmk_each_block_fam),'b-');
- xlim([-3 3]); ylim([sc_range(1) sc_range(2)]); if Pval(1,2)<0.1 text(0,-0.1,string(Pval(1,2)),'color','g'); else text(0,-0.1,string(Pval(1,2)),'color','k'); end
- title("Familiar block"); xlabel("Correct pfm (Z)"); ylabel("Stay trials PPI");
- subplot(2,2,3); hold on;
- plot(pfm_allmk_each_block_nov,block_rval_nov_switch_mean,'r.');
- [R,Pval] = corrcoef(pfm_allmk_each_block_nov,block_rval_nov_switch_mean);
- plot(pfm_allmk_each_block_nov,polyval(polyfit(pfm_allmk_each_block_nov,block_rval_nov_switch_mean,1),pfm_allmk_each_block_nov),'r-');
- xlim([-3 3]); ylim([sc_range(1) sc_range(2)]); if Pval(1,2)<0.1 text(0,-0.1,string(Pval(1,2)),'color','g'); else text(0,-0.1,string(Pval(1,2)),'color','k'); end
- title(roi_name_tmp,'interpreter','none'); xlabel("Correct pfm (Z)"); ylabel("Shift trials PPI");
- subplot(2,2,4); hold on;
- plot(pfm_allmk_each_block_fam,block_rval_fam_switch_mean,'b.');
- [R,Pval] = corrcoef(pfm_allmk_each_block_fam,block_rval_fam_switch_mean);
- plot(pfm_allmk_each_block_fam,polyval(polyfit(pfm_allmk_each_block_fam,block_rval_fam_switch_mean,1),pfm_allmk_each_block_fam),'b-');
- xlim([-3 3]); ylim([sc_range(1) sc_range(2)]); if Pval(1,2)<0.1 text(0,-0.1,string(Pval(1,2)),'color','g'); else text(0,-0.1,string(Pval(1,2)),'color','k'); end
- title(""); xlabel("Correct pfm (Z)"); ylabel("Shift trials PPI");
- %% sliding window regression analysis (with permutation tests)
- figure(4);
- %Effect size
- yrange_beta_all = [-0.4 0.4];
- subplot(2,2,1); hold on;
- boundedline(bn_x,mean(ef_sff_nov_wsls,1),ci_sff_nov_wsls,'transparency',0.1,'y');
- plot(bn_x,mean(ef_block_nov_wsls,1),'k-'); %wsls
- for bn = 2:nstep-2
- if (ef_block_nov_wsls(bn)>(mean(ef_sff_nov_wsls(:,bn))+ci_sff_nov_wsls(bn,2)) && ef_block_nov_wsls(bn+1)>(mean(ef_sff_nov_wsls(:,bn+1))+ci_sff_nov_wsls(bn+1,2)) && ef_block_nov_wsls(bn+2)>(mean(ef_sff_nov_wsls(:,bn+2))+ci_sff_nov_wsls(bn+2,2))) || ...
- (ef_block_nov_wsls(bn)<(mean(ef_sff_nov_wsls(:,bn))-ci_sff_nov_wsls(bn,1)) && ef_block_nov_wsls(bn+1)<(mean(ef_sff_nov_wsls(:,bn+1))-ci_sff_nov_wsls(bn+1,1)) && ef_block_nov_wsls(bn+2)<(mean(ef_sff_nov_wsls(:,bn+2))-ci_sff_nov_wsls(bn+2,1)))
- plot([bn_x(bn-1) bn_x(bn)],[ef_block_nov_wsls(bn-1) ef_block_nov_wsls(bn)],'k-','linewidth',3);
- plot([bn_x(bn) bn_x(bn+1)],[ef_block_nov_wsls(bn) ef_block_nov_wsls(bn+1)],'k-','linewidth',3);
- plot([bn_x(bn+1) bn_x(bn+2)],[ef_block_nov_wsls(bn+1) ef_block_nov_wsls(bn+2)],'k-','linewidth',3);
- end
- end
- plot([0 0],[yrange_beta_all(1) yrange_beta_all(2)],'k--'); plot([psth_window(1) psth_window(2)],[0 0],'k-'); title("Novel block"); ylabel("Beta (WSLS coding)"); xlabel("Time from rew");
- xlim(psth_window); ylim(yrange_beta_all);
- subplot(2,2,2); hold on;
- boundedline(bn_x,mean(ef_sff_fam_wsls,1),ci_sff_fam_wsls,'transparency',0.1,'y');
- plot(bn_x,mean(ef_block_fam_wsls,1),'k-'); %wsls
- for bn = 2:nstep-2
- if (ef_block_fam_wsls(bn)>(mean(ef_sff_fam_wsls(:,bn))+ci_sff_fam_wsls(bn,2)) && ef_block_fam_wsls(bn+1)>(mean(ef_sff_fam_wsls(:,bn+1))+ci_sff_fam_wsls(bn+1,2)) && ef_block_fam_wsls(bn+2)>(mean(ef_sff_fam_wsls(:,bn+2))+ci_sff_fam_wsls(bn+2,2))) || ...
- (ef_block_fam_wsls(bn)<(mean(ef_sff_fam_wsls(:,bn))-ci_sff_fam_wsls(bn,1)) && ef_block_fam_wsls(bn+1)<(mean(ef_sff_fam_wsls(:,bn+1))-ci_sff_fam_wsls(bn+1,1)) && ef_block_fam_wsls(bn+2)<(mean(ef_sff_fam_wsls(:,bn+2))-ci_sff_fam_wsls(bn+2,1)))
- plot([bn_x(bn-1) bn_x(bn)],[ef_block_fam_wsls(bn-1) ef_block_fam_wsls(bn)],'k-','linewidth',3);
- plot([bn_x(bn) bn_x(bn+1)],[ef_block_fam_wsls(bn) ef_block_fam_wsls(bn+1)],'k-','linewidth',3);
- plot([bn_x(bn+1) bn_x(bn+2)],[ef_block_fam_wsls(bn+1) ef_block_fam_wsls(bn+2)],'k-','linewidth',3);
- end
- end
- plot([0 0],[yrange_beta_all(1) yrange_beta_all(2)],'k--'); plot([psth_window(1) psth_window(2)],[0 0],'k-'); title("Familiar block"); xlabel("Time from rew");
- xlim(psth_window); ylim(yrange_beta_all);
- %%
- end
Fujimoto_NatComm_2026_gPPI.m at commit 3fcced8, no license · at the source
Overview
- Nash Family Department of Neuroscience and Friedman Brain Institute, Icahn School of Medicine at Mount Sinai,New York, NY USA
- Lipschultz Center for Cognitive Neuroscience, Icahn School of Medicine at Mount Sinai,New York, NY USA
- Present Address: Department of Neuroscience and Center for Magnetic Resonance Research, University of Minnesota,Minneapolis, MN USA
- BioMedical Engineering and Imaging Institute, Icahn School of Medicine at Mount Sinai,New York, NY USA
- Center for Biomedical Imaging and Neuromodulation, Nathan Kline Institute,Orangeburg, NY USA
- Department of Psychiatry, New York University at Langone,New York, NY 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 1 match between paragraphs and lines of code.
Fujimoto-Lab-UMN/Awake-fMRI-LRN
3fcced843e70799d48f8845341acdac26fa5abe0, 25 March 2026Availability: 1 check, the latest on 27 September 2026: the link answers
- 27 September 2026: the link answers
6 files
- Fujimoto_NatComm_2026_LR
Ntask_Behavior.m , MATLAB, 628 lines - Fujimoto_NatComm_2026_Ph
armacology_Behavior.m , MATLAB, 363 lines - Fujimoto_NatComm_2026_Re
Ho.m , MATLAB, 269 lines - Fujimoto_NatComm_2026_gP
PI.m , MATLAB, 588 lines, 1 match - Fujimoto_NatComm_2026_vl
PFC_TS.m , MATLAB, 536 lines - README.md, Text, 69 lines
Zenodo 19225305
Availability: 1 check, the latest on 27 September 2026: the link answers (HTTP 200)
- 27 September 2026: the link answers (HTTP 200)
6 files
- Fujimoto_NatComm_2026_LR
Ntask_Behavior.m , MATLAB, 628 lines - Fujimoto_NatComm_2026_Ph
armacology_Behavior.m , MATLAB, 363 lines - Fujimoto_NatComm_2026_Re
Ho.m , MATLAB, 269 lines - Fujimoto_NatComm_2026_gP
PI.m , MATLAB, 588 lines - Fujimoto_NatComm_2026_vl
PFC_TS.m , MATLAB, 536 lines - README.md, Text, 69 lines
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: Fujimoto-Lab-UMN/
Awake-fMRI-LRN
Read it in the paper: doi.org/10.1038/s41467-026-72782-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;
- 10 scripts, each with its path and the digest of its content;
- 1 match 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
- prime-re.github.io, at prime-re.github.io; found in “Data availability”
Code and data availability statement
The paper has a code and 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: prime-re.github.io
- it points to the authors' code: Fujimoto-Lab-UMN/
Awake-fMRI-LRN - it says that the data are available on request
Read it in the paper: doi.org/10.1038/s41467-026-72782-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, 6 authors, 2 keywords, 13 MeSH terms, 4 funders, 71 references.
Cite
This paper
Fujimoto, A., Elorette, C., Fujimoto, S. H., Fleysher, L., Russ, B. E., & Rudebeck, P. H. (2026). Ventrolateral prefrontal cortex in macaques guides decisions in different learning conditions. Nature communications, 17(1), 7153. https://
BibTeX
@article{fujimoto2026ven
author = {Fujimoto, Atsushi and Elorette, Catherine and Fujimoto, Satoka H. and Fleysher, Lazar and Russ, Brian E. and Rudebeck, Peter H.},
title = {{Ventrolateral prefrontal cortex in macaques guides decisions in different learning conditions}},
journal = {Nature communications},
year = {2026},
month = jun,
volume = {17},
number = {1},
pages = {7153},
publisher = {Nature Publishing Group},
issn = {2041-1723},
doi = {10.1038/
url = {https://
pmid = {42236691},
pmcid = {PMC13396457}
}
RIS
TY - JOUR
AU - Fujimoto, Atsushi
AU - Elorette, Catherine
AU - Fujimoto, Satoka H.
AU - Fleysher, Lazar
AU - Russ, Brian E.
AU - Rudebeck, Peter H.
TI - Ventrolateral prefrontal cortex in macaques guides decisions in different learning conditions
T2 - Nature communications
J2 - Nat Commun
PY - 2026
DA - 2026/
VL - 17
IS - 1
SP - 7153
SN - 2041-1723
PB - Nature Publishing Group
DO - 10.1038/
UR - https://
LA - en
ER -
CSL-JSON
{
"id": "10.1038/
"type": "article-journal",
"title": "Ventrolateral prefrontal cortex in macaques guides decisions in different learning conditions",
"container-title": "Nature communications",
"author": [
{
"family": "Fujimoto",
"given": "Atsushi"
},
{
"family": "Elorette",
"given": "Catherine"
},
{
"family": "Fujimoto",
"given": "Satoka H."
},
{
"family": "Fleysher",
"given": "Lazar"
},
{
"family": "Russ",
"given": "Brian E."
},
{
"family": "Rudebeck",
"given": "Peter H."
}
],
"container-title-short":
"volume": "17",
"issue": "1",
"page": "7153",
"DOI": "10.1038/
"PMID": "42236691",
"PMCID": "PMC13396457",
"ISSN": "2041-1723",
"publisher": "Nature Publishing Group",
"URL": "https://
"language": "en",
"issued": {
"date-parts": [
[
2026,
6,
4
]
]
}
}
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/s41593-026-02301-4
- Deep brain stimulation induces white matter remodeling and functional changes to brain-wide networks.Journal: Nature neuroscienceIn common: prime-re.github.io, non-human primate, 8 references, 5 authors
- [2] doi:10.1038/s41597-026-07129-y [code]
- Dataset of cortical and subcortical single neuron activity during value-based tasks in macaque monkey.Journal: Scientific dataIn common: Statistics and Machine Learning Toolbox, non-human primate, 6 references
- [3] doi:10.1038/s41562-026-02473-w [code]
- Brain activity, disruption and connectivity comparisons identify origins of human metacognition in other primates.Journal: Nature human behaviourIn common: Statistics and Machine Learning Toolbox, non-human primate, 5 references
- [4] doi:10.1371/journal.pbio.3003767 [code]
- Ultrasound neuromodulation reveals distinct roles of the dorsal anterior cingulate cortex and anterior insula in learning.Journal: PLoS biologyIn common: boundedline, Statistics and Machine Learning Toolbox, 3 references
- [5] doi:10.1038/s41467-026-76118-x [code]
- Control of associative learning by the mediodorsal thalamus-orbitofrontal cortex circuit.Journal: Nature communicationsIn common: Statistics and Machine Learning Toolbox, 4 references
- [6] doi:10.64898/2026.03.12.710517 [code]
- Cortical excitability inversely modulates fMRI connectivity via low-frequency neuronal couplingJournal: bioRxiv (preprint)In common: AFNI, Statistics and Machine Learning Toolbox, 2 references
- [7] doi:10.1162/imag.a.1253
- Mapping the structural connections between the anterior cingulate cortex and the insula/
ventrolateral prefrontal cortex. Journal: Imaging neuroscience (Cambridge, Mass.)In common: non-human primate, 3 references - [8] doi:10.1038/s41467-026-72605-3 [code]
- Resolving mesoscale brainstem-prefrontal-str
iatal pathways underlying decisions upon salient events using submillimeter-resolution fMRI. Journal: Nature communicationsIn common: AFNI, 3 references - [9] doi:10.1016/j.neuron.2026.04.011 [code]
- Precision fMRI reveals densely interdigitated network patches with conserved motifs in the lateral prefrontal cortex.Journal: NeuronIn common: AFNI, Statistics and Machine Learning Toolbox, 2 references
- [10] doi:10.1038/s41593-026-02357-2 [code]
- Experience reorganizes content-specific memory traces in macaques.Journal: Nature neuroscienceIn common: boundedline, Statistics and Machine Learning Toolbox, non-human primate, 1 reference
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, 10 scripts, and 1 match 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:1edb193e29374bd5…
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.
