Functional imaging of nine distinct neuronal populations under a miniscope in freely behaving animals.
2 blocks of code here have a permanent identifier (oscr:b:…), listed with the matches below: citable for good, with a page of its own. Select a match and press Cite to copy it. What a block identifier is.
The 2 matches
- [1] § Materials and methods › Co-registration of functionally defined neurons › nVoke to Zeiss registration ↔ routine/coregistration.py, lines 51 to 124 · score 0.66 · gradient descent, exhaustive, optimization, correlation, filter, transformation · block
oscr:b:GRP4TWTK0HJ15-N· Report a mismatch - [2] § Materials and methods › Linking neural activity to behavior and delineating by cell-type ↔ 02.specific_event_responses.py, lines 111 to 123 · score 0.50 · sankey diagram, aggression, social · block
oscr:b:TQYF8Q5G8VHR7-T· 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 · 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.7554/elife.70661 [code]
- Minian, an open-source miniscope analysis pipeline.Journal: eLifeIn common: xarray, SimpleITK, tifffile, 7 other tools, optical imaging (calcium, voltage, 2-photon), histology / microscopy, mouse, 7 references
- [2] doi:10.1126/sciadv.adr6470 [code]
- Simultaneous two-color imaging with a dual-channel miniscope in freely behaving mice.Journal: Science advancesIn common: xarray, SimpleITK, Plotly, 8 other tools, optical imaging (calcium, voltage, 2-photon), histology / microscopy, mouse, 4 references
- [3] doi:10.3389/fnagi.2025.1550673 [code]
- Disrupted calcium dynamics and electrophysiological activity in the stratum pyramidale and hippocampal alveus during fear conditioning in the 5xFAD model of Alzheimer's disease.Journal: Frontiers in aging neuroscienceIn common: xarray, SimpleITK, tifffile, 8 other tools, optical imaging (calcium, voltage, 2-photon), mouse, 2 references
- [4] doi:10.1073/pnas.2503139122 [code]
- Layer 1 NDNF interneurons form distinct subpopulations with opposite activation patterns during sleep in freely behaving mice.Journal: Proceedings of the National Academy of Sciences of the United States of AmericaIn common: xarray, SimpleITK, tifffile, 9 other tools, optical imaging (calcium, voltage, 2-photon), mouse, 1 reference
- [5] doi:10.1117/1.nph.13.s2.s23203 [code]
- MiniFAST: a sensitive and fast miniaturized microscope for &
lt;i& gt;in vivo& lt;/ i& gt; neural recording. Journal: NeurophotonicsIn common: OpenCV, seaborn, scikit-learn, 4 other tools, optical imaging (calcium, voltage, 2-photon), histology / microscopy, mouse, 5 references - [6] doi:10.3389/fnins.2021.797421 [code]
- Decontaminate Traces From Fluorescence Calcium Imaging Videos Using Targeted Non-negative Matrix Factorization.Journal: Frontiers in neuroscienceIn common: xarray, SimpleITK, tifffile, 8 other tools, optical imaging (calcium, voltage, 2-photon), 1 reference
- [7] doi:10.1016/j.neuron.2025.11.021 [code]
- Spontaneous behavior is a succession of self-directed tasks.Journal: NeuronIn common: Plotly, OpenCV, statsmodels, 6 other tools, systems, mouse, 3 references
- [8] doi:10.7554/elife.84262 [code]
- Multimodal mapping of cell types and projections in the central nucleus of the amygdala.Journal: eLifeIn common: SimpleITK, tifffile, OpenCV, 5 other tools, histology / microscopy, mouse, 2 references
- [9] doi:10.1038/s41467-026-68893-4 [code]
- Nested spatiotemporal theta-gamma waves organize hierarchical processing across the mouse visual cortex.Journal: Nature communicationsIn common: xarray, SimpleITK, OpenCV, 7 other tools, systems, mouse
- [10] doi:10.1038/s42003-024-06668-7 [code]
- Accurate neuron segmentation method for one-photon calcium imaging videos combining convolutional neural networks and clustering.Journal: Communications biologyIn common: tifffile, OpenCV, seaborn, 4 other tools, optical imaging (calcium, voltage, 2-photon), 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: 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:5bfddff6741d4db5…
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.7554/elife.110277)
<!-- oscr-badge:end -->reStructuredText
.. oscr-badge:start
.. image:: https://openscicode.org/badge/doi/10.7554/elife.110277.svg
:target: https://openscicode.org/badge/doi/10.7554/elife.110277
:alt: OSCR
.. oscr-badge:endHTML
<!-- oscr-badge:start -->
<a href="https://openscicode.org/badge/doi/10.7554/elife.110277"><img src="https://openscicode.org/badge/doi/10.7554/elife.110277.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".
- Neurocipher/PythonPipeline: README.md on GitHub
- MetaCell/Zeiss-Data-Science on GitHub (add a README there)
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.
