Functional imaging of nine distinct neuronal populations under a miniscope in freely behaving animals.
The 2 matches
- [1] § Materials and methods › Co-registration of functionally defined neurons › nVoke to Zeiss registration ↔ routine/coregistration.py, lines 51–124 · score 0.66 · gradient descent, exhaustive, optimization, correlation, filter, transformation
- [2] § Materials and methods › Linking neural activity to behavior and delineating by cell-type ↔ 02.specific_event_responses.py, lines 111–123 · score 0.50 · sankey diagram, aggression, social
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 · 140 lines · 4.1 KB · no license · 1 match
- import copy
- import re
- from collections.abc import Iterable
- import cv2
- import numpy as np
- import pandas as pd
- import SimpleITK as sitk
- from scipy.ndimage import gaussian_filter
- from .utilities import normalize
- def process_temp(
- im: np.ndarray, dn_sigma=5, back_sigma=50, blk_wnd=(11, 11), q_thres=None
- ):
- if not isinstance(blk_wnd, Iterable):
- blk_wnd = (blk_wnd, blk_wnd)
- im_ps = gaussian_filter(im, dn_sigma)
- im_ps = remove_background(im_ps, back_sigma)
- krn = cv2.getStructuringElement(cv2.MORPH_ELLIPSE, blk_wnd)
- im_ps = cv2.morphologyEx(im_ps, cv2.MORPH_BLACKHAT, krn)
- if q_thres is not None:
- q = np.quantile(im_ps, q_thres)
- im_ps[im_ps < q] = im_ps.min()
- return normalize(im_ps)
- def remove_background(im, back_sigma):
- back = gaussian_filter(im, back_sigma)
- return im - back
- def apply_tx(
- fm: np.ndarray, tx: sitk.Transform, fill: float = 0, ref: np.ndarray = None
- ):
- if ref is None:
- ref = fm
- else:
- ref = sitk.GetImageFromArray(ref)
- fm = sitk.GetImageFromArray(fm)
- fm = sitk.Resample(fm, ref, tx, sitk.sitkLinear, fill)
- return sitk.GetArrayFromImage(fm)
- def it_callback(reg, param_dict):
- param = reg.GetOptimizerPosition()
- param_dict[param] = reg.GetMetricValue()
- def est_sim(
- src: np.ndarray,
- dst: np.ndarray,
- exhaustive: bool,
- trans_init=None,
- src_ma=None,
- dst_ma=None,
- lr: float = 0.5,
- niter: int = 1000,
- scal_init=1.9,
- scal_stp=1e-2,
- scal_nstp=3,
- ang_stp=np.deg2rad(1),
- ang_nstp=3,
- trans_stp=(1.0, 1.0),
- trans_nstp=(3, 3),
- ):
- src = sitk.GetImageFromArray(src.astype(np.float32))
- dst = sitk.GetImageFromArray(dst.astype(np.float32))
- reg = sitk.ImageRegistrationMethod()
- if src_ma is not None:
- reg.SetMetricMovingMask(sitk.GetImageFromArray(src_ma.astype(np.uint8)))
- if dst_ma is not None:
- reg.SetMetricFixedMask(sitk.GetImageFromArray(dst_ma.astype(np.uint8)))
- if trans_init is None:
- trans_init = sitk.CenteredTransformInitializer(
- dst,
- src,
- sitk.Similarity2DTransform(1 / scal_init),
- sitk.CenteredTransformInitializerFilter.GEOMETRY,
- )
- reg.SetInitialTransform(trans_init)
- reg.SetMetricAsCorrelation()
- reg.SetInterpolator(sitk.sitkLinear)
- # reg.SetOptimizerAsRegularStepGradientDescent(
- # learningRate=lr,
- # minStep=1e-7,
- # numberOfIterations=niter,
- # )
- if exhaustive:
- if not isinstance(trans_stp, Iterable):
- trans_stp = (trans_stp, trans_stp)
- if not isinstance(trans_nstp, Iterable):
- trans_nstp = (trans_nstp, trans_nstp)
- reg.SetOptimizerAsExhaustive(
- [scal_nstp, ang_nstp, trans_nstp[0], trans_nstp[1]]
- )
- reg.SetOptimizerScales(
- [
- 1 / scal_init - 1 / (scal_init + scal_stp),
- ang_stp,
- trans_stp[0],
- trans_stp[1],
- ]
- )
- else:
- reg.SetOptimizerAsGradientDescent(learningRate=lr, numberOfIterations=niter)
- reg.SetOptimizerScalesFromPhysicalShift()
- param_dict = dict()
- reg.AddCommand(sitk.sitkIterationEvent, lambda: it_callback(reg, param_dict))
- tx = reg.Execute(dst, src).Downcast()
- param_df = (
- pd.Series(param_dict)
- .reset_index(name="metric")
- .rename(
- columns={
- "level_0": "scale",
- "level_1": "angle",
- "level_2": "transX",
- "level_3": "transY",
- }
- )
- )
- return tx, param_df
- def estimate_tranform(src, dst, **kwargs):
- tx_exh, param_exh = est_sim(src, dst, exhaustive=True, **kwargs)
- tx_gd, param_gd = est_sim(
- src, dst, exhaustive=False, trans_init=copy.deepcopy(tx_exh), **kwargs
- )
- param_exh["stage"] = "exhaustive"
- param_gd["stage"] = "gradient"
- return tx_gd, tx_exh, pd.concat([param_exh, param_gd], ignore_index=True)
- def thres_roi(roi, th):
- nzvals = roi[roi > 0]
- thres = np.quantile(nzvals, th)
- return np.where(roi > thres, roi, 0)
coregistration.py at commit ccd94d8, no license · at the source
Overview
- Max Planck Florida Institute for Neuroscience Jupiter United States
- ZEISS Research Microscopy Solutions White Plains United States
- MetaCell Boston United States
Abstract
Head-mounted miniscopes have enabled functional fluorescence imaging in freely moving animals. However, current technology is limited to recording at most two spectrally distinct fluorophores, severely restricting the number of identifiable cell types. Here, we introduce multiplexed neuronal imaging (Neuroplex), a pipeline combining miniscope Ca2+ recordings with in vivo multiplexed confocal spectral imaging to distinguish nine projection-defined neuronal subtypes through the same GRIN lens. By co-registering defined neurons with fluorophore-specific spectral fingerprints via linear unmixing, we link projection-defined identities to behaviorally relevant neuronal activity. This approach overcomes spectral constraints of miniscopes, enabling circuit-level dissection of behavior in single animals.
Reproduced under the paper's license (CC BY), from the paper cited above.
Repositories
Its files are read in the Code ↔ Paper reader above, with 2 matches between paragraphs and lines of code.
Neurocipher/PythonPipeline
ccd94d881aa5a456b81ab4f601a780878766f151, 11 December 2025Availability: 1 check, the latest on 28 September 2026: the link answers
- 28 September 2026: the link answers
13 files
- 00.co-registration.py, Python, 276 lines
- 01.cross-registration.py
, Python, 136 lines - 02.spectrum_extraction.p
y , Python, 90 lines - 03.fluoro_identification
.py , Python, 70 lines - 99.plot_examples.py, Python, 180 lines
- routine/
__init__.py , Python, 1 line - routine/
coregistration.py , Python, 140 lines, 1 match - routine/
crossreg.py , Python, 401 lines - routine/
fluoro_id.py , Python, 82 lines - routine/
io.py , Python, 220 lines - routine/
plotting.py , Python, 100 lines - routine/
utilities.py , Python, 20 lines - README.md, Text, 17 lines
MetaCell/Zeiss-Data-Science
a21b69c599cacdb45b3f6dd414fc215b53f947f7, 22 July 2025Availability: 1 check, the latest on 28 September 2026: the link answers
- 28 September 2026: the link answers
14 files
- 00.deconvolve_signals.py
, Python, 94 lines - 00.threshold_behav.py, Python, 153 lines
- 01.cell_reduc.py, Python, 189 lines
- 01.frame_isomap.py, Python, 184 lines
- 01.frame_pca.py, Python, 90 lines
- 01.plot_peth.py, Python, 255 lines
- 02.responsive_cells.py, Python, 149 lines
- 02.specific_event_respon
ses.py , Python, 391 lines, 1 match - routine/
__init__.py , Python, 1 line - routine/
dimension_reduction.py , Python, 38 lines - routine/
plotting.py , Python, 335 lines - routine/
responsive_cells.py , Python, 11 lines - routine/
utilities.py , Python, 336 lines - LICENSE, License, 21 lines
The paper's code and data availability statement is in the Data section.
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;
- 25 scripts, each with its path and the digest of its content;
- 2 matches 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
Datasets cited
- zenodo:17915226, at Zenodo; found in “Data availability”
Data availability
All raw data are available at https://
The following dataset was generated:
YasudaR PhillipsM UrbanN SalemiT DongZ 2025Dataset for: Functional imaging of nine distinct neuronal populations under a miniscope in freely behaving animalsZenodo10.5281/
Reproduced under the paper's license (CC BY), from the paper cited above.
Code and data availability
Raw and processed data: https://
Code and data utilized in Neuroplex multispectral detection: GitHub - Neurocipher/
Code and data utilized in calcium/
A detailed tutorial on these processes can be found via this repository: 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, 28 September 2026: the first record
Recorded: type, language, journal, volume, pages, dates, 5 authors, 5 keywords, 6 MeSH terms, 2 funders, 26 references, 14 RRIDs.
Cite
This paper
Phillips, M. L., Urban, N. T., Salemi, T., Dong, Z., & Yasuda, R. (2026). Functional imaging of nine distinct neuronal populations under a miniscope in freely behaving animals. eLife, 15, RP110277. https://
BibTeX
@article{phillips2026fun
author = {Phillips, Mary L and Urban, Nicolai T and Salemi, Taddeo and Dong, Zhe and Yasuda, Ryohei},
title = {{Functional imaging of nine distinct neuronal populations under a miniscope in freely behaving animals}},
journal = {eLife},
year = {2026},
month = may,
volume = {15},
pages = {RP110277},
publisher = {eLife Sciences Publications, Ltd},
issn = {2050-084X},
doi = {10.7554/
url = {https://
pmid = {42117453},
pmcid = {PMC13167110}
}
RIS
TY - JOUR
AU - Phillips, Mary L
AU - Urban, Nicolai T
AU - Salemi, Taddeo
AU - Dong, Zhe
AU - Yasuda, Ryohei
TI - Functional imaging of nine distinct neuronal populations under a miniscope in freely behaving animals
T2 - eLife
J2 - Elife
PY - 2026
DA - 2026/
VL - 15
SP - RP110277
SN - 2050-084X
PB - eLife Sciences Publications, Ltd
DO - 10.7554/
UR - https://
LA - en
ER -
CSL-JSON
{
"id": "10.7554/
"type": "article-journal",
"title": "Functional imaging of nine distinct neuronal populations under a miniscope in freely behaving animals",
"container-title": "eLife",
"author": [
{
"family": "Phillips",
"given": "Mary L"
},
{
"family": "Urban",
"given": "Nicolai T"
},
{
"family": "Salemi",
"given": "Taddeo"
},
{
"family": "Dong",
"given": "Zhe"
},
{
"family": "Yasuda",
"given": "Ryohei"
}
],
"container-title-short":
"volume": "15",
"page": "RP110277",
"DOI": "10.7554/
"PMID": "42117453",
"PMCID": "PMC13167110",
"ISSN": "2050-084X",
"publisher": "eLife Sciences Publications, Ltd",
"URL": "https://
"language": "en",
"issued": {
"date-parts": [
[
2026,
5,
12
]
]
}
}
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.1016/j.isci.2026.116206 [code]
- Gut distension evokes rapid neural dynamics in vagal and hindbrain populations of larval zebrafish.Journal: iScienceIn common: SimpleITK, tifffile, OpenCV, 7 other tools, optical imaging (calcium, voltage, 2-photon), systems
- [2] doi: [code]
- Real-time closed-loop feedback system for mouse mesoscale cortical signal and movement controlJournal: eLifeIn common: tifffile, OpenCV, statsmodels, 6 other tools, optical imaging (calcium, voltage, 2-photon), mouse, 1 reference
- [3] doi:10.1002/alz.71649 [code]
- Postmortem brain MRI reveals differential associations of subcortical and limbic volumes with cortical thinning and neurodegenerative pathologies.Journal: Alzheimer's & dementia : the journal of the Alzheimer's AssociationIn common: SimpleITK, Plotly, OpenCV, 7 other tools, histology / microscopy
- [4] doi:10.1111/ejn.70582 [code]
- Multifiber Array-Based Photometry System for Multiregional Functional Mapping in the Mouse Brain.Journal: The European journal of neuroscienceIn common: SimpleITK, tifffile, OpenCV, 4 other tools, optical imaging (calcium, voltage, 2-photon), systems, mouse, 1 reference
- [5] doi:10.1016/j.stemcr.2026.103015 [code]
- Brain injury reactivates a developmental program driving genesis and integration of transient LGE-class interneurons.Journal: Stem cell reportsIn common: tifffile, Plotly, OpenCV, 7 other tools, mouse
- [6] doi:10.1038/s41593-026-02318-9 [code]
- Induction of cortical on/
off periods in awake mice fulfills sleep functions. Journal: Nature neuroscienceIn common: xarray, Plotly, OpenCV, 6 other tools, mouse - [7] doi:10.1038/s41593-026-02232-0 [code]
- Entorhinal cortex represents task-relevant remote locations independently of CA1.Journal: Nature neuroscienceIn common: xarray, OpenCV, statsmodels, 6 other tools, systems, mouse
- [8] doi:10.1038/s41467-026-72437-1 [code]
- High-speed whole-brain imaging in Drosophila.Journal: Nature communicationsIn common: SimpleITK, Plotly, OpenCV, 6 other tools, systems
- [9] doi:10.1364/boe.605322 [code]
- Generalized plaque digitization framework for multi-dimensional mesoscopic images.Journal: Biomedical optics expressIn common: SimpleITK, tifffile, OpenCV, 6 other tools, mouse
- [10] doi:10.1038/s41467-026-72454-0 [code]
- Dynamic neuronal ensembles encode burst-suppression revealed by cortex-wide optical-electrical interfaces.Journal: Nature communicationsIn common: tifffile, OpenCV, seaborn, 5 other tools, systems, mouse, 1 reference
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, 25 scripts, and 2 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:b501f187e8ac178c…
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.
