OSCR

A midbrain circuit for high-fat-food induced conditioned taste aversion.

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; OSCR does not store it: doi.org · Europe PMC

The paper is loaded when this pane is shown.

The authors' code

MATLAB · 66 lines · 2.4 KB · no license

  1. function varName = TDMS_genvarname2(string,replaceStr,prependStr,alwaysPrepend)
  2. %GENVARNAME2: Outputs a valid variable name VARNAME
  3. %
  4. % GENVARNAME2(STRING,*REPLACESTR,*PREPENDSTR,*ALWAYSPREPEND) replaces invalid
  5. % characters in STRING with REPLACESTR. If the first letter is not
  6. % a letter, or ALWAYSPREPEND is true, then PREPENDSTR is prepended
  7. % to the variable name
  8. %
  9. % INPUTS
  10. % =======================================================================
  11. % STRING - input string to convert to safe variable name
  12. % *REPLACESTR - (default '_'), character to replace invalid values with
  13. % *PREPENDSTR - (default 'v'), value to prepend if first character is not
  14. % a letter or ALWAYSPREPEND is true
  15. % *ALWAYSPREPEND - (default true), if true, alwyays adds the PREPENDSTR
  16. %
  17. % EXAMPLES
  18. % ========================================
  19. % Example 1:
  20. % % always append is selected
  21. % % 'var' gets appended
  22. % % underscore is
  23. % varName = genvarname2('RZ(1)','_','var',1)
  24. % varName = varRZ_1_
  25. % Example 2:
  26. % %always append is not selected
  27. % %first character is not numeric
  28. % varName = genvarname2('RZ(1)','_','var',0)
  29. % varName = RZ_1_
  30. % Example 3:
  31. % %always appedn is not selected
  32. % %since numeric appends 'var'
  33. % varName = genvarname2('1rack','_','var',0)
  34. % varName = var1rack
  35. %
  36. % See also: genvarname
  37. %
  38. % Copied from local genvarname2
  39. if nargin < 2, replaceStr = []; end
  40. if nargin < 3, prependStr = []; end
  41. if nargin < 4, alwaysPrepend = []; end
  42. if isempty(replaceStr), replaceStr = '_'; end
  43. if isempty(prependStr), prependStr = 'v'; end
  44. if isempty(alwaysPrepend), alwaysPrepend = true; end
  45. if ~isempty(find(~(isstrprop(replaceStr,'alphanum') | replaceStr == '_'),1))
  46. error('REPLACESTR must be alphaNumeric or an underscore')
  47. end
  48. mask = isstrprop(string,'alphanum');
  49. ind = find(mask,1,'first');
  50. string(~mask) = replaceStr; %Replaces all non-alpha numeric values with _
  51. string = string(ind:end);
  52. if(~isletter(string(1))) || alwaysPrepend
  53. if ~isempty(find(~(isstrprop(prependStr,'alphanum') | replaceStr == '_'),1))
  54. error('PREPENDSTR values must be alphaNumeric or an underscore')
  55. elseif ~isletter(prependStr(1))
  56. error('PREPENDSTR(1) needs to be a letter to have a valid variable name')
  57. end
  58. varName = [prependStr string];
  59. else
  60. varName = string;
  61. end

TDMS_genvarname2.m at commit 37a989f, no license · at the source

Overview

Authors: Li Zhan1,2,3, Xiaotong Wu1,2,3,4, Xiaomeng Wang1,2,3,4, Hanyang Xiao1,3, Siyu Wang1,3, Lu Zheng1,3, Hao Wang1,2,3,4
  1. Department of Neurosurgery of Second Affiliated Hospital and School of Brain Science and Brain Medicine, Key Laboratory for Biomedical Engineering of Education Ministry, Zhejiang University School of Medicine,Hangzhou, Zhejiang China
  2. Nanhu Brain-computer Interface Institute, Hangzhou, China
  3. NHC and CAMS Key Laboratory of Medical Neurobiology, MOE Frontier Science Center for Brain Research and Brain Machine Integration, Key Laboratory of Precise Treatment and Clinical Translational Research of Neurological Diseases, School of Brain Science and Brain Medicine, Zhejiang University,Hangzhou, Zhejiang China
  4. Lingang Laboratory, Shanghai, China
