The central amygdala gates exogenous glucagon-like peptide 1 signals.
The 1 match
- [1] § Materials and methods › Fiber photometry recordings › Fiber photometry data analysis ↔ routine/processing.py, lines 14 to 100 · score 0.61 · Huber regression, nearest, photobleaching, model, fit, baseline · 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 · 161 lines · 5.8 KB · no license · 1 match
- import warnings
- import numpy as np
- import pandas as pd
- from scipy.ndimage import median_filter
- from scipy.optimize import curve_fit
- from scipy.signal import find_peaks
- from scipy.stats import zscore
- from sklearn.linear_model import HuberRegressor
- from .utilities import exp2, min_transform
- def photobleach_correction(
- data, baseline_sig, rois=None, min_trans=True, med_wnd=None, method="simple"
- ):
- if method == "simple":
- if med_wnd is not None:
- warnings.warn(
- "med_wnd is set but will be ignored when using 'simple' method"
- )
- elif method == "moment_to_moment":
- assert (
- med_wnd is not None
- ), "med_wnd must be set when using 'moment_to_moment' method"
- else:
- raise NotImplementedError(
- "method must be either 'simple' or 'moment_to_moment', got {} instead".format(
- method
- )
- )
- # auto set rois
- if rois is None:
- rois = list(
- set([r[0] for r in baseline_sig.keys()])
- | set([r[0] for r in baseline_sig.values()])
- )
- # making sure signal exists
- base_dict = dict()
- for (roi, sig), (base_roi, base_sig) in baseline_sig.items():
- if len(data.loc[data["signal"] == sig, roi]) == 0:
- continue
- if len(data.loc[data["signal"] == base_sig, base_roi]) == 0:
- warnings.warn(
- "Cannot find signal '{}' in roi '{}', skipping correction for signal '{}' roi '{}'".format(
- base_sig, base_roi, sig, roi
- )
- )
- continue
- base_dict[(roi, sig)] = (base_roi, base_sig)
- # fit baseline
- base_dfs = dict()
- for base_roi, base_sig in set(base_dict.values()):
- if base_sig in base_dfs:
- base_df = base_dfs[base_sig]
- else:
- base_df = data.loc[data["signal"] == base_sig].copy()
- base_df["signal"] = base_sig + "-fit"
- base_df[rois] = np.nan
- dat_fit = data.loc[data["signal"] == base_sig, base_roi]
- x = np.linspace(0, 1, len(dat_fit))
- base_fit = fit_exp2(dat_fit, x)
- if method == "moment_to_moment":
- base_df[base_roi] = median_filter(
- dat_fit - base_fit, med_wnd, mode="nearest"
- )
- else:
- base_df[base_roi] = base_fit
- base_dfs[base_sig] = base_df
- # correct signals
- sig_dfs = dict()
- for (roi, sig), (base_roi, base_sig) in base_dict.items():
- if sig in sig_dfs:
- sig_df = sig_dfs[sig]
- norm_df = sig_df.loc[sig_df["signal"] == sig + "-norm"].copy()
- zs_df = sig_df.loc[sig_df["signal"] == sig + "-norm-zs"].copy()
- else:
- norm_df = data.loc[data["signal"] == sig].copy()
- norm_df["signal"] = sig + "-norm"
- norm_df[rois] = np.nan
- zs_df = data.loc[data["signal"] == sig].copy()
- zs_df["signal"] = sig + "-norm-zs"
- zs_df[rois] = np.nan
- dat_sig = data.loc[data["signal"] == sig, roi]
- if method == "moment_to_moment":
- x = np.linspace(0, 1, len(dat_sig))
- sig_fit = fit_exp2(dat_sig, x)
- dat_sig = dat_sig - sig_fit
- baseline = np.array(base_dfs[base_sig][base_roi])
- model = HuberRegressor()
- model.fit(baseline.reshape((-1, 1)), dat_sig)
- norm_df[roi] = dat_sig - model.predict(baseline.reshape((-1, 1)))
- if min_trans:
- norm_df[roi] = min_transform(norm_df[roi])
- zs_df[roi] = zscore(norm_df[roi])
- sig_dfs[sig] = pd.concat([norm_df, zs_df])
- data_norm = pd.concat(
- [data] + list(base_dfs.values()) + list(sig_dfs.values()), ignore_index=True
- )
- return data_norm
- def fit_exp2(a, x):
- dmax, dmin = a[:50].median(), a[-50:].median()
- drg = dmax - dmin
- p0 = (drg, -10, drg, 0.1, dmin - drg)
- try:
- popt, pcov = curve_fit(exp2, x, a, p0=p0, method="trf", ftol=1e-6, maxfev=1e4)
- except:
- warnings.warn("Biexponential fit failed")
- popt = p0
- return exp2(x, *popt)
- def compute_dff(data, rois, sigs=["415nm", "470nm"]):
- if sigs is not None:
- data = data[data["signal"].isin(sigs)].copy()
- res_ls = []
- for sig, dat_sig in data.groupby("signal"):
- dat_fit = dat_sig.copy()
- dat_dff = dat_sig.copy()
- dat_fit["signal"] = sig + "-fit"
- dat_dff["signal"] = sig + "-dff"
- x = np.linspace(0, 1, len(dat_sig))
- for roi in rois:
- dat = dat_sig[roi]
- popt, pcov = curve_fit(
- exp2,
- x,
- dat,
- p0=(1.0, 0, 1.0, 0, dat.mean()),
- bounds=(
- np.array([-np.inf, -np.inf, -np.inf, -np.inf, dat.min()]),
- np.array([np.inf, np.inf, np.inf, np.inf, dat.max()]),
- ),
- )
- cur_fit = exp2(x, *popt)
- dat_fit[roi] = cur_fit
- dat_dff[roi] = 100 * (dat - cur_fit) / cur_fit
- res_ls.extend([dat_fit, dat_dff])
- return pd.concat([data] + res_ls, ignore_index=True)
- def find_pks(data, rois, prominence, freq_wd=None, sigs=None):
- for sig, dat_sig in data.groupby("signal"):
- if sigs is not None and sig in sigs:
- for roi in rois:
- dat = dat_sig[roi]
- pks, props = find_peaks(dat, prominence=prominence)
- pvec = np.zeros_like(dat, dtype=bool)
- pvec[pks] = 1
- data.loc[dat_sig.index, roi + "-pks"] = pvec
- if freq_wd is not None:
- dat_sig.loc[dat_sig.index, roi + "-freq"] = (
- dat_sig.loc[dat_sig.index, roi + "-pks"].rolling(freq_wd).sum()
- )
- return data
- def moving_average_filter(x, wnd, mode="same"):
- return np.convolve(x, np.ones(wnd) / wnd, mode=mode)
processing.py at commit c860df8, no license · at the source
Overview
- Department of Psychiatry and Behavioral Neurobiology, University of Alabama at Birmingham, Birmingham, AL 35294, USA
- Department of Medicine, University of Alabama at Birmingham, Birmingham, AL 35294, USA
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.
Repositories
Its files are read in the Code ↔ Paper reader above, with 1 match between paragraphs and lines of code.
OpenBehavior/Modular-Stereotaxic-Holders
88639b72a483eb3d5334a1c93836b1d82eb3b9c1, 6 September 2022Availability: 1 check, the latest on 27 September 2026: the link answers
- 27 September 2026: the link answers
Hardaway-Lab/FED3-Photometry_Workflows
c860df8c711c840a4b016fe6c0f53a9efa5d09b0, 31 August 2024Availability: 1 check, the latest on 27 September 2026: the link answers
- 27 September 2026: the link answers
14 files
- 00.process_opto.py, Python, 19 lines
- 01.pipeline_process.ipyn
b , Jupyter, 136 lines - 02.pipeline_align.ipynb, Jupyter, 53 lines
- 03.pipeline_polling.ipyn
b , Jupyter, 71 lines - routine/
__init__.py , Python, 11 lines - routine/
oo_interface.py , Python, 662 lines - routine/
plotting.py , Python, 343 lines - routine/
polling.py , Python, 105 lines - routine/
processing.py , Python, 161 lines, 1 match - routine/
ts_alignment.py , Python, 164 lines - routine/
utilities.py , Python, 137 lines - test_bout_detection.py, Python, 46 lines
- test_full_pipeline.py, Python, 50 lines
- README.md, Text, 34 lines
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:
- 2 repositories of the authors' code, each at its verified commit, with its license and how the link was found in the paper;
- 13 scripts, each with its path and the digest of its content;
- 1 match 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 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.1016/j.molmet.2026.102403.
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 J. Andrew Hardaway (0000-0003-3893-2658); removed J. Andrew Hardaway
Version 1, 27 September 2026: the first record
Recorded: type, language, journal, volume, pages, dates, 7 authors, 5 keywords, 11 MeSH terms, 4 funders, 92 references, 18 RRIDs.
Cite
This paper
Duran, M., Zeng, N., Cutts, E. J., Polamarasetty, A., Rodriguez, M., Habegger, K. M., & Hardaway, J. A. (2026). The central amygdala gates exogenous glucagon-like peptide 1 signals. Molecular metabolism, 110, 102403. https://
BibTeX
@article{duran2026centra
author = {Duran, Miguel and Zeng, Ningxiang and Cutts, Elam J. and Polamarasetty, Anusha and Rodriguez, Melissa and Habegger, Kirk M. and Hardaway, J. Andrew},
title = {{The central amygdala gates exogenous glucagon-like peptide 1 signals}},
journal = {Molecular metabolism},
year = {2026},
month = jun,
volume = {110},
pages = {102403},
publisher = {Elsevier},
issn = {2212-8778},
doi = {10.1016/
url = {https://
pmid = {42314903},
pmcid = {PMC13332456}
}
RIS
TY - JOUR
AU - Duran, Miguel
AU - Zeng, Ningxiang
AU - Cutts, Elam J.
AU - Polamarasetty, Anusha
AU - Rodriguez, Melissa
AU - Habegger, Kirk M.
AU - Hardaway, J. Andrew
TI - The central amygdala gates exogenous glucagon-like peptide 1 signals
T2 - Molecular metabolism
J2 - Mol Metab
PY - 2026
DA - 2026/
VL - 110
SP - 102403
SN - 2212-8778
PB - Elsevier
DO - 10.1016/
UR - https://
LA - en
ER -
CSL-JSON
{
"id": "10.1016/
"type": "article-journal",
"title": "The central amygdala gates exogenous glucagon-like peptide 1 signals",
"container-title": "Molecular metabolism",
"author": [
{
"family": "Duran",
"given": "Miguel"
},
{
"family": "Zeng",
"given": "Ningxiang"
},
{
"family": "Cutts",
"given": "Elam J."
},
{
"family": "Polamarasetty",
"given": "Anusha"
},
{
"family": "Rodriguez",
"given": "Melissa"
},
{
"family": "Habegger",
"given": "Kirk M."
},
{
"family": "Hardaway",
"given": "J. Andrew"
}
],
"container-title-short":
"volume": "110",
"page": "102403",
"DOI": "10.1016/
"PMID": "42314903",
"PMCID": "PMC13332456",
"ISSN": "2212-8778",
"publisher": "Elsevier",
"URL": "https://
"language": "en",
"issued": {
"date-parts": [
[
2026,
6,
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.1038/s41586-026-10444-4 [code]
- A brain reward circuit inhibited by next-generation weight-loss drugs in mice.Journal: NatureIn common: Plotly, pandas, SciPy, 1 other tool, mouse, 16 references
- [2] doi:10.1172/jci186652 [code]
- Incretin receptor agonism rapidly inhibits AgRP neurons to suppress food intake in mice.Journal: The Journal of clinical investigationIn common: pandas, SciPy, NumPy, mouse, cellular / molecular, 9 references
- [3] doi:10.1126/sciadv.adr5051 [code]
- An endogenous GLP-1 circuit engages VTA GABA neurons to regulate mesolimbic dopamine neurons and attenuate cocaine seeking.Journal: Science advancesIn common: 8 references
- [4] doi:10.1016/j.isci.2025.114070 [code]
- Individual paraventricular hypothalamic GLP-1R neurons track ingestion across energy states.Journal: iScienceIn common: scikit-learn, pandas, SciPy, 1 other tool, cellular / molecular, 6 references
- [5] doi:10.1042/bsr20231846 [code]
- Metabolic and behavioral alterations associated with viral vector-mediated toxicity in the paraventricular hypothalamic nucleus.Journal: Bioscience reportsIn common: pandas, SciPy, NumPy, mouse, cellular / molecular, 6 references
- [6] doi:10.1016/j.celrep.2022.111698
- Acute changes in systemic glycemia gate access and action of GLP-1R agonist on brain structures controlling energy homeostasis.Journal: Cell reportsIn common: cellular / molecular, 7 references
- [7] doi:10.1126/sciadv.abn5345 [code]
- Glucose-sensing glucagon-like peptide-1 receptor neurons in the dorsomedial hypothalamus regulate glucose metabolism.Journal: Science advancesIn common: cellular / molecular, 7 references
- [8] doi:10.1016/j.cub.2024.02.074
- A brainstem to hypothalamic arcuate nucleus GABAergic circuit drives feeding.Journal: Current biology : CBIn common: mouse, 7 references
- [9] doi:10.1016/j.isci.2025.112040
- From the pancreas to the amygdala: New brain area critical for ingestive and motivated behavior control exerted by amylin.Journal: iScienceIn common: cellular / molecular, 6 references
- [10] doi:10.7554/elife.84262 [code]
- Multimodal mapping of cell types and projections in the central nucleus of the amygdala.Journal: eLifeIn common: pandas, SciPy, NumPy, mouse, cellular / molecular, 5 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: 2 repositories of the authors' code, each at its verified commit and with its license, 13 scripts, and 1 match 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:6662f591b6ccefcc…
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.1016/j.molmet.2026.102403)
<!-- oscr-badge:end -->reStructuredText
.. oscr-badge:start
.. image:: https://openscicode.org/badge/doi/10.1016/j.molmet.2026.102403.svg
:target: https://openscicode.org/badge/doi/10.1016/j.molmet.2026.102403
:alt: OSCR
.. oscr-badge:endHTML
<!-- oscr-badge:start -->
<a href="https://openscicode.org/badge/doi/10.1016/j.molmet.2026.102403"><img src="https://openscicode.org/badge/doi/10.1016/j.molmet.2026.102403.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".
- OpenBehavior/Modular-Stereotaxic-Holders: README.md on GitHub
- Hardaway-Lab/FED3-Photometry_Workflows: README.md on GitHub
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.
