Distinct roles of neuronal phenotypes during neurofeedback adaptation.
2 blocks of code here have a permanent identifier (oscr:b:…), listed with the matches below: citable for good, with a page of its own. Select a match and press Cite to copy it. What a block identifier is.
The 3 matches
- [1] § Methods › Tunning curves ↔ functions/neural_fxns/tuning_curve_fxns.py, lines 23 to 32 · score 0.58 · modulation depth, tunning curve, firing rate, fitted · block
oscr:b:2C0MZ7NTJAQV3-J· Report a mismatch - [2] § Methods › Tunning curves ↔ processing/tuning/main_tuning_curve.py, lines 304 to 363 · score 0.55 · modulation depth, tunning curve, fitted · block
oscr:b:AF9X9E088EZKV-M· Report a mismatch - [3] § Methods › Tunning curves ↔ functions/neural_fxns/tuning_curve_fxns.py, lines 23 to 32 · score 0.54 · cosine function, tuning curve, fit, neural · block
oscr:b:2C0MZ7NTJAQV3-J· Report a mismatch
Paper
Loaded from Europe PMC by your browser; OSCR does not store it: 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.0314268 [code]
- Multiscale effective connectivity analysis of brain activity using neural ordinary differential equations.Journal: PloS oneIn common: Matplotlib, NumPy, 11 references, 2 authors
- [2] 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
- [3] 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
- [4] doi:10.1038/s41467-023-43712-2 [code]
- Static and dynamic coding in distinct cell types during associative learning in the prefrontal cortex.Journal: Nature communicationsIn common: non-human primate, 10 references
- [5] doi:10.1038/s41598-022-20218-3
- Selective modulation of cortical population dynamics during neuroprosthetic skill learning.Journal: Scientific reportsIn common: non-human primate, 10 references
- [6] doi:10.1038/s41586-024-08193-3 [code]
- A combinatorial neural code for long-term motor memory.Journal: NatureIn common: 7 references
- [7] doi:10.7554/elife.89421 [code]
- An emerging view of neural geometry in motor cortex supports high-performance decoding.Journal: eLifeIn common: seaborn, scikit-learn, pandas, 3 other tools, non-human primate, 4 references
- [8] doi:10.1371/journal.pbio.3001642 [code]
- Distinct neuronal types contribute to hybrid temporal encoding strategies in primate auditory cortex.Journal: PLoS biologyIn common: statsmodels, scikit-learn, pandas, 3 other tools, non-human primate, 3 references
- [9] doi:10.1523/eneuro.0265-22.2022 [code]
- Cortical Pyramidal and Parvalbumin Cells Exhibit Distinct Spatiotemporal Extracellular Electric Potentials.Journal: eNeuroIn common: seaborn, scikit-learn, pandas, 3 other tools, 4 references
- [10] doi:10.7554/elife.93060 [code]
- Aligned and oblique dynamics in recurrent neural networks.Journal: eLifeIn common: seaborn, scikit-learn, pandas, 3 other tools, 4 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, 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:9375479067c7c8f9…
Add the badge to the code's README
If you are an author or a maintainer of this paper's code, you can add this badge. It says what OSCR knows of the paper (its code, its validated tracing map) and links the code to this page. Paste one of these snippets under the README's title. Keep the two marks around it, so that the badge can be replaced in place and is never added twice. OSCR changes nothing in your repository.
Markdown
<!-- oscr-badge:start -->
[](https://openscicode.org/badge/doi/10.1371/journal.pone.0351053)
<!-- oscr-badge:end -->reStructuredText
.. oscr-badge:start
.. image:: https://openscicode.org/badge/doi/10.1371/journal.pone.0351053.svg
:target: https://openscicode.org/badge/doi/10.1371/journal.pone.0351053
:alt: OSCR
.. oscr-badge:endHTML
<!-- oscr-badge:start -->
<a href="https://openscicode.org/badge/doi/10.1371/journal.pone.0351053"><img src="https://openscicode.org/badge/doi/10.1371/journal.pone.0351053.svg" alt="OSCR"></a>
<!-- oscr-badge:end -->On GitHub, open the README, choose Edit (the pencil), paste the snippet under the title, then "Commit changes".
If you choose to, you can have the badge kept up to date for you, with oscr badge --write from the command line or with the GitHub Action in your repository's workflows. Every other form and option (a card, AsciiDoc, LaTeX, shields.io) is on the badge 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: code errors and mismatches between the code and the paper about this paper and its code, from readers and its authors, beside the paper and its tracing map.
Report a mismatch between the code and the paper · Report a code error (signed in)
Reproductions: reports from readers who ran the authors' code and did not get the paper's result, what they ran, with which environment, commit and data.
Report a reproduction failure (signed in)
Versions of its code: the releases of its code tied to a version of this paper (the preprint, the accepted manuscript, the version of record…), each with the tracing map versioned with it.
Activity: what happens around this paper: new versions of its record, its map's validation, discussions and reproductions. It opens with sign-in.
