OSCR

Distinct roles of neuronal phenotypes during neurofeedback adaptation.

Code ↔ Paper

3 matches between paragraphs of the paper and lines of its authors' code, computed by the harvester (lexical-v1). Click a colored paragraph or line to see its counterpart.

The 3 matches
  1. [1] § Methods › Tunning curves ↔ functions/neural_fxns/tuning_curve_fxns.py, lines 23–32 · score 0.58 · modulation depth, tunning curve, firing rate, fitted
  2. [2] § Methods › Tunning curves ↔ processing/tuning/main_tuning_curve.py, lines 304–363 · score 0.55 · modulation depth, tunning curve, fitted
  3. [3] § Methods › Tunning curves ↔ functions/neural_fxns/tuning_curve_fxns.py, lines 23–32 · score 0.54 · cosine function, tuning curve, fit, neural

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

Python · 96 lines · 1.9 KB · BSD-3-Clause · 2 matches

  1. # -*- coding: utf-8 -*-
  2. """
  3. Created on Thu Jan 23 16:30:42 2025
  4. @author: hanna
  5. """
  6. import numpy as np
  7. from scipy.optimize import curve_fit
  8. def degChange(PD1, PD2):
  9. radA = PD1 * (np.pi/180)
  10. radB = PD2 * (np.pi/180)
  11. a = np.array( (np.cos(radA),np.sin(radA)) )
  12. b = np.array( (np.cos(radB),np.sin(radB)) )
  13. delta = np.arccos(np.matmul(a,b)) * (180/np.pi)
  14. return(delta)
  15. def cosine_model(theta, b1, PD, b0):
  16. """
  17. Cosine function for firing rate fitting.
  18. theta: angles (in radians)
  19. b1: modulation (M)
  20. Modulation Depth (MD): b1/b0
  21. PD: phase shift (preferred direction)
  22. b0: baseline firing rate
  23. """
  24. return b0 + b1 * np.cos(theta - PD)
  25. def fit_cosine_model(theta_rad, m):
  26. """
  27. constraints:
  28. b1 (modulation): 0 to +inf
  29. PD (preferred direction): -2pi to +2pi
  30. b0 (mean firing rate): 0 to +inf
  31. """
  32. 'initial guesses'
  33. #modulation
  34. p0_b1 = (np.max(m) - np.min(m))/2
  35. #preferred direction
  36. p0_PD = theta_rad[np.where(m == np.max(m))[0][0]]
  37. #mean firing rate
  38. p0_b0 = np.mean(m)
  39. p0 = [p0_b1, p0_PD, p0_b0]
  40. 'fit model'
  41. params, pcov = curve_fit(cosine_model, theta_rad, m, p0, bounds=([0,-2*np.pi,0],[np.inf,2*np.pi,np.inf]))
  42. M, PD, meanFR = params
  43. y_est = cosine_model(theta_rad, *params)
  44. 'return parameters'
  45. return(M, M/meanFR, PD, meanFR, y_est)
  46. def compute_signed_degChange(PD1, PD2):
  47. #TODO: need to update for signed changes....?
  48. # if PD1 < 0:
  49. # PD1+=360
  50. # if PD2 < 0:
  51. # PD2+=360
  52. delta1 = PD1 - PD2
  53. if delta1 < 0:
  54. delta2 = delta1+360
  55. else:
  56. delta2 = delta1
  57. if delta2 == 0:
  58. sign_ = 0 #'NO DIFF'
  59. elif delta2 == 180.0:
  60. sign_ = 'DIIF EXACTLY 180'
  61. elif delta2 < 180:
  62. sign_ = -1 #cw
  63. elif delta2 > 180:
  64. sign_ = 1 #'ccw'
  65. return(sign_, degChange(PD1, PD2))

tuning_curve_fxns.py at commit 76d745b, under BSD-3-Clause · at the source

Overview

Authors: Yi Zhao1, Hannah M. Stealey1, Hung-Yun Lu1, Enrique Contreras-Hernandez1, Yin-Jui Chang1, Philippe N. Tobler2,3, Samantha R. Santacruz1,4,5
  1. Department of Biomedical Engineering, University of Texas at Austin, Austin, Texas, United States of America
  2. Department of Economics, University of Zurich, Zurich, Switzerland
  3. Neuroscience Center Zurich, University of Zurich and Swiss Federal Institute of Technology Zurich, Zurich, Switzerland
  4. Department of Electrical and Computer Engineering, University of Texas at Austin, Austin, Texas, United States of America
  5. Interdisciplinary Neuroscience Program, University of Texas at Austin, Austin, Texas, United States of America