Institutions: Zhejiang University (China)
Journal: Nature communications, volume 17, issue 1, article 5388
Dates: received 22 April 2025; accepted 7 April 2026; published online 18 April 2026
Type: Research article · Language: English
License: CC BY
Identifiers: DOI 10.1038/s41467-026-72107-2 · PMID 42000756 · PMCID PMC13276400 · OpenAlex W7154855647
Open access: gold, a free copy (OpenAlex)
Status: code verified (how the code is found and verified)
Categories: mouse (organism), systems (subfield)
Methods: Statistics
Keywords: Feeding behaviour, Neural circuits, Learning and memory
MeSH: Avoidance Learning*, Conditioning, Classical*, Diet, High-Fat*, Mesencephalon*, Taste*, Animals, Feeding Behavior, Lithium Chloride, Male, Memory, Mice, Mice, Inbred C57BL, Neurons, Optogenetics (* major topic)
Topic: Biochemical Analysis and Sensing Techniques (Nutrition and Dietetics, Nursing), according to OpenAlex
Funding: National Natural Science Foundation of China (32171014, 31970940)
Citations: not cited yet (Europe PMC); 45 references in the paper

Abstract

Conditioned taste aversion (CTA) is a survival mechanism that prevents consumption of harmful foods. Yet its neural circuits, especially those for solid food aversion, are poorly understood. Using a male mouse model where high-fat food (HFF) was paired with LiCl injections, we identified the median raphe region (MRR) as essential for CTA. Optogenetic activation of MRR glutamatergic neurons replaced LiCl injections, inducing robust HFF aversion. Calcium signaling in MRR neurons increased upon HFF approach post-CTA. We uncovered a necessary glutamatergic projection from the medial preoptic area (MPOA) to the MRR; stimulating this circuit mimicked LiCl, to elicit HFF aversion. Following CTA, synaptic changes in MRR neurons included an increased mEPSC frequency and an altered paired-pulse ratio in the MPOAVgluT2-MRR pathway. Finally, MRR projections to the medial septum and lateral habenula differentially encode and retrieve CTA memory. These findings define a circuit for aversion learning, offering insights into maladaptive eating behaviors.

Reproduced under the paper's license (CC BY), from the paper cited above.

Repository

Its files are read in the Code ↔ Paper reader above.

Lizzy-2262/Natcommcode

License: none: the authors keep all their rights
State: the link answers, verified on 29 September 2026
Evidence: files inventoried
Commit: 37a989f3ec8735c6e5a5c65facc9e81310436d66, 6 March 2026
Languages: MATLAB (23)
Size: 25 files, 23 scripts
Software Heritage: not archived
Found in: “Code availability”
Holds: README
Not found: license file, CITATION.cff, environment file, tests, continuous integration, documentation
Availability: 1 check, the latest on 29 September 2026: the link answers
  • 29 September 2026: the link answers
24 files

Code availability

MATLAB scripts used to analyze the fiber photometry recording data are available at: https://github.com/Lizzy-2262/Natcommcode.

Reproduced under the paper's license (CC BY), from the paper cited above.

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;
  • 23 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

Source data are provided as a Source Data file, includes statistical test results for all performed tests, divided on individual Excel sheets per Figure. Graphics in Figs. 1a, c, h, 2c, g, k, 3b, j, 4b–d, 5b, e, h and Supplementary Figs. 1c, 2a, 4a, 5c, 6a, 8a, 9a, 10a, 11a, 12a, and 17a are created with BioRender. Zhan, L. (2026) https://BioRender.com/mi27m0t. Other graphics are created in Adobe Illustrator 2023, including Figs. 3a, c, n, q, 4a, 5a and Supplementary Figs. 13a, c, 14a, 15a, e, i, 18a, d. Source data are provided in this paper.

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 1, 29 September 2026: the first record

Recorded: type, language, journal, volume, issue, pages, dates, 7 authors, 3 keywords, 14 MeSH terms, 1 funder, 42 references.

Cite

This paper

Zhan, L., Wu, X., Wang, X., Xiao, H., Wang, S., Zheng, L., & Wang, H. (2026). A midbrain circuit for high-fat-food induced conditioned taste aversion. Nature communications, 17(1), 5388. https://doi.org/10.1038/s41467-026-72107-2

BibTeX

