Dataset of cortical and subcortical single neuron activity during value-based tasks in macaque monkey.
The 9 matches
- [1] § Data Records › Neural variables ↔ spk_qc.m, lines 92–175 · score 0.80 · firing_rate, peak amplitude, peak noise, noise overlap, SNR, isolation
- [2] § Data Records ↔ spk_qc.m, lines 92–175 · score 0.73 · peak amplitude, peak noise, noise overlap, firing rate, rounded, isolation
- [3] § Data Records ↔ bhv_qc.m, lines 50–110 · score 0.68 · proba_1FC, t_evt, AFC task, J2, J1, 2afc
- [4] § Data Records › Neural variables ↔ spk_peth.m, lines 48–184 · score 0.67 · avg_waveform, clust_id, firing rate, ch, timestamps, Spike
- [5] § Methods › Behavioral tasks ↔ bhv_qc.m, lines 1–48 · score 0.62 · AFC_dyn, AFC task, Behavioral
- [6] § Data Records › Behavioral variables ↔ bhv_qc.m, lines 50–110 · score 0.56 · proba_1FC, t_evt, variable, 2afc, trialtype, probability
- [7] § Methods › Behavioral tasks ↔ bhv_qc.m, lines 1–48 · score 0.55 · AFC_dyn, behavioral
- [8] § Usage Notes › Dynamic task trials ↔ spk_peth.py, lines 109–116 · score 0.50 · stimulus onset, t_evt, timestamps, event
- [9] § Methods › Defining neuroanatomical boundaries ↔ spk_qc.m, lines 1–90 · score 0.50 · VaVb, DC, DR
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 · 239 lines · 11 KB · no license · 4 matches
- %% behavioral analyses for 1FC and 2AFC tasks
- clear
- pathspk = 'path\of\your\directory\spk\';
- list = dir([pathspk '*_spk.mat']);
- % reorder files by dates
- for i = 1 : length(list)
- dates(i) = datenum(list(i).name(2:7),'mmddyy');
- end
- [~,idx] = sort(dates);
- list = list(idx);
- all_pbs = 10:10:90;
- tasks = {'1FC' '2AFC'};
- norm = @(data) -1+((data-min(data))*2)/(max(data)-min(data)) ;
- prop_completed = NaN(length(list),2);
- nb_trials = NaN(length(list),4);
- rt_probas = NaN(length(list),length(all_pbs));
- rt_lm = table(); rt_tstat=table();
- perf_2AFC = table();
- for sess = 1:length(list)
- clearvars -except sess list pathspk prop_completed all_pbs rt_probas rt_lm rt_tstat names tasks nb_trials norm perf_2AFC all_task_patterns
- %- load behav data for that session
- disp(['Processing session ' num2str(sess) ' of ' num2str(length(list)) '...'])
- load([pathspk list(sess).name],'t_evt','trialtype');
- completed_tr = ~trialtype.brk; %- completed trials
- task = trialtype.task; %- task id (1FC or 2AFC)
- nb_trials(sess,:) = [sum(completed_tr & task==tasks(1)), sum(completed_tr & task==tasks(2)) , sum(completed_tr & task=='1FC_dyn') , sum(completed_tr & task=='2AFC_dyn')];
- names(sess,1) = list(sess).name(1);
- % find the patterns of trials performed (count number of trials performed IN A ROW for each task)
- % For each change in task, count number of trials performed and combine into a string (e.g., '1FC_99')
- change_task = [1 ; find(diff(double(task))~=0)+1 ; length(task)+1];
- task_pattern = cell(length(change_task)-1,1); % Preallocate cell array for combined strings
- for c = 1:length(change_task)-1
- curr_task = task(change_task(c)); % Get current task name
- n_trials = sum(completed_tr(change_task(c):change_task(c+1)-1));
- task_pattern{c} = sprintf('%s_%d', curr_task, n_trials);
- end
- % Store task pattern for each session
- if sess == 1
- all_task_patterns = cell(length(list),1);
- end
- all_task_patterns{sess} = task_pattern;
- %- proportion of completed trials for each task
- for t = 1 : length(tasks)
- if sum(task==tasks(t))<50
- continue
- end
- prop_completed(sess,t) = mean(completed_tr(task==tasks(t)));
- end
- if sum(task==tasks(1))>50 % for 1FC task
- %- reaction times depending on probability/flavor for 1FC task
- rt = t_evt.resp_fix - t_evt.resp_on;
- rt = rt(completed_tr & task==tasks(1)) ; %- keep only completed trials of 1FC
- proba = trialtype.proba_1FC(completed_tr & task==tasks(1)); %- get proba
- flavor = trialtype.flavor_1FC(completed_tr & task==tasks(1)); %- get flavor
- % avg rt per proba
- for pb = 1 : length(all_pbs)
- rt_probas(sess,pb) = mean(log(1000*rt(proba==all_pbs(pb))));
- end
- %- anova explaining rt with proba and flavor
- tbl = table(rt,proba,flavor,'VariableNames',{'rt','proba','flavor'});
- lm = fitglm(tbl,'rt ~ proba + flavor');
- rt_lm = [rt_lm ; array2table([lm.Coefficients.pValue' strcmp(list(sess).name(1),'M')],"VariableNames",[lm.CoefficientNames {'monkey'}])];
- rt_tstat = [rt_tstat ; array2table([lm.Coefficients.tStat' strcmp(list(sess).name(1),'M')],"VariableNames",[lm.CoefficientNames {'monkey'}])];
- end
- if sum(task==tasks(2))>50 % for 2AFC task
- %- performance depending on probability/flavor for 2AFC task
- % Identify trials with different flavors
- diff_fl = trialtype.flavorL_2AFC ~= trialtype.flavorR_2AFC;
- trialtype.unchosenflavor_2AFC(trialtype.chosenside_2AFC=='right') = trialtype.flavorL_2AFC(trialtype.chosenside_2AFC=='right');
- trialtype.unchosenflavor_2AFC(trialtype.chosenside_2AFC=='left') = trialtype.flavorR_2AFC(trialtype.chosenside_2AFC=='left');
- probaJ1 = NaN(numel(trialtype.task),1);
- probaJ2 = NaN(numel(trialtype.task),1);
- probaJ1(trialtype.chosenflavor_2AFC=='J1') = trialtype.chosenproba_2AFC(trialtype.chosenflavor_2AFC=='J1');
- probaJ1(trialtype.unchosenflavor_2AFC=='J1') = trialtype.unchosenproba_2AFC(trialtype.unchosenflavor_2AFC=='J1');
- probaJ2(trialtype.chosenflavor_2AFC=='J2') = trialtype.chosenproba_2AFC(trialtype.chosenflavor_2AFC=='J2');
- probaJ2(trialtype.unchosenflavor_2AFC=='J2') = trialtype.unchosenproba_2AFC(trialtype.unchosenflavor_2AFC=='J2');
- choice = trialtype.chosenflavor_2AFC == 'J1'; % choice 1 or 2
- keepme = ~isnan(probaJ1) & ~isnan(probaJ2) & diff_fl; % remove NaN values and same flavor trials
- probaJ2 = probaJ2(keepme);
- probaJ1 = probaJ1(keepme);
- choice = choice(keepme);
- logpb = log(probaJ1 ./ probaJ2);
- T = table(choice==1,logpb,norm(probaJ1),norm(probaJ2),'VariableNames',{'choice','prob','probaJ1','probaJ2'}); % create a table with choice and log odds of the probabilities
- nTr2keep = 200; %- to have similar range of values for tstat
- if length(T.choice)>nTr2keep
- r = randperm(length(T.choice),nTr2keep);
- T = T(r,:);
- end
- mdl = fitglm(T,'choice ~ 1 + prob','Distribution','binomial','Link','logit','LikelihoodPenalty','jeffreys-prior');
- % get proba influence on choice
- proba_tstat = mdl.Coefficients.tStat(2);
- proba_r2 = mdl.Rsquared.Adjusted;
- proba_est = mdl.Coefficients.Estimate(2);
- proba_p = mdl.Coefficients.pValue(2);
- %- preference from log ratio model
- bias_point = -mdl.Coefficients{'(Intercept)','Estimate'} / mdl.Coefficients{'prob','Estimate'};
- %- predicted values
- xrange = linspace(-log(90/10),log(90/10),200)'; % covers proba range (log(90/10) ≈ 2.197)
- tab = table(xrange,'VariableNames',{'prob'});
- [predictedP,~] = predict(mdl,tab);
- % make a table with session name, choice bias, probability model metrics, and predictedP
- perf_2AFC = [perf_2AFC ; table({list(sess).name(1:7)}, {names(sess)}, proba_r2 , proba_p, proba_tstat, proba_est, bias_point, {predictedP}, ...
- 'VariableNames', {'session', 'monkey','proba_r2','proba_p', 'proba_tstat', 'proba_est', 'bias_point','predictedP'})];
- end
- end
- %- boxplot the proportion of completed trials
- col = [51 160 44 ; 106 61 154]/255;
- mks={'M' 'X'};
- figure;hold on
- for t = 1 : 2
- for m=1:length(mks)
- wdth = 0.3;
- perf2plot = prop_completed(ismember(names,mks(m)),t);
- yl = t+(m-1)/3-((1/3)/2);
- quartiles = quantile(perf2plot, [0.25 0.75 0.5]);
- iqr = quartiles(2) - quartiles(1);
- Xs = sort(perf2plot);
- whiskers(1) = min(Xs(Xs > (quartiles(1) - (1.5 * iqr))));
- whiskers(2) = max(Xs(Xs < (quartiles(2) + (1.5 * iqr))));
- Y = [quartiles whiskers];
- jit = (rand(size(perf2plot)) - 0.5) * (0.65*wdth);
- drops_pos = jit + yl ;
- box_pos = [Y(1) yl(1)-(wdth * 0.5) Y(2)-Y(1) wdth];
- curr_col = col(m,:);
- h{2} = scatter(perf2plot, drops_pos,'SizeData',10,'MarkerEdgeColor','none','MarkerFaceColor',curr_col);
- h{3} = rectangle('Position', box_pos,'EdgeColor', curr_col(1,:),'LineWidth', 1.5);
- h{4} = line([Y(3) Y(3)], [yl(1)-(wdth * 0.5) yl(1) + (wdth * 0.5)], 'col', curr_col(1,:), 'LineWidth', 2);
- h{5} = line([Y(2) Y(5)], [yl(1) yl(1)], 'col', curr_col(1,:), 'LineWidth', 1);
- h{6} = line([Y(1) Y(4)], [yl(1) yl(1)], 'col', curr_col(1,:), 'LineWidth', 1);
- end
- end
- xlim([0.5 1])
- view([90 -90])
- set(gca,'YTick',1:2,'YTickLabel',{'1FC' '2AFC'},'FontSize',14)
- ylabel('task')
- xlabel('proportion of completed trials')
- title('Proportion of completed trials in 1FC and 2AFC tasks')
- % plot average rt over probas with error bars
- figure;hold on
- subplot(3,2,1);plot(all_pbs,nanmean(rt_probas(names(:,1)=='M',:)),'.-','Color',[51 160 44]/255,'LineWidth',2,'MarkerSize',20);hold on
- errorbar(all_pbs,nanmean(rt_probas(names(:,1)=='M',:)),nanstd(rt_probas(names(:,1)=='M',:))/sqrt(sum(names(:,1)=='M')),'Color',[51 160 44]/255)
- set(gca,'FontSize',14)
- xlabel('probability');ylabel('log(RT)')
- subplot(3,2,2);plot(all_pbs,nanmean(rt_probas(names(:,1)=='X',:)),'.-','Color',[106 61 154]/255,'LineWidth',2,'MarkerSize',20);hold on
- errorbar(all_pbs,nanmean(rt_probas(names(:,1)=='X',:)),nanstd(rt_probas(names(:,1)=='X',:))/sqrt(sum(names(:,1)=='X')),'Color',[106 61 154]/255)
- set(gca,'FontSize',14)
- xlabel('probability');ylabel('log(RT)')
- %- plot influence of proba on RT
- [cnts_M,xax] = hist(rt_tstat.proba(rt_tstat.monkey==true),[-5:0.5:5],'Normalization','probability');
- [cnts_X,xax] = hist(rt_tstat.proba(rt_tstat.monkey==false),[-5:0.5:5],'Normalization','probability');
- subplot(3,2,[3:6])
- line([0 0],[0 0.25],'Color','k','LineStyle','--','LineWidth',1); hold on ;box on
- bar(xax-0.1,cnts_M/sum(cnts_M),'FaceColor',[51 160 44]/255,'LineWidth',1,'BarWidth',0.35); hold on
- bar(xax+0.1,(cnts_X/sum(cnts_X)),'FaceColor',[106 61 154]/255,'LineWidth',1,'BarWidth',0.35); hold on
- set(gca,'FontSize',14)
- xlabel('t-stat')
- ylabel('proportion of sessions')
- title('t-value of proba effect on RT in 1FC task')
- % how many sessions in each monkey showed a sig rt effect of proba/flavor
- sum(rt_lm(rt_lm.monkey==true,:)<0.05)
- sum(rt_lm(rt_lm.monkey==false,:)<0.05)
- % plot perf_2AFC proba_tstat like previous figure as subplot(3,1,3)
- figure;
- monkey_names = {'M', 'X'};
- main_colors = containers.Map({'M','X'}, {[51 160 44]/255, [106 61 154]/255});
- % PredictedP curves and bias points for each monkey in subplot(3,1,[1 2])
- subplot(6,1,[1 2 3]);
- for i = 1:2
- hold on;
- idx = strcmp(perf_2AFC.monkey, monkey_names{i});
- if any(idx)
- preds = cat(2,perf_2AFC.predictedP{idx});
- plot(xrange, preds, '-', 'Color', [0.7 0.7 0.7], 'LineWidth', 1);
- plot(xrange, mean(preds,2), '-', 'Color', main_colors(monkey_names{i}), 'LineWidth', 2.5);
- ylim([0 1]);
- set(gca, 'YTick', [0 0.5 1], 'YTickLabel', {'0','0.5','1'}, 'FontSize', 16);
- end
- end
- hold off;
- xlim([-log(90/10), log(90/10)]);
- xlabel('log(probaJ1/probaJ2)', 'FontSize', 16);
- ylabel('P(choice J1)', 'FontSize', 16);
- % Histogram in subplot(3,1,3) using hist
- subplot(6,1,[5 6]);
- hold on; box on;
- edges = -5:0.5:10;
- [cnts_M,xax] = hist(perf_2AFC.proba_tstat(ismember(perf_2AFC.monkey,'M')), edges);
- [cnts_X,xax] = hist(perf_2AFC.proba_tstat(ismember(perf_2AFC.monkey,'X')), edges);
- bar(xax-0.1, cnts_M/sum(cnts_M), 'FaceColor', [51 160 44]/255, 'LineWidth', 1, 'BarWidth', 0.35);
- bar(xax+0.1, cnts_X/sum(cnts_X), 'FaceColor', [106 61 154]/255, 'LineWidth', 1, 'BarWidth', 0.35);
- line([0 0],[0 0.5],'Color','k','LineStyle','--','LineWidth',1);
- set(gca,'FontSize',14)
- xlabel('t-stat - log(probaJ1/probaJ2)')
- ylabel('proportion of sessions')
- hold off;
- ylim([0 0.5]);
- % # of sessions with sig effect of proba on 2AFC choice
- sum(perf_2AFC.proba_p(ismember(perf_2AFC.monkey,'M'))<0.05)
- sum(perf_2AFC.proba_p(ismember(perf_2AFC.monkey,'X'))<0.05)
- % highest pvalue
- max(perf_2AFC.proba_p)
bhv_qc.m at commit e0c7d4e, no license · at the source
Overview
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.
Repository
Its files are read in the Code ↔ Paper reader above, with 9 matches between paragraphs and lines of code.
RudebeckLab/FlavorProba-dataset
e0c7d4ec49abf35b334d1b8fddf7b84ebd7c79f3, 10 November 2025Availability: 1 check, the latest on 28 September 2026: the link answers
- 28 September 2026: the link answers
7 files
- bhv_qc.m, MATLAB, 239 lines, 4 matches
- find_sessions.m, MATLAB, 17 lines
- find_sessions.py, Python, 33 lines
- spk_peth.m, MATLAB, 184 lines, 1 match
- spk_peth.py, Python, 137 lines, 1 match
- spk_qc.m, MATLAB, 353 lines, 3 matches
- README.md, Text, 18 lines
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;
- 6 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
- zenodo:17524410, at Zenodo; found in “Data availability”
Data availability statement
The paper has a data availability statement. Its license (CC BY-NC-ND) does not allow reproducing it here; in short, from what the harvester recognized in it:
- it points to a dataset: Zenodo 17524410
Read it in the paper: doi.org/10.1038/s41597-026-07129-y.
Versions
The history of this record: each version stored by the harvester or made by a correction of its authors or of the maintainers of its code, and what changed in its facts. The texts of the paper (its abstract, its availability statements) are not part of it; versions that changed only those are not listed.
Version 1, 28 September 2026: the first record
Recorded: type, language, journal, volume, issue, pages, dates, 5 authors, 6 MeSH terms, 5 funders, 33 references.
Cite
This paper
London, L., Love, M., Zeisler, Z. R., Rudebeck, P. H., & Stoll, F. M. (2026). Dataset of cortical and subcortical single neuron activity during value-based tasks in macaque monkey. Scientific data, 13(1), 989. https://
BibTeX
@article{london2026datas
author = {London, Liza and Love, Marques and Zeisler, Zachary R and Rudebeck, Peter H and Stoll, Frederic M},
title = {{Dataset of cortical and subcortical single neuron activity during value-based tasks in macaque monkey}},
journal = {Scientific data},
year = {2026},
month = apr,
volume = {13},
number = {1},
pages = {989},
publisher = {Nature Publishing Group},
issn = {2052-4463},
doi = {10.1038/
url = {https://
pmid = {41922368},
pmcid = {PMC13338295}
}
RIS
TY - JOUR
AU - London, Liza
AU - Love, Marques
AU - Zeisler, Zachary R
AU - Rudebeck, Peter H
AU - Stoll, Frederic M
TI - Dataset of cortical and subcortical single neuron activity during value-based tasks in macaque monkey
T2 - Scientific data
J2 - Sci Data
PY - 2026
DA - 2026/
VL - 13
IS - 1
SP - 989
SN - 2052-4463
PB - Nature Publishing Group
DO - 10.1038/
UR - https://
LA - en
ER -
CSL-JSON
{
"id": "10.1038/
"type": "article-journal",
"title": "Dataset of cortical and subcortical single neuron activity during value-based tasks in macaque monkey",
"container-title": "Scientific data",
"author": [
{
"family": "London",
"given": "Liza"
},
{
"family": "Love",
"given": "Marques"
},
{
"family": "Zeisler",
"given": "Zachary R"
},
{
"family": "Rudebeck",
"given": "Peter H"
},
{
"family": "Stoll",
"given": "Frederic M"
}
],
"container-title-short":
"volume": "13",
"issue": "1",
"page": "989",
"DOI": "10.1038/
"PMID": "41922368",
"PMCID": "PMC13338295",
"ISSN": "2052-4463",
"publisher": "Nature Publishing Group",
"URL": "https://
"language": "en",
"issued": {
"date-parts": [
[
2026,
4,
1
]
]
}
}
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-026-72782-1 [code]
- Ventrolateral prefrontal cortex in macaques guides decisions in different learning conditions.Journal: Nature communicationsIn common: Statistics and Machine Learning Toolbox, non-human primate, 6 references
- [2] doi:10.1371/journal.pbio.3003829 [code]
- Identity-specific reward expectations in orbitofrontal cortex guide goal-directed choices.Journal: PLoS biologyIn common: Statistics and Machine Learning Toolbox, pandas, SciPy, 2 other tools, 4 references
- [3] doi:10.1038/s41467-026-74783-6 [code]
- Neural and computational correlates of strategic aborting and long-run policy optimization in the dorsolateral prefrontal cortex.Journal: Nature communicationsIn common: pandas, SciPy, Matplotlib, 1 other tool, non-human primate, 3 references
- [4] doi:10.1016/j.isci.2026.117492 [code]
- Neural subspace reorganization reflects value-based decision-making.Journal: iScienceIn common: pandas, SciPy, Matplotlib, 1 other tool, 3 references
- [5] doi:10.1038/s41467-026-75220-4 [code]
- Causal Dynamics of Social Gaze in Primate Prefrontal-Amygdala Networks Revealed by Dynamic Bayesian Modeling.Journal: Nature communicationsIn common: pandas, SciPy, Matplotlib, 1 other tool, non-human primate, 2 references
- [6] doi:10.1016/j.patter.2026.101590 [code]
- Density-based longitudinal neuron tracking in high-density electrophysiological recordings.Journal: Patterns (New York, N.Y.)In common: Statistics and Machine Learning Toolbox, pandas, SciPy, 2 other tools, 2 references
- [7] doi:10.1371/journal.pbio.3003824 [code]
- Flexible goal learning involves coordinated population activity in dCA1 and medial orbitofrontal cortex.Journal: PLoS biologyIn common: pandas, SciPy, Matplotlib, 1 other tool, 3 references
- [8] doi:10.1038/s41467-026-74347-8 [code]
- Compositionality of social gaze in the prefrontal-amygdala circuits.Journal: Nature communicationsIn common: pandas, SciPy, Matplotlib, 1 other tool, non-human primate, 2 references
- [9] doi:10.1002/hbm.70520
- Bridging Histology and Tractography: First In Vivo Visualization of Short-Range Prefrontal Connections Informed by Primate Tract-Tracing.Journal: Human brain mappingIn common: 4 references
- [10] doi:10.1126/sciadv.aef0343 [code]
- Learning induces activation-mechanism-dep
endent neural plasticity in an intracortical microstimulation task. Journal: Science advancesIn common: Statistics and Machine Learning Toolbox, pandas, SciPy, 2 other tools, 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: 1 repository of the authors' code, each at its verified commit and with its license, 6 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:1a8681973fa67da6…
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.
