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–100 · score 0.61 · Huber regression, nearest, photobleaching, model, fit, baseline
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
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.1016/j.stem.2026.05.005 [code]
- Generation of human appetite-regulating neurons and tanycytes from pluripotent stem cells.Journal: Cell stem cellIn common: Plotly, scikit-learn, pandas, 2 other tools, cellular / molecular, 2 references
- [3] doi:10.7554/elife.108663 [code]
- The Crunchometer, a low-cost, open-source acoustic analysis of feeding microstructure.Journal: eLifeIn common: scikit-learn, pandas, SciPy, 1 other tool, mouse, 3 references
- [4] doi:10.1016/j.isci.2026.116206 [code]
- Gut distension evokes rapid neural dynamics in vagal and hindbrain populations of larval zebrafish.Journal: iScienceIn common: scikit-learn, pandas, SciPy, 1 other tool, optical imaging (calcium, voltage, 2-photon), 2 references
- [5] doi:10.1016/j.crmeth.2026.101421 [code]
- EthoPy provides an accessible platform for reproducible behavioral neuroscience.Journal: Cell reports methodsIn common: Plotly, scikit-learn, pandas, 2 other tools, mouse, 1 reference
- [6] doi:10.3389/fnsys.2026.1822122 [code]
- Convergence-divergence circuits for multimodal integration of innate and learned opponent valences.Journal: Frontiers in systems neuroscienceIn common: Plotly, scikit-learn, pandas, 2 other tools, 1 reference
- [7] doi:10.7554/elife.110277 [code]
- Functional imaging of nine distinct neuronal populations under a miniscope in freely behaving animals.Journal: eLifeIn common: Plotly, scikit-learn, pandas, 2 other tools, optical imaging (calcium, voltage, 2-photon), mouse
- [8] doi:10.1002/advs.202510822 [code]
- How Neuromorphic Microstructures Control In Vitro Early-Stage Neuronal Outgrowth.Journal: Advanced science (Weinheim, Baden-Wurttemberg, Germany)In common: Plotly, scikit-learn, pandas, 2 other tools, optical imaging (calcium, voltage, 2-photon)
- [9] doi:10.1016/j.xpro.2026.104807
- Protocol for stereotaxic targeting of the dorsal vagal complex in mice.Journal: STAR protocolsIn common: mouse, 3 references
- [10] doi:10.1038/s42003-026-10957-8 [code]
- Brain defence by the extracellular matrix protein Cochlin.Journal: Communications biologyIn common: Plotly, scikit-learn, pandas, 2 other tools, mouse, cellular / molecular
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 its README
The badge links the code to this page. Copy one of these into the README of the paper's code: only you decide where it goes, and nothing is changed for you.
Markdown
[, paste the snippet at the top, then “Commit changes…” and, to review it first, “Create a new branch and start a pull request”. You open the pull request; OSCR asks for no permission.
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.
