OSCR

Dissociable roles of prefrontal plasticity in decision-making strategy and execution of habitual behavior.

Code ↔ Paper

The paper beside its authors' code: matches between them have not been computed for this paper yet.

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

Jupyter notebook · 176 lines · 4.2 KB · MIT

  1. # %%
  2. import pandas as pd
  3. import numpy as np
  4. import os
  5. import glob
  6. import openpyxl
  7. # %%
  8. path = r"data/sample1"
  9. outpath = os.path.join(path, "result")
  10. if os.path.exists(outpath):
  11. pass
  12. else:
  13. os.mkdir(outpath)
  14. fpath = os.path.join(path, "C.csv")
  15. wpath = os.path.join(path, "Events.csv")
  16. # %%
  17. df_in = pd.read_csv(fpath, index_col=0)
  18. # %%
  19. df_w = pd.read_csv(wpath)
  20. # %%
  21. # Unit ID
  22. df_f_id = df_in.iloc[:,0]
  23. df_f_id = df_f_id.drop_duplicates()
  24. l_id = df_f_id.T.tolist()
  25. # %%
  26. df_w_entry_all = df_w.iloc[:,0]
  27. df_w_entry_all = df_w_entry_all.dropna(how="all")
  28. list_w_entry_all = df_w_entry_all.tolist()
  29. list_w_entry_all = [i for i in list_w_entry_all if i != 0]
  30. # %%
  31. ### Rewarded Entry
  32. df_w_entry = df_w.iloc[:,1]
  33. df_w_entry = df_w_entry.dropna(how="all")
  34. l_entry = df_w_entry.T.tolist()
  35. l_entry = [i for i in l_entry if i != 0]
  36. # %%
  37. # Rewarded Entry End
  38. df_w_entryend = df_w.iloc[:,4]
  39. df_w_entryend = df_w_entryend.dropna(how="all")
  40. l_entryend = df_w_entryend.T.tolist()
  41. l_entryend = [i for i in l_entryend if i != 0]
  42. # %%
  43. df_w_press_all = df_w.iloc[:,2]
  44. df_w_press_all = df_w_press_all.dropna(how="all")
  45. list_w_press_all = df_w_press_all.tolist()
  46. # %%
  47. ### Press initiation
  48. df_w_press = df_w.iloc[:,3]
  49. df_w_press = df_w_press.dropna(how="all")
  50. l_press_init = df_w_press.tolist()
  51. l_press_init = [i for i in l_press_init if i != 0]
  52. for entry in list_w_entry_all:
  53. pre = entry - 17
  54. post = entry
  55. for press in l_press_init:
  56. if press > pre and press < post:
  57. l_press_init.remove(press)
  58. # %%
  59. ### Press end
  60. l_press_end =[]
  61. for press in l_press_init:
  62. for press2 in list_w_press_all:
  63. if press2-press > 17:
  64. press_end = list_w_press_all[list_w_press_all.index(press2)-1]
  65. l_press_end.append(press_end)
  66. break
  67. # %%
  68. ### SD normalized
  69. ### Rewarded Entry Whole
  70. df_e_add = pd.DataFrame()
  71. l_entry2 = []
  72. for i in range(len(l_entry)):
  73. l_entry2.append(int(l_entry[i]))
  74. l_entry2 = l_entry2[:-1]
  75. for entry in l_entry2:
  76. number = l_entry2.index(entry)
  77. e_end = l_entryend[number]
  78. f_pre1 = entry - 18 #Enter the desired number of frames.
  79. f_post1 = e_end + 1 #Enter the desired number of frames.
  80. l_e = []
  81. l_e_index = []
  82. for ID in l_id:
  83. # Variables
  84. df_ID_r = df_in.query("unit_id == @ID")
  85. df_ID = df_ID_r["frame"]
  86. df_ID_r = df_ID_r["C"]
  87. df_ID_z = ((df_ID_r)/ (df_ID_r.std()))
  88. df_ID = pd.concat([df_ID, df_ID_z], axis=1)
  89. df_add1 = df_ID.query("frame > @f_pre1 & frame < @f_post1")
  90. df_add1 = df_add1.reset_index()
  91. df_add1_n = df_add1["C"]
  92. l_e.append(df_add1_n[17:].mean())
  93. l_e_index.append("Mean_" + str(ID))
  94. else:
  95. sr_e = pd.Series(l_e, index = l_e_index)
  96. df_e_add = pd.concat([df_e_add, pd.DataFrame([sr_e])], axis=0)
  97. else:
  98. df_e_add = df_e_add.T
  99. df_e_add.columns = l_entry2
  100. spath_e = os.path.join(outpath, "Entry_result.xlsx")
  101. df_e_add.to_excel(spath_e)
  102. # %%
  103. ### SD normalized
  104. ### Press
  105. df_p_add = pd.DataFrame()
  106. l_press_i = []
  107. l_press_e = []
  108. for i in range(len(l_press_end)):
  109. l_press_e.append(int(l_press_end[i]))
  110. l_press_i.append(int(l_press_init[i]))
  111. for press in l_press_i:
  112. number = l_press_i.index(press)
  113. p_end = l_press_end[number]
  114. f_pre1 = press - 35 #Enter the desired number of frames.
  115. f_post1 = p_end + 18 #Enter the desired number of frames.
  116. l_p = []
  117. l_p_index = []
  118. for ID in l_id:
  119. df_ID_r = df_in.query("unit_id == @ID")
  120. df_ID = df_ID_r["frame"]
  121. df_ID_r = df_ID_r["C"]
  122. df_ID_z = ((df_ID_r)/ (df_ID_r.std()))
  123. df_ID = pd.concat([df_ID, df_ID_z], axis=1)
  124. df_add1 = df_ID.query("frame > @f_pre1 & frame < @f_post1")
  125. df_add1 = df_add1.reset_index()
  126. df_add1_n = df_add1["C"]
  127. l_p.append(df_add1_n[17:].mean())
  128. l_p_index.append("Mean_" + str(ID))
  129. else:
  130. sr_p = pd.Series(l_p, index = l_p_index)
  131. df_p_add = pd.concat([df_p_add, pd.DataFrame([sr_p])], axis=0)
  132. else:
  133. df_p_add = df_p_add.T
  134. df_p_add.columns = l_press_i
  135. spath_e2 = os.path.join(outpath, "Press_result.xlsx")
  136. df_p_add.to_excel(spath_e2)

