A midbrain circuit for high-fat-food induced conditioned taste aversion.
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
- function varName = TDMS_genvarname2(string,replaceStr,prependStr,alwaysPrepend)
- %GENVARNAME2: Outputs a valid variable name VARNAME
- %
- % GENVARNAME2(STRING,*REPLACESTR,*PREPENDSTR,*ALWAYSPREPEND) replaces invalid
- % characters in STRING with REPLACESTR. If the first letter is not
- % a letter, or ALWAYSPREPEND is true, then PREPENDSTR is prepended
- % to the variable name
- %
- % INPUTS
- % =======================================================================
- % STRING - input string to convert to safe variable name
- % *REPLACESTR - (default '_'), character to replace invalid values with
- % *PREPENDSTR - (default 'v'), value to prepend if first character is not
- % a letter or ALWAYSPREPEND is true
- % *ALWAYSPREPEND - (default true), if true, alwyays adds the PREPENDSTR
- %
- % EXAMPLES
- % ========================================
- % Example 1:
- % % always append is selected
- % % 'var' gets appended
- % % underscore is
- % varName = genvarname2('RZ(1)','_','var',1)
- % varName = varRZ_1_
- % Example 2:
- % %always append is not selected
- % %first character is not numeric
- % varName = genvarname2('RZ(1)','_','var',0)
- % varName = RZ_1_
- % Example 3:
- % %always appedn is not selected
- % %since numeric appends 'var'
- % varName = genvarname2('1rack','_','var',0)
- % varName = var1rack
- %
- % See also: genvarname
- %
- % Copied from local genvarname2
- if nargin < 2, replaceStr = []; end
- if nargin < 3, prependStr = []; end
- if nargin < 4, alwaysPrepend = []; end
- if isempty(replaceStr), replaceStr = '_'; end
- if isempty(prependStr), prependStr = 'v'; end
- if isempty(alwaysPrepend), alwaysPrepend = true; end
- if ~isempty(find(~(isstrprop(replaceStr,'alphanum') | replaceStr == '_'),1))
- error('REPLACESTR must be alphaNumeric or an underscore')
- end
- mask = isstrprop(string,'alphanum');
- ind = find(mask,1,'first');
- string(~mask) = replaceStr; %Replaces all non-alpha numeric values with _
- string = string(ind:end);
- if(~isletter(string(1))) || alwaysPrepend
- if ~isempty(find(~(isstrprop(prependStr,'alphanum') | replaceStr == '_'),1))
- error('PREPENDSTR values must be alphaNumeric or an underscore')
- elseif ~isletter(prependStr(1))
- error('PREPENDSTR(1) needs to be a letter to have a valid variable name')
- end
- varName = [prependStr string];
- else
- varName = string;
- end
TDMS_genvarname2.m at commit 37a989f, no license · at the source
Overview
- 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
- Nanhu Brain-computer Interface Institute, Hangzhou, China
- 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
- Lingang Laboratory, Shanghai, China
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
37a989f3ec8735c6e5a5c65facc9e81310436d66, 6 March 2026Availability: 1 check, the latest on 29 September 2026: the link answers
- 29 September 2026: the link answers
24 files
- TDMS_genvarname2.m, MATLAB, 66 lines
- TDMS_getDataSize.m, MATLAB, 75 lines
- TDMS_getDataTypeName.m, MATLAB, 51 lines
- TDMS_getGroupChanNames.m
, MATLAB, 62 lines - TDMS_getPropValue.m, MATLAB, 55 lines
- TDMS_getTypeSeekSizes.m, MATLAB, 41 lines
- TDMS_handleGetDataOption
.m , MATLAB, 416 lines - TDMS_initData.m, MATLAB, 42 lines
- TDMS_preprocessFile.m, MATLAB, 592 lines
- TDMS_processLeadIn.m, MATLAB, 71 lines
- TDMS_rawDAQMx.m, MATLAB, 46 lines
- TDMS_readFileHelper_v1.m
, MATLAB, 201 lines - TDMS_readFileHelper_v2.m
, MATLAB, 92 lines - TDMS_readTDMSFile.m, MATLAB, 303 lines
- TDMS_retrievingSubsets.m
, MATLAB, 178 lines - airPLS.m, MATLAB, 65 lines
- drawErrorLine.m, MATLAB, 14 lines
- heatmapPlot.m, MATLAB, 36 lines
- linearSmooth1.m, MATLAB, 13 lines
- psth_wave2.m, MATLAB, 40 lines
- psth_wave2_multi.m, MATLAB, 51 lines
- trigger_times_pretreatme
nt.m , MATLAB, 14 lines - trigger_times_pretreatme
nt_multi.m , MATLAB, 14 lines - README.md, Text, 1 line
Code availability
MATLAB scripts used to analyze the fiber photometry recording data are available at: https://
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://
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://
BibTeX
@article{zhan2026midbrai
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 Publishing Group},
issn = {2041-1723},
doi = {10.1038/
url = {https://
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/
VL - 17
IS - 1
SP - 5388
SN - 2041-1723
PB - Nature Publishing Group
DO - 10.1038/
UR - https://
LA - en
ER -
CSL-JSON
{
"id": "10.1038/
"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":
"volume": "17",
"issue": "1",
"page": "5388",
"DOI": "10.1038/
"PMID": "42000756",
"PMCID": "PMC13276400",
"ISSN": "2041-1723",
"publisher": "Nature Publishing Group",
"URL": "https://
"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 advancesIn 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: eLifeIn common: mouse, 5 references
- [3] doi:10.1038/s41586-025-08828-z [code]
- A neural mechanism for learning from delayed postingestive feedback.Journal: NatureIn 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 communicationsIn 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: eLifeIn 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 communicationsIn 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 advancesIn 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 communicationsIn 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 communicationsIn 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.
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, 23 scripts, and 0 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:741baf7ca1c4a86c…
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.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:endHTML
<!-- 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.
