Sensory adaptation and pupil-linked arousal support flexible evidence accumulation during perceptual decision making.
The 9 matches · 1 of them tie a paragraph to a whole file, not to given lines: a weak match, whose lines are not tinted
- [1] § Results › Context-dependent evidence encoding in MT relates to evidence-accumulation behavior ↔ Fig5DE_FigSupp2_4.m, lines 345–481 · score 0.88 · 50–200 ms, 200–400 ms, evidence discriminability, viewing durations, ROC area, firing rate
- [2] § Results › Context-dependent evidence encoding in MT relates to evidence-accumulation behavior ↔ Fig5DE_FigSupp2_4.m, lines 161–284 · score 0.88 · MT evidence discriminability, MT evidence encoding, 50–500 ms, 200–400 ms, ROC area, HSF switch
- [3] § Results › Context stability shapes sensory adaptation in MT ↔ Fig3_FigSupp1.m, lines 374–430 · score 0.87 · single exponential fits, 480–600 ms, 200–330, 340–470, MT neural response, 480 ms
- [4] § Results › Context-dependent evidence encoding in MT relates to evidence-accumulation behavior ↔ Fig5DE_FigSupp2_4.m, lines 161–284 · score 0.81 · MT evidence discriminability, 200–400 ms, ROC area, MT neural, neural activity, stimulus onset
- [5] § Results › Context-dependent evidence encoding in MT relates to evidence-accumulation behavior ↔ Fig5DE_FigSupp2_4.m, lines 345–481 · score 0.68 · 50–200 ms, evidence encoding, firing rate, switch trials, window, discriminability
- [6] § Materials and methods › Quantification of neural and pupil contributions to behavior ↔ builds/behaviorLogisticFitsPupilTerm.m, lines 295–416 · score 0.67 · predicted probabilities, pupil terms, interaction, R2, Tjur, power
- [7] § Materials and methods › Quantification of neural and pupil contributions to behavior ↔ builds/behaviorLogisticFitsNeuralTerm.m, lines 341–468 · score 0.64 · predicted probabilities, pupil terms, interaction, R2, Tjur, power
- [8] § Results › Adaptation and arousal-related mechanisms are jointly and differentially recruited across sessions ↔ Fig7.m, lines 93–143 · score 0.58 · explanatory power, neural pupil, pupil terms, Figure 7, Mi, monkeys
- [9] § Materials and methods › Analysis of pupil data ↔ utilities/processPupilBaseline.m, the whole file · a weak match · score 0.52 · baseline pupil, Butterworth, scoring, filter, subtracting, linear
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 · 481 lines · 18 KB · MIT · 4 matches
- %% Fig5DE_FigSupp2_4.m
- % Analyzes relationships between MT neural encoding, discriminability,
- % and behavioral performance, separated by sessions where monkeys showed greater
- % behavioral sensitivity at LSF vs. HSF.
- %
- % Session classification:
- % Based on psychometric slope differences (from logistic fits):
- % - LmoresenLSF: Sessions with steeper slopes at LSF (slope_diff > 0)
- % - Lothersen: Sessions with steeper slopes at HSF or equal (slope_diff ≤ 0)
- %
- % Main Text Figures:
- %
- % Figure 5D: Three-panel summary for LmoresenLSF sessions.
- % Panel 1: Population average firing rate time course (0-900ms)
- % - LSF (blue) and HSF (yellow) PREF direction responses
- % - Shows mean±SEM across neurons in these sessions
- % - LSF responses higher throughout test epoch
- %
- % Panel 2: ROC area scatter plot (200-400ms average)
- % - HSF vs LSF directional selectivity
- % - Most points above unity line (higher discriminability at LSF)
- % - Different markers by monkey
- %
- % Panel 3: Binned behavioral performance
- % - Fraction correct vs viewing duration (4 bins with midpoints: 162.5, 300, 487.5, 900ms)
- % - LSF (blue) and HSF (yellow) with error bars (SEM)
- % - LSF performance higher, especially at intermediate durations
- %
- % Figure 5E: Same three-panel format for Lothersen sessions.
- % Tests whether sessions with opposite behavioral pattern show opposite
- % or absent neural patterns.
- %
- % Figure Supplements:
- %
- % Figure 5-Figure Supplement 2: Test-epoch firing rates (200-400ms) separated by
- % monkey AND behavioral sensitivity classification. Six panels (3 monkeys x
- % 2 sensitivity groups): row 1 = LmoresenLSF sessions, row 2 = Lothersen
- % sessions. Tests whether neural-behavioral correspondence holds within
- % individual subjects.
- %
- % Figure 5-Figure Supplement 4: Exploration of test-stimulus encoding,
- % discriminability, and behavior for non-switch trials. Eight panels:
- % four columns (1: test-stimulus evidence encoding, 2: test-stimulus ROC
- % area 50-200 ms, 3: test-stimulus ROC area 200-400 ms, 4: test-stimulus
- % behavioral performance/fraction correct) by two rows, matching the
- % Figure 5D/E session-group split (row 1 = LmoresenLSF, n=100; row 2 =
- % Lothersen, n=32).
- %
- % Behavioral bins (from behaviorBinnedPerformance.m):
- % Bin 1: 100-225ms
- % Bin 2: 225-375ms
- % Bin 3: 375-600ms
- % Bin 4: 600-1200ms
- %
- % Required data files:
- % - mergedTable_proc.mat
- % - sensitivity_diff_labeled_N.mat (psychometric slope classifications)
- %
- % Required functions:
- % - processNeuralData.m (MT activity and ROC area)
- % - behaviorBinnedPerformance.m (binned accuracy)
- % - computeCohenDCI.m (effect size)
- %% Load data
- cfg = projectDefaults();
- load(fullfile(cfg.paths.data, 'mergedTable_proc_neural.mat')) % keeps Unit_1, skips pupil traces (see buildMergedTableTiers.m)
- load(fullfile(cfg.paths.data, 'sensitivity_diff_labeled_N.mat')) % Neural subset
- % Subset data appropriately
- % "N" = Neural analysis
- [mergedTableSub] = createDatSubset(mergedTable_proc, 'N');
- dat = mergedTableSub;
- clear mergedTable_proc
- % Select correct trials
- datCorrect = dat(dat.correct == 1,:);
- dat = datCorrect;
- % Create monkey indices for subsetting units.
- % Numeric (not logical) indices are needed here because later code
- % composes them with a second index, e.g. An(cond(An)).
- monkeyIdx = getMonkeyIndices(dat);
- An = find(monkeyIdx.An);
- Ch = find(monkeyIdx.Ch);
- Mi = find(monkeyIdx.Mi);
- monkeyOrder = {'An', 'Mi', 'Ch'};
- monkeyMarkers = struct('An', 'o', 'Mi', 'square', 'Ch', 'diamond');
- monkeyNumIdx = struct('An', An, 'Ch', Ch, 'Mi', Mi);
- colors = cfg.colors.pair;
- %%
- % Process neural data (calling processNeuralData.m)
- % Set up timing/binning:
- slide = 10; % msec
- bin_size = 100; % msec
- start_time = -2600;
- end_time = 1200;
- bins = cat(2, ...
- (start_time:slide:end_time - bin_size)', ...
- (start_time + bin_size:slide:end_time)');
- xax = mean(bins,2);
- numBins = size(bins, 1);
- % Output spike matrices organization:
- % 1. Low switch frequency switch (PREF)
- % 2. Low switch frequency switch (NULL)
- % 3. High switch frequency switch (PREF)
- % 4. High switch frequency switch (NULL)
- % 5. Low switch frequency non-switch (NULL) % testing epoch
- % 6. Low switch frequency non-switch (PREF)
- % 7. High switch frequency non-switch (NULL)
- % 8. High switch frequency non-switch (PREF)
- % Output ROC area matrix:
- % 1. LSF non-switch trials
- % 2. LSF switch trials
- % 3. HSF switch trials
- % 4. HSF non-switch trials
- [spike_rates_avg, spike_rates_SEM, spike_rates_avg_std_norm_avg, ...
- spike_rates_avg_std_norm_SEM, ...
- ROC_area, cell_selectivity, ...
- normalizationTerm, uniqueUnitNames, ...
- unit_example] = processNeuralData(dat, slide, bin_size, start_time, end_time, [], []);
- %%
- % Calculate binned performance difference (LSF-HSF)
- % Returns vector of 4 bins:
- % Bin 1: 100-225 ms
- % Bin 2: 225-375 ms
- % Bin 3: 375-600 ms
- % Bin 4: 600-1200 ms
- % For performance metric need to change dat to using all trials, not just correct trials
- dat = mergedTableSub;
- [LSF_switch_binned_performance, HSF_switch_binned_performance, binned_behavior_diff] = ...
- behaviorBinnedPerformance(dat);
- %%
- % Parse sensitivity (i.e., psychometric slope)
- slope_diff = cell2mat(sensitivity_diff_labeled_N(:,2));
- LmoresenLSF = slope_diff > 0;
- LmoresenHSF = slope_diff < 0;
- Lsamesen = slope_diff == 0;
- Lother = LmoresenHSF + Lsamesen;
- Lothersen = Lother == 1;
- %%
- %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
- %%%%%%%%%%%%%%%%%%%% Figure 5D-E %%%%%%%%%%%%%%%%%%
- %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
- % Compare evidence encoding, discriminability, and behavior, separately for:
- % Figure 5D (figure 99): sessions with greater sensitivity at LSF than HSF (cond = LmoresenLSF)
- % Figure 5E (figure 44): sessions with greater sensitivity at HSF than LSF, or equal (cond = Lothersen)
- %
- % Panel 2 uses the 200-400ms ROC-area window for both D and E (per this
- % file's own header above and the manuscript's Fig 5D/E caption: "(middle)
- % MT evidence discriminability (average ROC area, 200-400 ms ...)" with E
- % described as "Same as D"). The original script used 50-500ms for D's
- % Panel 2, inconsistent with its own header and with E -- fixed here.
- % Panels 1/3's viewing-duration XTick still differ between D and E in the
- % original script; that difference is preserved, just parameterized per
- % panel instead of copy-pasted.
- panelCond = {LmoresenLSF, Lothersen};
- panelFig = [99 44];
- panelROCBin = [200 400; 200 400]; % [bin1 bin2] for Panel 2, per panel
- panelTimecourseXTick = [false true]; % whether Panel 1 sets an explicit XTick
- panelPerfXTick = {cfg.bins.viewDuration.midpoints, [200,400,600,800,1000]}; % Panel 3 XTick
- for ee = 1:2
- cond = panelCond{ee};
- figure(panelFig(ee)); clf
- % Evidence encoding (MT neural activity):
- subplot(1,3,1); hold on; box on;
- testing_dur = 900; % How much of test epoch to display
- pref_only = false;
- end_bin = find(bins(:,1) == testing_dur - 0.5*bin_size,1);
- x_vals_patch = [xax(1:end_bin)' flip(xax(1:end_bin)')]; % X vals -- time relative to test stimulus onset
- x_vals = xax(1:end_bin)';
- x_val_trim = 0; % Testing stim only
- yy = [1,3]; % LSF; HSF
- for cc = 1:2
- dd = yy(cc);
- y_vals = mean(spike_rates_avg_std_norm_avg(cond,1:end_bin,dd), 1, 'omitnan');
- y_vals_SEM = nanse(spike_rates_avg_std_norm_avg(cond,1:end_bin,dd),1);
- y_vals_patch = [y_vals - y_vals_SEM flip(y_vals + y_vals_SEM)];
- p = patch(x_vals_patch(~isnan(y_vals_patch) & x_vals_patch > x_val_trim), y_vals_patch(~isnan(y_vals_patch) & x_vals_patch > x_val_trim), colors{cc});
- set(p,'LineStyle','none')
- alpha(p, 0.2);
- plot(x_vals(~isnan(y_vals) & x_vals > x_val_trim), y_vals(~isnan(y_vals) & x_vals > x_val_trim), 'LineWidth', 0.75, 'Color', colors{cc});
- end
- xlabel('Time relative to test stim onset (ms)')
- ylabel('Avg. firing rate')
- ylim([-0.2 0.8])
- if panelTimecourseXTick(ee)
- set(gca(),'XTick',[200,400,600,800,1000])
- end
- % Evidence discriminability (MT ROC area):
- subplot(1,3,2); hold on; box on;
- bin1 = panelROCBin(ee,1); % Starting bin for ROC area average
- bin2 = panelROCBin(ee,2); % Ending bin for ROC area average
- start_bin = find(bins(:,1) == bin1 - 0.5*bin_size,1);
- end_bin = find(bins(:,1) == bin2 - 0.5*bin_size,1);
- x_line = -0.4:0.1:1;
- y_line = -0.4:0.1:1;
- xlim([0.2 1])
- ylim([0.2 1])
- plot(x_line, y_line, 'k');
- % Monkey Mi:
- x = mean(ROC_area(Mi(cond(Mi)),start_bin:end_bin,3), 2, 'omitnan');
- y = mean(ROC_area(Mi(cond(Mi)),start_bin:end_bin,2), 2, 'omitnan');
- plot(x,y, 'k', 'Marker', 'square', 'MarkerSize',10, 'LineStyle', 'none', 'MarkerFaceColor','white')
- % Monkey An:
- x = mean(ROC_area(An(cond(An)),start_bin:end_bin,3), 2, 'omitnan');
- y = mean(ROC_area(An(cond(An)),start_bin:end_bin,2), 2, 'omitnan');
- plot(x,y, 'k', 'Marker', 'o', 'MarkerSize',10, 'LineStyle', 'none', 'MarkerFaceColor','white', 'MarkerEdgeColor', 'black')
- % Monkey Ch:
- x = mean(ROC_area(Ch(cond(Ch)),start_bin:end_bin,3), 2, 'omitnan');
- y = mean(ROC_area(Ch(cond(Ch)),start_bin:end_bin,2), 2, 'omitnan');
- plot(x,y, 'k', 'Marker', 'diamond', 'MarkerSize',10, 'LineStyle', 'none', 'MarkerFaceColor','white')
- x = mean(ROC_area(cond,start_bin:end_bin,3), 2, 'omitnan');
- y = mean(ROC_area(cond,start_bin:end_bin,2), 2, 'omitnan');
- xlabel('ROC area (HSF)')
- ylabel('ROC area (LSF)')
- [p, h, stats] = signrank(x,y);
- d = computeCohenDCI(y, x, 'paired');
- subtitle(['p = ', num2str(p), ' & d = ', num2str(d)])
- % Performance (avg. binned percent correct)
- subplot(1,3,3); hold on; box on;
- LSF_switch_dat = mean(LSF_switch_binned_performance(cond,:));
- LSF_switch_dat_sem = nanse(LSF_switch_binned_performance(cond,:));
- HSF_switch_dat = mean(HSF_switch_binned_performance(cond,:));
- HSF_switch_dat_sem = nanse(HSF_switch_binned_performance(cond,:));
- errorbar(cfg.bins.viewDuration.midpoints, LSF_switch_dat, LSF_switch_dat_sem, 'Color', colors{1},'LineWidth', 2)
- errorbar(cfg.bins.viewDuration.midpoints, HSF_switch_dat, HSF_switch_dat_sem, 'Color', colors{2}, 'LineWidth', 2)
- ylabel('Fraction correct')
- xlabel('Binned viewing duration (ms)')
- xlim([0 1000])
- ylim([0.4 .9])
- set(gca(),'XTick', panelPerfXTick{ee})
- end
- %% Relevant Figure Supplements
- %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
- %%%%%%%%%%%%%%%%%%%% Figure 5-Figure Supplement 2 %%%%%%%%%%%%%%%%%%%
- %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
- % Test-epoch average activity (HSF vs. LSF), by monkey and by sensitivity
- % classification.
- % Row 1: sessions more sensitive to evidence at LSF (cond = LmoresenLSF)
- % Row 2: sessions more sensitive to evidence at HSF, or equal (cond = Lothersen)
- % Panel order (An, Mi, Ch) matches the manuscript, not
- % monkeyIdx.names' alphabetical (An, Ch, Mi) order.
- bin1 = 200; % Starting bin for response average
- bin2 = 400; % Ending bin for response average
- start_bin = find(bins(:,1) == bin1 - 0.5*bin_size,1);
- end_bin = find(bins(:,1) == bin2 - 0.5*bin_size,1);
- sensGroups = {LmoresenLSF, Lothersen};
- x_line = -0.2:0.1:2;
- y_line = -0.2:0.1:2;
- figure(21); clf
- for ss = 1:numel(sensGroups)
- cond = sensGroups{ss};
- for mm = 1:numel(monkeyOrder)
- monkeyName = monkeyOrder{mm};
- idx = monkeyNumIdx.(monkeyName);
- subplot(2,3,(ss-1)*3+mm); hold on; box on;
- ylim([-0.2,1])
- xlim([-0.2,1])
- plot(x_line, y_line, 'k');
- x = mean(spike_rates_avg_std_norm_avg(idx(cond(idx)),start_bin:end_bin,3), 2, 'omitnan');
- y = mean(spike_rates_avg_std_norm_avg(idx(cond(idx)),start_bin:end_bin,1), 2, 'omitnan');
- plot(x,y, 'k', 'Marker', monkeyMarkers.(monkeyName), 'MarkerSize',10, 'LineStyle', 'none', 'MarkerFaceColor','white')
- xlabel('High switch frequency avg. FR')
- ylabel('Low switch frequency avg. FR')
- [p, h, stats] = signrank(x,y);
- d = computeCohenDCI(y, x, 'paired');
- title(['Testing Epoch average firing rate ', num2str(bin1), '-', num2str(bin2)], ' ms')
- subtitle(['p = ', num2str(p), ' & d = ', num2str(d)])
- end
- end
- %%
- %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
- %%%%%%%%%%%%%%%%%%%% Figure 5-Figure Supplement 4 %%%%%%%%%%%%%%%%%%%
- %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
- % Compare evidence encoding, discriminability, and behavior for non-switch
- % trials. Same row split as Figure 5D-E (row 1 = LmoresenLSF, n=100; row 2 =
- % Lothersen, n=32). Columns: (1) test-stimulus evidence encoding (non-switch
- % PREF firing rate), (2-3) test-stimulus ROC area in early (50-200 ms) and
- % late (200-400 ms) windows, (4) non-switch behavioral performance.
- %
- % Non-switch PREF/NULL columns of spike_rates_avg_std_norm_avg: 5=LSF
- % non-switch NULL, 6=LSF non-switch PREF, 7=HSF non-switch NULL, 8=HSF
- % non-switch PREF -- as in the "Output spike matrices organization" block
- % above. This is NOT simply "trial started on the adapting-epoch preferred
- % direction" (that's what processNeuralData.m's raw dd=1/dd=2 selects):
- % because LSF (1 switch) and HSF (5 switches) both have an odd number of
- % mid-adapting-epoch reversals, the starting direction only equals the
- % test-epoch direction when there's *also* a switch at the adapting/test
- % boundary. So dd=1 (starts on the adapting-epoch PREF direction) lands on
- % columns 1/3 for switch trials but columns 5/7 for non-switch trials --
- % confirmed against this panel's published version (columns 6/8 are the
- % ones whose time course actually shows the expected non-switch PREF
- % pattern: high baseline, dip at the test-stimulus coherence drop, recovery
- % to a sustained plateau). See processNeuralData.m for the full derivation.
- % ROC_area's non-switch columns (1=LSF, 4=HSF) don't have this issue -- they
- % aren't split by dd, so no start/test-direction mismatch is possible.
- % Non-switch behavioral performance, for the Column 4 panels:
- dat = mergedTableSub;
- [LSF_nonswitch_binned_performance, HSF_nonswitch_binned_performance, ~] = ...
- behaviorBinnedPerformance(dat, 'nonswitch');
- rocWindows = [50 200; 200 400]; % [bin1 bin2] for Columns 2 and 3
- figure(45); clf
- set(gcf, 'Position', [100 100 1500 700]); % 2x4 grid is denser than this file's other panels; widen so titles/subtitles don't collide
- for rr = 1:2
- cond = panelCond{rr};
- % Column 1: evidence encoding (non-switch PREF MT activity, LSF vs HSF)
- subplot(2,4,(rr-1)*4+1); hold on; box on;
- testing_dur = 900; % How much of test epoch to display
- end_bin = find(bins(:,1) == testing_dur - 0.5*bin_size,1);
- x_vals_patch = [xax(1:end_bin)' flip(xax(1:end_bin)')];
- x_vals = xax(1:end_bin)';
- x_val_trim = 0; % Testing stim only
- ylim([-0.2 0.8])
- % Shade the two ROC-area windows used in Columns 2-3 (light = early 50-200ms, dark = late 200-400ms)
- patch([50 200 200 50], [-0.2 -0.2 0.8 0.8], [0.5 0.5 0.5], 'FaceAlpha', 0.15, 'LineStyle', 'none');
- patch([200 400 400 200], [-0.2 -0.2 0.8 0.8], [0.5 0.5 0.5], 'FaceAlpha', 0.3, 'LineStyle', 'none');
- yy = [6,8]; % LSF non-switch PREF; HSF non-switch PREF
- for cc = 1:2
- dd = yy(cc);
- y_vals = mean(spike_rates_avg_std_norm_avg(cond,1:end_bin,dd), 1, 'omitnan');
- y_vals_SEM = nanse(spike_rates_avg_std_norm_avg(cond,1:end_bin,dd),1);
- y_vals_patch = [y_vals - y_vals_SEM flip(y_vals + y_vals_SEM)];
- p = patch(x_vals_patch(~isnan(y_vals_patch) & x_vals_patch > x_val_trim), y_vals_patch(~isnan(y_vals_patch) & x_vals_patch > x_val_trim), colors{cc});
- set(p,'LineStyle','none')
- alpha(p, 0.2);
- plot(x_vals(~isnan(y_vals) & x_vals > x_val_trim), y_vals(~isnan(y_vals) & x_vals > x_val_trim), 'LineWidth', 0.75, 'Color', colors{cc});
- end
- xlabel('Time relative to test stim onset (ms)')
- ylabel('Avg. firing rate (non-switch)')
- % Columns 2-3: evidence discriminability (non-switch ROC area), early and late windows
- for ww = 1:2
- subplot(2,4,(rr-1)*4+1+ww); hold on; box on;
- bin1 = rocWindows(ww,1);
- bin2 = rocWindows(ww,2);
- start_bin = find(bins(:,1) == bin1 - 0.5*bin_size,1);
- end_bin = find(bins(:,1) == bin2 - 0.5*bin_size,1);
- x_line = -0.4:0.1:1;
- y_line = -0.4:0.1:1;
- xlim([0.2 1])
- ylim([0.2 1])
- plot(x_line, y_line, 'k');
- % Monkey Mi:
- x = mean(ROC_area(Mi(cond(Mi)),start_bin:end_bin,4), 2, 'omitnan');
- y = mean(ROC_area(Mi(cond(Mi)),start_bin:end_bin,1), 2, 'omitnan');
- plot(x,y, 'k', 'Marker', 'square', 'MarkerSize',10, 'LineStyle', 'none', 'MarkerFaceColor','white')
- % Monkey An:
- x = mean(ROC_area(An(cond(An)),start_bin:end_bin,4), 2, 'omitnan');
- y = mean(ROC_area(An(cond(An)),start_bin:end_bin,1), 2, 'omitnan');
- plot(x,y, 'k', 'Marker', 'o', 'MarkerSize',10, 'LineStyle', 'none', 'MarkerFaceColor','white', 'MarkerEdgeColor', 'black')
- % Monkey Ch:
- x = mean(ROC_area(Ch(cond(Ch)),start_bin:end_bin,4), 2, 'omitnan');
- y = mean(ROC_area(Ch(cond(Ch)),start_bin:end_bin,1), 2, 'omitnan');
- plot(x,y, 'k', 'Marker', 'diamond', 'MarkerSize',10, 'LineStyle', 'none', 'MarkerFaceColor','white')
- x = mean(ROC_area(cond,start_bin:end_bin,4), 2, 'omitnan');
- y = mean(ROC_area(cond,start_bin:end_bin,1), 2, 'omitnan');
- xlabel('ROC area (HSF, non-switch)')
- ylabel('ROC area (LSF, non-switch)')
- [p, h, stats] = signrank(x,y);
- d = computeCohenDCI(y, x, 'paired');
- title(sprintf('%d-%d ms', bin1, bin2))
- subtitle(['p = ', num2str(p), ' & d = ', num2str(d)])
- end
- % Column 4: non-switch behavioral performance
- subplot(2,4,(rr-1)*4+4); hold on; box on;
- LSF_nonswitch_dat = mean(LSF_nonswitch_binned_performance(cond,:));
- LSF_nonswitch_dat_sem = nanse(LSF_nonswitch_binned_performance(cond,:));
- HSF_nonswitch_dat = mean(HSF_nonswitch_binned_performance(cond,:));
- HSF_nonswitch_dat_sem = nanse(HSF_nonswitch_binned_performance(cond,:));
- errorbar(cfg.bins.viewDuration.midpoints, LSF_nonswitch_dat, LSF_nonswitch_dat_sem, 'Color', colors{1},'LineWidth', 2)
- errorbar(cfg.bins.viewDuration.midpoints, HSF_nonswitch_dat, HSF_nonswitch_dat_sem, 'Color', colors{2}, 'LineWidth', 2)
- ylabel('Fraction correct (non-switch)')
- xlabel('Binned viewing duration (ms)')
- xlim([0 1000])
- ylim([0.4 1])
- end
Fig5DE_FigSupp2_4.m at commit 6796598, under MIT · at the source
Overview
- Department of Neuroscience, University of Pennsylvania, Philadelphia, United States
- Computational Neuroscience Initiative, University of Pennsylvania, Philadelphia, United States
- Neuroscience Graduate Group, University of Pennsylvania, Philadelphia, United States
Abstract
Effective decision making in dynamic environments requires flexible evidence accumulation. Although models often express this flexibility as a property of the accumulator, its implementation in the brain may involve adaptive mechanisms operating at other stages of the decision process. We examined two such mechanisms: (1) stimulus-specific sensory adaptation at the level of evidence encoding, and (2) arousal-related neuromodulation, which could, in principle, affect both evidence encoding and accumulation. We measured single-unit activity in the middle temporal (MT) area and pupil-linked arousal while monkeys performed a modified random-dot motion direction-discrimination
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 9 matches between paragraphs and lines of code.
TheGoldLab/ms_2026_mcgaughey_gold_elife
67965986ec067208edce0f9d5ced848680d48784, 22 July 2026Availability: 1 check, the latest on 27 September 2026: the link answers
- 27 September 2026: the link answers
40 files
- Fig2_FigSupp1.m, MATLAB, 93 lines
- Fig2_FigSupp2_3.m, MATLAB, 325 lines
- Fig3_FigSupp1.m, MATLAB, 466 lines, 1 match
- Fig4_FigSupp1A.m, MATLAB, 553 lines
- Fig4_FigSupp1B.m, MATLAB, 433 lines
- Fig4_FigSupp2.m, MATLAB, 238 lines
- Fig5ABC_FigSupp1.m, MATLAB, 335 lines
- Fig5DE_FigSupp2_4.m, MATLAB, 481 lines, 4 matches
- Fig5_FigSupp3.m, MATLAB, 148 lines
- Fig6_FigSupp1.m, MATLAB, 216 lines
- Fig6_FigSupp2AB.m, MATLAB, 434 lines
- Fig6_FigSupp2CD.m, MATLAB, 208 lines
- Fig7.m, MATLAB, 195 lines, 1 match
- README.m, MATLAB, 227 lines
- builds/
README.m , MATLAB, 232 lines - builds/
behaviorLogisticFits.m , MATLAB, 174 lines - builds/
behaviorLogisticFitsNeur , MATLAB, 478 lines, 1 matchalTerm.m - builds/
behaviorLogisticFitsPupi , MATLAB, 426 lines, 1 matchlTerm.m - builds/
behaviorLogisticFitsShuf , MATLAB, 136 linesfle.m - builds/
buildMergedTableTiers.m , MATLAB, 83 lines - utilities/
behaviorBinnedPerformanc , MATLAB, 98 linese.m - utilities/
computeCohenDCI.m , MATLAB, 106 lines - utilities/
createDatSubset.m , MATLAB, 117 lines - utilities/
getMonkeyIndices.m , MATLAB, 46 lines - utilities/
logisticUtilities/ , MATLAB, 53 linesbuildBehaviorDataToFit.m - utilities/
logisticUtilities/ , MATLAB, 54 linesbuildInteractionDataToFi t.m - utilities/
logisticUtilities/ , MATLAB, 17 linescomputeTjursR2.m - utilities/
logisticUtilities/ , MATLAB, 28 lineslogistErrDotsrev.m - utilities/
logisticUtilities/ , MATLAB, 37 lineslogistFitDotsrev.m - utilities/
logisticUtilities/ , MATLAB, 37 lineslogistFitDotsrevNP.m - utilities/
logisticUtilities/ , MATLAB, 15 lineslogistValDotsrev.m - utilities/
logisticUtilities/ , MATLAB, 15 lineslogistValDotsrevNP.m - utilities/
nanse.m , MATLAB, 31 lines - utilities/
processNeuralData.m , MATLAB, 329 lines - utilities/
processNeuralDataErrorTr , MATLAB, 209 linesials.m - utilities/
processPupilBaseline.m , MATLAB, 108 lines, 1 match - utilities/
processPupilFull.m , MATLAB, 242 lines - utilities/
projectDefaults.m , MATLAB, 74 lines - utilities/
rocNFullOutput.m , MATLAB, 63 lines - LICENSE, License, 21 lines
The paper's code and data availability statement is in the Data section.
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;
- 39 scripts, each with its path and the digest of its content;
- 9 matches between paragraphs of the paper and lines of the code (method lexical-v1);
- neither the text of the paper nor the code itself.
Its JSON (tracing-map.json) is deposited on Zenodo with its DOI once the map is validated.
Data
Datasets cited
- doi:10.5061/
dryad.jh9w0vtsr , at Dryad; found in “Data availability”
Data availability
The data are available on Dryad: https://
The following dataset was generated:
McGaughey KD, Gold JI. 2026. Data from: Sensory adaptation and pupil-linked arousal support flexible evidence accumulation during perceptual decision making. Dryad Digital Repository.
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, pages, dates, 2 authors, 1 keyword, 8 MeSH terms, 3 funders, 81 references.
Cite
This paper
McGaughey, K. D., & Gold, J. I. (2026). Sensory adaptation and pupil-linked arousal support flexible evidence accumulation during perceptual decision making. eLife, 15, RP110685. https://
BibTeX
@article{mcgaughey2026se
author = {McGaughey, Kara D and Gold, Joshua I},
title = {{Sensory adaptation and pupil-linked arousal support flexible evidence accumulation during perceptual decision making}},
journal = {eLife},
year = {2026},
month = jul,
volume = {15},
pages = {RP110685},
publisher = {eLife Sciences Publications, Ltd},
issn = {2050-084X},
doi = {10.7554/
url = {https://
pmid = {42504837},
pmcid = {PMC13405624}
}
RIS
TY - JOUR
AU - McGaughey, Kara D
AU - Gold, Joshua I
TI - Sensory adaptation and pupil-linked arousal support flexible evidence accumulation during perceptual decision making
T2 - eLife
J2 - Elife
PY - 2026
DA - 2026/
VL - 15
SP - RP110685
SN - 2050-084X
PB - eLife Sciences Publications, Ltd
DO - 10.7554/
UR - https://
LA - en
ER -
CSL-JSON
{
"id": "10.7554/
"type": "article-journal",
"title": "Sensory adaptation and pupil-linked arousal support flexible evidence accumulation during perceptual decision making",
"container-title": "eLife",
"author": [
{
"family": "McGaughey",
"given": "Kara D"
},
{
"family": "Gold",
"given": "Joshua I"
}
],
"container-title-short":
"volume": "15",
"page": "RP110685",
"DOI": "10.7554/
"PMID": "42504837",
"PMCID": "PMC13405624",
"ISSN": "2050-084X",
"publisher": "eLife Sciences Publications, Ltd",
"URL": "https://
"language": "en",
"issued": {
"date-parts": [
[
2026,
7,
27
]
]
}
}
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/s41562-026-02533-1 [code]
- Fluctuations in arousal reflect latent state transitions that facilitate behavioural optimization.Journal: Nature human behaviourIn common: Optimization Toolbox, Statistics and Machine Learning Toolbox, cognitive, 9 references
- [2] doi:10.1126/sciadv.aed4172 [code]
- Locomotion optimizes sensory representations through a computational principle shared by rodents and primates.Journal: Science advancesIn common: 6 references
- [3] doi:10.1038/s41467-026-73032-0 [code]
- Fast efficient coding and sensory adaptation in gain-adaptive recurrent networks.Journal: Nature communicationsIn common: 6 references
- [4] doi:10.1371/journal.pone.0355165 [code]
- Pupillary dynamics during hands-off L2 driving and transitions of control under high cognitive load.Journal: PloS oneIn common: cognitive, 6 references
- [5] doi:10.7554/elife.109622 [code]
- Distinct involvements of the subthalamic nucleus subpopulations in reward-biased decision-making in monkeys.Journal: eLifeIn common: Statistics and Machine Learning Toolbox, non-human primate, cognitive, 1 reference, author Joshua I Gold
- [6] doi:10.7554/elife.99278 [code]
- Brain-wide arousal signals are segregated from movement planning in the superior colliculus of the macaque.Journal: eLifeIn common: non-human primate, 5 references
- [7] doi:10.1038/s41467-026-71725-0 [code]
- Interactions across hemispheres in prefrontal cortex reflect global cognitive processing.Journal: Nature communicationsIn common: Optimization Toolbox, Signal Processing Toolbox, Statistics and Machine Learning Toolbox, non-human primate, cognitive, 2 references
- [8] doi:10.1126/sciadv.aeg3535 [code]
- Undoing of firing rate adaptation enables invariant population codes.Journal: Science advancesIn common: 5 references
- [9] doi:10.1038/s41598-026-46731-3 [code]
- Investigating the test-retest reliability and behavioral correlates of pupil responses in the n-back task.Journal: Scientific reportsIn common: cognitive, 5 references
- [10] doi:10.1523/eneuro.0417-25.2026 [code]
- Learning and Motivation State Fluctuations from Motoric and Neurophysiologic Metrics during a Somatosensory Task in Mice.Journal: eNeuroIn common: Optimization Toolbox, Signal Processing Toolbox, Statistics and Machine Learning Toolbox, 2 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, 39 scripts, and 9 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:970c012f04e97919…
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.