@article{zhan2026midbrain,
author = {Zhan, Li and Wu, Xiaotong and Wang, Xiaomeng and Xiao, Hanyang and Wang, Siyu and Zheng, Lu and Wang, Hao},
title = {{A midbrain circuit for high-fat-food induced conditioned taste aversion}},
journal = {Nature communications},
year = {2026},
month = apr,
volume = {17},
number = {1},
pages = {5388},
publisher = {Nature Portfolio},
issn = {2041-1723},
doi = {10.1038/s41467-026-72107-2},
url = {https://doi.org/10.1038/s41467-026-72107-2},
pmid = {42000756},
pmcid = {PMC13276400}
}

RIS

TY - JOUR
AU - Zhan, Li
AU - Wu, Xiaotong
AU - Wang, Xiaomeng
AU - Xiao, Hanyang
AU - Wang, Siyu
AU - Zheng, Lu
AU - Wang, Hao
TI - A midbrain circuit for high-fat-food induced conditioned taste aversion
T2 - Nature communications
J2 - Nat Commun
PY - 2026
DA - 2026/04/18
VL - 17
IS - 1
SP - 5388
SN - 2041-1723
PB - Nature Portfolio
DO - 10.1038/s41467-026-72107-2
UR - https://doi.org/10.1038/s41467-026-72107-2
LA - en
ER -

CSL-JSON

{
"id": "10.1038/s41467-026-72107-2",
"type": "article-journal",
"title": "A midbrain circuit for high-fat-food induced conditioned taste aversion",
"container-title": "Nature communications",
"author": [
{
"family": "Zhan",
"given": "Li"
},
{
"family": "Wu",
"given": "Xiaotong"
},
{
"family": "Wang",
"given": "Xiaomeng"
},
{
"family": "Xiao",
"given": "Hanyang"
},
{
"family": "Wang",
"given": "Siyu"
},
{
"family": "Zheng",
"given": "Lu"
},
{
"family": "Wang",
"given": "Hao"
}
],
"container-title-short": "Nat Commun",
"volume": "17",
"issue": "1",
"page": "5388",
"DOI": "10.1038/s41467-026-72107-2",
"PMID": "42000756",
"PMCID": "PMC13276400",
"ISSN": "2041-1723",
"publisher": "Nature Portfolio",
"URL": "https://doi.org/10.1038/s41467-026-72107-2",
"language": "en",
"issued": {
"date-parts": [
[
2026,
4,
18
]
]
}
}

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.1126/sciadv.adh2884
Neural adaption in midbrain GABAergic cells contributes to high-fat diet-induced obesity.
Journal: Science advances
In common: mouse, 2 authors
[2] doi:10.7554/elife.106347 [code]
Esr1-dependent signaling and transcriptional maturation in the medial preoptic area of the hypothalamus shape the development of mating behavior during adolescence.
Journal: eLife
In common: mouse, 5 references
[3] doi:10.1038/s41586-025-08828-z [code]
A neural mechanism for learning from delayed postingestive feedback.
Journal: Nature
In common: mouse, 4 references
[4] doi:10.1038/s41467-025-59352-7 [code]
Sex-specific hypothalamic neural projection activity drives caregiving in mice.
Journal: Nature communications
In common: systems, mouse, 4 references
[5] doi:10.7554/elife.91765 [code]
Post-ejaculatory inhibition of female sexual drive via heterogeneous neuronal ensembles in the medial preoptic area.
Journal: eLife
In common: systems, mouse, 4 references
[6] doi:10.1038/s41467-024-52727-2 [code]
Excitation-inhibition imbalance in medial preoptic area circuits underlies chronic stress-induced depression-like states.
Journal: Nature communications
In common: systems, mouse, 4 references
[7] doi:10.1126/science.adi0576
Hormone-mediated neural remodeling orchestrates parenting onset during pregnancy.
Journal: Science (New York, N.Y.)
In common: systems, mouse, 4 references
[8] doi:10.1126/sciadv.adn0367
Remote neurostimulation through an endogenous ion channel using a near-infrared light-activatable nanoagonist.
Journal: Science advances
In common: mouse, author Hao Wang
[9] doi:10.1038/s41467-024-48755-7 [code]
Parvalbumin-expressing basal forebrain neurons mediate learning from negative experience.
Journal: Nature communications
In common: mouse, 3 references
[10] doi:10.1038/s41467-026-70962-7 [code]
Regulation of physical activity and energy expenditure through Phf6 in the medial preoptic area.
Journal: Nature communications
In common: mouse, 3 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.

Add the badge to the code's README

OSCR: the badge of this paper

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 -->
[![OSCR](https://openscicode.org/badge/doi/10.1038/s41467-026-72107-2.svg)](https://openscicode.org/badge/doi/10.1038/s41467-026-72107-2)
<!-- oscr-badge:end -->
reStructuredText
.. oscr-badge:start

.. image:: https://openscicode.org/badge/doi/10.1038/s41467-026-72107-2.svg
   :target: https://openscicode.org/badge/doi/10.1038/s41467-026-72107-2
   :alt: OSCR

.. oscr-badge:end
HTML
<!-- oscr-badge:start -->
<a href="https://openscicode.org/badge/doi/10.1038/s41467-026-72107-2"><img src="https://openscicode.org/badge/doi/10.1038/s41467-026-72107-2.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.