Distinct roles of neuronal phenotypes during neurofeedback adaptation.
The 3 matches
- [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] § Methods › Tunning curves ↔ processing/tuning/main_tuning_curve.py, lines 304–363 · score 0.55 · modulation depth, tunning curve, fitted
- [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
- # -*- coding: utf-8 -*-
- """
- Created on Thu Jan 23 16:30:42 2025
- @author: hanna
- """
- import numpy as np
- from scipy.optimize import curve_fit
- def degChange(PD1, PD2):
- radA = PD1 * (np.pi/180)
- radB = PD2 * (np.pi/180)
- a = np.array( (np.cos(radA),np.sin(radA)) )
- b = np.array( (np.cos(radB),np.sin(radB)) )
- delta = np.arccos(np.matmul(a,b)) * (180/np.pi)
- return(delta)
- def cosine_model(theta, b1, PD, b0):
- """
- Cosine function for firing rate fitting.
- theta: angles (in radians)
- b1: modulation (M)
- Modulation Depth (MD): b1/b0
- PD: phase shift (preferred direction)
- b0: baseline firing rate
- """
- return b0 + b1 * np.cos(theta - PD)
- def fit_cosine_model(theta_rad, m):
- """
- constraints:
- b1 (modulation): 0 to +inf
- PD (preferred direction): -2pi to +2pi
- b0 (mean firing rate): 0 to +inf
- """
- 'initial guesses'
- #modulation
- p0_b1 = (np.max(m) - np.min(m))/2
- #preferred direction
- p0_PD = theta_rad[np.where(m == np.max(m))[0][0]]
- #mean firing rate
- p0_b0 = np.mean(m)
- p0 = [p0_b1, p0_PD, p0_b0]
- 'fit model'
- params, pcov = curve_fit(cosine_model, theta_rad, m, p0, bounds=([0,-2*np.pi,0],[np.inf,2*np.pi,np.inf]))
- M, PD, meanFR = params
- y_est = cosine_model(theta_rad, *params)
- 'return parameters'
- return(M, M/meanFR, PD, meanFR, y_est)
- def compute_signed_degChange(PD1, PD2):
- #TODO: need to update for signed changes....?
- # if PD1 < 0:
- # PD1+=360
- # if PD2 < 0:
- # PD2+=360
- delta1 = PD1 - PD2
- if delta1 < 0:
- delta2 = delta1+360
- else:
- delta2 = delta1
- if delta2 == 0:
- sign_ = 0 #'NO DIFF'
- elif delta2 == 180.0:
- sign_ = 'DIIF EXACTLY 180'
- elif delta2 < 180:
- sign_ = -1 #cw
- elif delta2 > 180:
- sign_ = 1 #'ccw'
- return(sign_, degChange(PD1, PD2))
tuning_curve_fxns.py at commit 76d745b, under BSD-3-Clause · at the source
Overview
- Department of Biomedical Engineering, University of Texas at Austin, Austin, Texas, United States of America
- Department of Economics, University of Zurich, Zurich, Switzerland
- Neuroscience Center Zurich, University of Zurich and Swiss Federal Institute of Technology Zurich, Zurich, Switzerland
- Department of Electrical and Computer Engineering, University of Texas at Austin, Austin, Texas, United States of America
- Interdisciplinary Neuroscience Program, University of Texas at Austin, Austin, Texas, United States of America
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
76d745b7344818592b5e9d70096545b231099d79, 8 May 2025Availability: 1 check, the latest on 27 September 2026: the link answers
- 27 September 2026: the link answers
31 files
- functions/
behavior_fxns/ , Python, 366 linescompute_behavior.py - functions/
general_fxns/ , Python, 197 linescompute_stats.py - functions/
general_fxns/ , Python, 77 linesget_trial_inds.py - functions/
general_fxns/ , Python, 206 linesprocess_hdf.py - functions/
neural_fxns/ , Python, 152 linesfactor_analysis_fxns.py - functions/
neural_fxns/ , Python, 34 linesshared_space_alignment_f xns.py - functions/
neural_fxns/ , Python, 96 lines, 2 matchestuning_curve_fxns.py - main.py, Python, 139 lines
- plot_and_compute_stats/
paper1/ , Python, 1,197 linesfigure3_behavior.py - plot_and_compute_stats/
paper1/ , Python, 966 linesfigure4-5_neural.py - plot_and_compute_stats/
paper1/ , Python, 614 linesfigure6_relationship.py - plot_and_compute_stats/
paper1/ , Python, 1,186 linesfigure7.py - plot_and_compute_stats/
paper2/ , Python, 275 linesSUPPLEMENTAL_1_session-a verage_dPD.py - plot_and_compute_stats/
paper2/ , Python, 220 linesfigure2_example_cursor_t rajectories.py - plot_and_compute_stats/
paper2/ , Python, 617 linesfigure3_behavior.py - plot_and_compute_stats/
paper2/ , Python, 317 linesfigure4A-B_dPD_example.p y - plot_and_compute_stats/
paper2/ , Python, 284 linesfigure4C-D_dPD_all.py - plot_and_compute_stats/
paper2/ , Python, 237 linesfigure5_dPD_individual_s huffleEXTENDED.py - plot_and_compute_stats/
paper2/ , Python, 599 linesfigure6_MD.py - plot_and_compute_stats/
paper2/ , Python, 556 linesfigure7AC_ROTATION.py - plot_and_compute_stats/
paper2/ , Python, 557 linesfigure7BD_SHUFFLE.py - plot_and_compute_stats/
paper2/ , Python, 667 linesfigure8_relationship.py - processing/
FA/ , Python, 140 linescalcSSA.py - processing/
FA/ , Python, 636 linesmain_FA_TTT.py - processing/
FA_tuning/ , Python, 555 linesmain_FA_TTT_for_tuning.p y - processing/
behavior/ , Python, 106 linesmain_behavior.py - processing/
initial/ , Python, 139 linesmain_get_trial_inds.py - processing/
initial/ , Python, 193 linesmain_process_hdf.py - processing/
tuning/ , Python, 426 lines, 1 matchmain_tuning_curve.py - LICENSE.txt, License, 14 lines
- README.md, Text, 122 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;
- 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://
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://
BibTeX
@article{zhao2026distinc
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/
url = {https://
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/
VL - 21
IS - 7
SP - e0351053
SN - 1932-6203
PB - PLOS
DO - 10.1371/
UR - https://
LA - en
ER -
CSL-JSON
{
"id": "10.1371/
"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":
"volume": "21",
"issue": "7",
"page": "e0351053",
"DOI": "10.1371/
"PMID": "42430410",
"PMCID": "PMC13354095",
"ISSN": "1932-6203",
"publisher": "PLOS",
"URL": "https://
"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 oneIn 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 communicationsIn 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 neuroscienceIn 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 reportsIn 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 neuroscienceIn 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 communicationsIn 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 communicationsIn 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: eLifeIn common: statsmodels, seaborn, scikit-learn, 4 other tools, 1 reference
- [9] doi:10.1126/sciadv.aef0343 [code]
- Learning induces activation-mechanism-dep
endent neural plasticity in an intracortical microstimulation task. Journal: Science advancesIn 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.
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, 29 scripts, and 3 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:a4e98cf3582a07a3…
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.