FIg5&7_Event_extraction.ipynb at commit 2c6a061, under MIT · at the source

Overview

Authors: Nozomi Asaoka1, Diane Pagano1, Yasunori Hayashi1
  1. Department of Pharmacology, Kyoto University Graduate School of Medicine,Kyoto, Japan
Institutions: Kyoto University (Japan)
Journal: Nature communications, volume 17, issue 1, article 6822
Dates: received 26 August 2025; accepted 6 July 2026; published online 27 July 2026
Type: Research article · Language: English
License: CC BY-NC-ND
Identifiers: DOI 10.1038/s41467-026-75706-1 · PMID 42509234 · PMCID PMC13408161 · OpenAlex W7171429318
Open access: gold, a free copy (OpenAlex)
Status: code verified
Categories: mouse (organism), cognitive (subfield)
Methods: Statistics, Machine learning, Preprocessing, Evoked potentials, fMRI & imaging
Keywords: Cognitive neuroscience, Synaptic plasticity
MeSH: Decision Making*, Habits*, Neuronal Plasticity*, Prefrontal Cortex*, Animals, Behavior, Animal, Male, Mice, Mice, Inbred C57BL, Motivation (* major topic)
Topic: Neurotransmitter Receptor Influence on Behavior (Cellular and Molecular Neuroscience, Neuroscience), according to OpenAlex
Citations: not cited yet (Europe PMC); 77 references in the paper
Research resources: Male C57BL/6J mice RRID:IMSR_JAX:000664

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.

Nozomi-Asaoka/Custom-code-for-Asaoka-et-al-2026

License: MIT
State: the link answers, verified on 27 September 2026
Evidence: files inventoried
Commit: 2c6a0619548ce23514943ee7c35ab83d8bbc3e20, 3 July 2026
Languages: Jupyter (3)
Size: 9 files, 3 scripts
Software Heritage: not archived
Found in: “Code availability”
Holds: README, license file, 3 notebooks
Not found: CITATION.cff, environment file, tests, continuous integration, documentation
Tools: NumPy (3 files), pandas (3 files), Matplotlib (2 files), scikit-learn (2 files), SciPy (1 file)
Availability: 1 check, the latest on 27 September 2026: the link answers
  • 27 September 2026: the link answers
5 files

Code availability statement

The paper has a code availability statement. Its license (CC BY-NC-ND) does not allow reproducing it here; in short, from what the harvester recognized in it:

Read it in the paper: doi.org/10.1038/s41467-026-75706-1.

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;
  • 3 scripts, each with its path and the digest of its content;
  • no match between paragraphs and code yet;
  • 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 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 says that the data are available on request

Read it in the paper: doi.org/10.1038/s41467-026-75706-1.

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, issue, pages, dates, 3 authors, 2 keywords, 10 MeSH terms, 9 funders, 77 references, 1 RRID.

Cite

This paper

Asaoka, N., Pagano, D., & Hayashi, Y. (2026). Dissociable roles of prefrontal plasticity in decision-making strategy and execution of habitual behavior. Nature communications, 17(1), 6822. https://doi.org/10.1038/s41467-026-75706-1