Institutions: The University of Texas at Austin (United States); University of Zurich (Switzerland); ETH Zurich (Switzerland)
Journal: PloS one, volume 21, issue 7, article e0351053
Dates: received 2 June 2025; accepted 21 May 2026; published online 10 July 2026
Type: Research article · Language: English
License: CC BY
Identifiers: DOI 10.1371/journal.pone.0351053 · PMID 42430410 · PMCID PMC13354095 · OpenAlex W4410116391
Open access: gold, a free copy (OpenAlex)
Status: code verified
Categories: non-human primate (organism)
Methods: Machine learning, Single-unit activity, calcium imaging, Smoothing, state filtering, decompositions, Spectral & time-frequency
MeSH: Adaptation, Physiological*, Neurofeedback*, Neurons*, Animals, Brain-Computer Interfaces, Learning, Macaca mulatta, Male, Phenotype (* major topic)
Journal subjects: Biology and Life Sciences, Cell Biology, Cellular Types, Animal Cells, Neurons, Neuroscience, Cellular Neuroscience, Computational Biology, Computational Neuroscience, Single Neuron Function, Motor Neurons, Organisms, Eukaryota, Animals, Vertebrates, Amniotes, Mammals, Primates, Monkeys, Zoology, Neuronal Tuning, Anatomy, Nervous System, Motor System, Medicine and Health Sciences, Cognitive Science, Cognitive Psychology, Learning, Psychology, Social Sciences, Learning and Memory, Physiology, Electrophysiology, Membrane Potential, Action Potentials, Neurophysiology
Topic: Neurobiology and Insect Physiology Research (Cellular and Molecular Neuroscience, Neuroscience), according to OpenAlex
Funding: Whitehall Foundation (Whitehall Foundation, Inc.) (2022-12-071); NSF (2145412)
Citations: not cited yet (Europe PMC); 73 references in the paper

Abstract

Learning adaptation allows the brain to refine motor patterns in response to changing environments rapidly. While population-level neural dynamics and single-neuron activity in motor learning have been widely studied, the contributions of individual neuron types remain poorly understood. Here, we employed a brain-machine interface (BMI) task with perturbations of varying difficulty to investigate single-neuron dynamics underlying neurofeedback adaptation in two rhesus macaques. Cortical neurons were classified based on waveform shape into narrow waveform (NW) and broad waveform (BW) categories, representing putative inhibitory interneurons and excitatory pyramidal neurons, respectively. Compared to BW neurons, NW neurons were more active and more strongly involved in the learning process. Moreover, task difficulty modulated neural responsiveness and coordination within both neuron groups, highlighting differential neuron engagement during neurofeedback adaptation. Our findings provide novel insights into single-neuron mechanisms underlying neurofeedback adaptation and emphasize the distinct functional roles of neuronal phenotypes in rapid learning processes.

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 3 matches between paragraphs and lines of code.

hstealey/bci_analysis

License: BSD-3-Clause
State: the link answers, verified on 27 September 2026
Evidence: files inventoried
Commit: 76d745b7344818592b5e9d70096545b231099d79, 8 May 2025
Languages: Python (29)
Size: 72 files, 29 scripts
Software Heritage: not archived
Found in: “Data Availability”
Holds: README, license file, environment (requirements.txt)
Not found: CITATION.cff, tests, continuous integration, documentation
Tools: NumPy (28 files), pandas (23 files), SciPy (19 files), Matplotlib (17 files), seaborn (17 files), statsmodels (7 files), scikit-learn (1 file)
Availability: 1 check, the latest on 27 September 2026: the link answers
  • 27 September 2026: the link answers
31 files

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;
  • 29 scripts, each with its path and the digest of its content;
  • 3 matches between paragraphs of the paper and lines of the code (method lexical-v1);
  • neither the text of the paper nor the code itself.

Its JSON (tracing-map.json) is deposited on Zenodo with its DOI once the map is validated.

Data

No dataset and no data link were found in the paper.

Data Availability