BibTeX

@article{asaoka2026dissociable,
author = {Asaoka, Nozomi and Pagano, Diane and Hayashi, Yasunori},
title = {{Dissociable roles of prefrontal plasticity in decision-making strategy and execution of habitual behavior}},
journal = {Nature communications},
year = {2026},
month = jul,
volume = {17},
number = {1},
pages = {6822},
publisher = {Nature Publishing Group},
issn = {2041-1723},
doi = {10.1038/s41467-026-75706-1},
url = {https://doi.org/10.1038/s41467-026-75706-1},
pmid = {42509234},
pmcid = {PMC13408161}
}

RIS

TY - JOUR
AU - Asaoka, Nozomi
AU - Pagano, Diane
AU - Hayashi, Yasunori
TI - Dissociable roles of prefrontal plasticity in decision-making strategy and execution of habitual behavior
T2 - Nature communications
J2 - Nat Commun
PY - 2026
DA - 2026/07/27
VL - 17
IS - 1
SP - 6822
SN - 2041-1723
PB - Nature Publishing Group
DO - 10.1038/s41467-026-75706-1
UR - https://doi.org/10.1038/s41467-026-75706-1
LA - en
ER -

CSL-JSON

{
"id": "10.1038/s41467-026-75706-1",
"type": "article-journal",
"title": "Dissociable roles of prefrontal plasticity in decision-making strategy and execution of habitual behavior",
"container-title": "Nature communications",
"author": [
{
"family": "Asaoka",
"given": "Nozomi"
},
{
"family": "Pagano",
"given": "Diane"
},
{
"family": "Hayashi",
"given": "Yasunori"
}
],
"container-title-short": "Nat Commun",
"volume": "17",
"issue": "1",
"page": "6822",
"DOI": "10.1038/s41467-026-75706-1",
"PMID": "42509234",
"PMCID": "PMC13408161",
"ISSN": "2041-1723",
"publisher": "Nature Publishing Group",
"URL": "https://doi.org/10.1038/s41467-026-75706-1",
"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.7554/elife.106032 [code]
Neural signatures of model-based and model-free reinforcement learning across prefrontal cortex and striatum.
Journal: eLife
In common: scikit-learn, pandas, SciPy, 2 other tools, cognitive, 6 references
[2] doi:10.1016/j.celrep.2026.117454 [code]
Model-based and model-free valuation signals in the human brain vary markedly in relation to individual differences in behavioral control.
Journal: Cell reports
In common: pandas, Matplotlib, NumPy, cognitive, 4 references
[3] doi:10.1371/journal.pbio.3003824 [code]
Flexible goal learning involves coordinated population activity in dCA1 and medial orbitofrontal cortex.
Journal: PLoS biology
In common: scikit-learn, pandas, SciPy, 2 other tools, 3 references
[4] doi:10.1126/sciadv.aeb5842 [code]
Regulation of autism-related self-injurious behavior by electrical stimulation of corticostriatal circuits in mice and humans.
Journal: Science advances
In common: SciPy, NumPy, mouse, 4 references
[5] doi:10.1371/journal.pbio.3003829 [code]
Identity-specific reward expectations in orbitofrontal cortex guide goal-directed choices.
Journal: PLoS biology
In common: pandas, SciPy, Matplotlib, 1 other tool, cognitive, 3 references
[6] doi:10.3389/fnins.2026.1803154 [code]
Multimodal machine learning reveals neurobiological signatures of binge-type eating disorders.
Journal: Frontiers in neuroscience
In common: scikit-learn, pandas, SciPy, 2 other tools, 2 references
[7] doi:10.1126/sciadv.aec3961 [code]
Linking functional and structural dendritic spine remodeling during fear learning and extinction in vivo.
Journal: Science advances
In common: pandas, SciPy, Matplotlib, 1 other tool, cognitive, mouse, 2 references
[8] doi:10.1038/s41467-026-74153-2 [code]
Regional, functional and transcriptomic decoding of multidimensional brain structure alterations in obsessive-compulsive disorder.
Journal: Nature communications
In common: scikit-learn, pandas, SciPy, 2 other tools, 2 references
[9] doi:10.1038/s41593-026-02253-9 [code]
Genoarchitecture and input-output organization of the mouse basal ganglia and thalamic parafascicular nucleus.
Journal: Nature neuroscience
In common: scikit-learn, pandas, SciPy, 2 other tools, mouse, 2 references
[10] doi:10.1038/s42003-026-10132-z [code]
Hippocampal criticality tracks cognitive demand and shifts with memory impairment.
Journal: Communications biology
In common: pandas, SciPy, Matplotlib, 1 other tool, cognitive, mouse, 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.

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.