Raw data is available by request from the corresponding author, and processed data from representative sessions is available on GitHub (https://github.com/hstealey/bci_analysis/DEMO_data). The complete dataset will be published in a figshare repository after the review process.

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 2, 28 September 2026

  • Authors: added Hung-Yun Lu (0000-0002-8951-773X); removed Hung-Yun Lu

Version 1, 27 September 2026: the first record

Recorded: type, language, journal, volume, issue, pages, dates, 7 authors, 9 MeSH terms, 2 funders, 71 references.

Cite

This paper

Zhao, Y., Stealey, H. M., Lu, H.-Y., Contreras-Hernandez, E., Chang, Y.-J., Tobler, P. N., & Santacruz, S. R. (2026). Distinct roles of neuronal phenotypes during neurofeedback adaptation. PloS one, 21(7), e0351053. https://doi.org/10.1371/journal.pone.0351053

BibTeX

@article{zhao2026distinct,
author = {Zhao, Yi and Stealey, Hannah M. and Lu, Hung-Yun and Contreras-Hernandez, Enrique and Chang, Yin-Jui and Tobler, Philippe N. and Santacruz, Samantha R.},
title = {{Distinct roles of neuronal phenotypes during neurofeedback adaptation}},
journal = {PloS one},
year = {2026},
month = jul,
volume = {21},
number = {7},
pages = {e0351053},
publisher = {PLOS},
issn = {1932-6203},
doi = {10.1371/journal.pone.0351053},
url = {https://doi.org/10.1371/journal.pone.0351053},
pmid = {42430410},
pmcid = {PMC13354095}
}

RIS

TY - JOUR
AU - Zhao, Yi
AU - Stealey, Hannah M.
AU - Lu, Hung-Yun
AU - Contreras-Hernandez, Enrique
AU - Chang, Yin-Jui
AU - Tobler, Philippe N.
AU - Santacruz, Samantha R.
TI - Distinct roles of neuronal phenotypes during neurofeedback adaptation
T2 - PloS one
J2 - PLoS One
PY - 2026
DA - 2026/07/10
VL - 21
IS - 7
SP - e0351053
SN - 1932-6203
PB - PLOS
DO - 10.1371/journal.pone.0351053
UR - https://doi.org/10.1371/journal.pone.0351053
LA - en
ER -

CSL-JSON

{
"id": "10.1371/journal.pone.0351053",
"type": "article-journal",
"title": "Distinct roles of neuronal phenotypes during neurofeedback adaptation",
"container-title": "PloS one",
"author": [
{
"family": "Zhao",
"given": "Yi"
},
{
"family": "Stealey",
"given": "Hannah M."
},
{
"family": "Lu",
"given": "Hung-Yun"
},
{
"family": "Contreras-Hernandez",
"given": "Enrique"
},
{
"family": "Chang",
"given": "Yin-Jui"
},
{
"family": "Tobler",
"given": "Philippe N."
},
{
"family": "Santacruz",
"given": "Samantha R."
}
],
"container-title-short": "PLoS One",
"volume": "21",
"issue": "7",
"page": "e0351053",
"DOI": "10.1371/journal.pone.0351053",
"PMID": "42430410",
"PMCID": "PMC13354095",
"ISSN": "1932-6203",
"publisher": "PLOS",
"URL": "https://doi.org/10.1371/journal.pone.0351053",
"language": "en",
"issued": {
"date-parts": [
[
2026,
7,
10
]
]
}
}

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.1371/journal.pone.0321830
Long-term neuron tracking reveals balance of stability and plasticity in functional properties.
Journal: PloS one
In common: 4 references, 3 authors
[2] doi:10.1038/s41467-026-76109-y [code]
Assistive algorithms influence neural representations in motor brain-computer interfaces.
Journal: Nature communications
In common: seaborn, scikit-learn, pandas, 3 other tools, non-human primate, 9 references
[3] doi:10.1038/s41593-026-02258-4 [code]
Laminar organization of cellular microcircuits modulating human interictal epileptiform discharges.
Journal: Nature neuroscience
In common: statsmodels, seaborn, scikit-learn, 4 other tools, 2 references
[4] doi:10.1016/j.celrep.2026.117420 [code]
Neural population dynamics of direct electrical stimulation of neocortex.
Journal: Cell reports
In common: statsmodels, seaborn, scikit-learn, 4 other tools, 2 references
[5] doi:10.1038/s41593-026-02333-w [code]
Learning shapes neural geometry in the primate prefrontal cortex.
Journal: Nature neuroscience
In common: seaborn, scikit-learn, pandas, 3 other tools, non-human primate, 2 references
[6] doi:10.1038/s41467-026-76104-3 [code]
Sensorimotor remapping drives task specialization in prefrontal cortex.
Journal: Nature communications
In common: statsmodels, seaborn, scikit-learn, 4 other tools, non-human primate, 1 reference
[7] doi:10.1038/s41467-026-76939-w [code]
HIPPIE: a generative model for electrophysiological analysis across species, technologies, and modalities.
Journal: Nature communications
In common: statsmodels, seaborn, scikit-learn, 4 other tools, non-human primate, 1 reference
[8] doi:10.7554/elife.111876 [code]
Distinct sensorimotor encoding in tuft dendrites and somata associated with action, correction, and learning.
Journal: eLife
In common: statsmodels, seaborn, scikit-learn, 4 other tools, 1 reference
[9] doi:10.1126/sciadv.aef0343 [code]
Learning induces activation-mechanism-dependent neural plasticity in an intracortical microstimulation task.
Journal: Science advances
In common: statsmodels, seaborn, scikit-learn, 4 other tools, 1 reference
[10] doi:10.1162/imag.a.1259 [code]
Neuronal avalanches as a predictive biomarker for guiding tailored BCI training programs.
Journal: Imaging neuroscience (Cambridge, Mass.)
In common: statsmodels, seaborn, scikit-learn, 4 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.

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.