OSCR

Functional imaging of nine distinct neuronal populations under a miniscope in freely behaving animals.

Code ↔ Paper

2 matches between paragraphs of the paper and lines of its authors' code, computed by the harvester (lexical-v1). Click a colored paragraph or line to see its counterpart.

The 2 matches
  1. [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. [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

  1. import copy
  2. import re
  3. from collections.abc import Iterable
  4. import cv2
  5. import numpy as np
  6. import pandas as pd
  7. import SimpleITK as sitk
  8. from scipy.ndimage import gaussian_filter
  9. from .utilities import normalize
  10. def process_temp(
  11. im: np.ndarray, dn_sigma=5, back_sigma=50, blk_wnd=(11, 11), q_thres=None
  12. ):
  13. if not isinstance(blk_wnd, Iterable):
  14. blk_wnd = (blk_wnd, blk_wnd)
  15. im_ps = gaussian_filter(im, dn_sigma)
  16. im_ps = remove_background(im_ps, back_sigma)
  17. krn = cv2.getStructuringElement(cv2.MORPH_ELLIPSE, blk_wnd)
  18. im_ps = cv2.morphologyEx(im_ps, cv2.MORPH_BLACKHAT, krn)
  19. if q_thres is not None:
  20. q = np.quantile(im_ps, q_thres)
  21. im_ps[im_ps < q] = im_ps.min()
  22. return normalize(im_ps)
  23. def remove_background(im, back_sigma):
  24. back = gaussian_filter(im, back_sigma)
  25. return im - back
  26. def apply_tx(
  27. fm: np.ndarray, tx: sitk.Transform, fill: float = 0, ref: np.ndarray = None
  28. ):
  29. if ref is None:
  30. ref = fm
  31. else:
  32. ref = sitk.GetImageFromArray(ref)
  33. fm = sitk.GetImageFromArray(fm)
  34. fm = sitk.Resample(fm, ref, tx, sitk.sitkLinear, fill)
  35. return sitk.GetArrayFromImage(fm)
  36. def it_callback(reg, param_dict):
  37. param = reg.GetOptimizerPosition()
  38. param_dict[param] = reg.GetMetricValue()
  39. def est_sim(
  40. src: np.ndarray,
  41. dst: np.ndarray,
  42. exhaustive: bool,
  43. trans_init=None,
  44. src_ma=None,
  45. dst_ma=None,
  46. lr: float = 0.5,
  47. niter: int = 1000,
  48. scal_init=1.9,
  49. scal_stp=1e-2,
  50. scal_nstp=3,
  51. ang_stp=np.deg2rad(1),
  52. ang_nstp=3,
  53. trans_stp=(1.0, 1.0),
  54. trans_nstp=(3, 3),
  55. ):
  56. src = sitk.GetImageFromArray(src.astype(np.float32))
  57. dst = sitk.GetImageFromArray(dst.astype(np.float32))
  58. reg = sitk.ImageRegistrationMethod()
  59. if src_ma is not None:
  60. reg.SetMetricMovingMask(sitk.GetImageFromArray(src_ma.astype(np.uint8)))
  61. if dst_ma is not None:
  62. reg.SetMetricFixedMask(sitk.GetImageFromArray(dst_ma.astype(np.uint8)))
  63. if trans_init is None:
  64. trans_init = sitk.CenteredTransformInitializer(
  65. dst,
  66. src,
  67. sitk.Similarity2DTransform(1 / scal_init),
  68. sitk.CenteredTransformInitializerFilter.GEOMETRY,
  69. )
  70. reg.SetInitialTransform(trans_init)
  71. reg.SetMetricAsCorrelation()
  72. reg.SetInterpolator(sitk.sitkLinear)
  73. # reg.SetOptimizerAsRegularStepGradientDescent(
  74. # learningRate=lr,
  75. # minStep=1e-7,
  76. # numberOfIterations=niter,
  77. # )
  78. if exhaustive:
  79. if not isinstance(trans_stp, Iterable):
  80. trans_stp = (trans_stp, trans_stp)
  81. if not isinstance(trans_nstp, Iterable):
  82. trans_nstp = (trans_nstp, trans_nstp)
  83. reg.SetOptimizerAsExhaustive(
  84. [scal_nstp, ang_nstp, trans_nstp[0], trans_nstp[1]]
  85. )
  86. reg.SetOptimizerScales(
  87. [
  88. 1 / scal_init - 1 / (scal_init + scal_stp),
  89. ang_stp,
  90. trans_stp[0],
  91. trans_stp[1],
  92. ]
  93. )
  94. else:
  95. reg.SetOptimizerAsGradientDescent(learningRate=lr, numberOfIterations=niter)
  96. reg.SetOptimizerScalesFromPhysicalShift()
  97. param_dict = dict()
  98. reg.AddCommand(sitk.sitkIterationEvent, lambda: it_callback(reg, param_dict))
  99. tx = reg.Execute(dst, src).Downcast()
  100. param_df = (
  101. pd.Series(param_dict)
  102. .reset_index(name="metric")
  103. .rename(
  104. columns={
  105. "level_0": "scale",
  106. "level_1": "angle",
  107. "level_2": "transX",
  108. "level_3": "transY",
  109. }
  110. )
  111. )
  112. return tx, param_df
  113. def estimate_tranform(src, dst, **kwargs):
  114. tx_exh, param_exh = est_sim(src, dst, exhaustive=True, **kwargs)
  115. tx_gd, param_gd = est_sim(
  116. src, dst, exhaustive=False, trans_init=copy.deepcopy(tx_exh), **kwargs
  117. )
  118. param_exh["stage"] = "exhaustive"
  119. param_gd["stage"] = "gradient"
  120. return tx_gd, tx_exh, pd.concat([param_exh, param_gd], ignore_index=True)
  121. def thres_roi(roi, th):
  122. nzvals = roi[roi > 0]
  123. thres = np.quantile(nzvals, th)
  124. return np.where(roi > thres, roi, 0)

coregistration.py at commit ccd94d8, no license · at the source

Overview

Authors: Mary L Phillips1,2, Nicolai T Urban1, Taddeo Salemi1, Zhe Dong3, Ryohei Yasuda1
  1. Max Planck Florida Institute for Neuroscience Jupiter United States
  2. ZEISS Research Microscopy Solutions White Plains United States
  3. MetaCell Boston United States
Journal: eLife, volume 15, article RP110277
Dates: published online 12 May 2026
Type: Research article · Language: English
License: CC BY
Identifiers: DOI 10.7554/elife.110277 · PMID 42117453 · PMCID PMC13167110 · OpenAlex W7131885036
Open access: gold, a free copy (OpenAlex)
Status: code verified
Categories: histology / microscopy (modality), optical imaging (calcium, voltage, 2-photon) (modality), mouse (organism), systems (subfield)
Methods: Statistics, Preprocessing, Machine learning, fMRI & imaging, Single-unit activity, calcium imaging
Keywords: Miniscope, confocal microscopy, social behavior, multiplexing, Mouse
MeSH: Behavior, Animal*, Neurons*, Optical Imaging*, Animals, Mice, Microscopy, Confocal (* major topic)
Journal subjects: Neuroscience
Topic: Advanced Fluorescence Microscopy Techniques (Biophysics, Biochemistry, Genetics and Molecular Biology), according to OpenAlex
Citations: cited by 1 paper (Europe PMC); 29 references in the paper
Research resources: pCAG-mTagBFP2 RRID:Addgene_122373, CMV-mCyRFP2-CREB RRID:Addgene_137003, mVenus RRID:Addgene_198192, mTurquoise2 RRID:Addgene_198196, pcDNA3-mNeptune2.5 RRID:Addgene_51310, mT-Sapphire-C1 RRID:Addgene_54545, mOrange2-N1 RRID:Addgene_54568, FusionRed-pBAD RRID:Addgene_54677, pmScarlet-H_C1 RRID:Addgene_85043, B6.Cg-Tg(Camk2a-tTA)1Mmay/DboJ mice RRID:IMSR_JAX:007004, B6.DBA-Tg(tetO-GCaMP6s)2Niell/J mice RRID:IMSR_JAX:024742, Matlab RRID:SCR_001622, nVoke2 RRID:SCR_023028, JAABA RRID:SCR_027430

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

License: none: the authors keep all their rights
State: the link answers, verified on 28 September 2026
Evidence: files inventoried
Commit: ccd94d881aa5a456b81ab4f601a780878766f151, 11 December 2025
Languages: Python (12)
Size: 332 files, 12 scripts
Software Heritage: not archived
Found in: the resources table
Holds: README
Not found: license file, CITATION.cff, environment file, tests, continuous integration, documentation
Tools: NumPy (11 files), xarray (9 files), pandas (8 files), OpenCV (4 files), SciPy (4 files), Matplotlib (3 files), SimpleITK (3 files), Plotly (1 file), scikit-learn (1 file), tifffile (1 file)
Availability: 1 check, the latest on 28 September 2026: the link answers
  • 28 September 2026: the link answers
13 files

MetaCell/Zeiss-Data-Science

License: MIT
State: the link answers, verified on 28 September 2026
Evidence: files inventoried
Commit: a21b69c599cacdb45b3f6dd414fc215b53f947f7, 22 July 2025
Languages: Python (13)
Size: 1,051 files, 13 scripts
Software Heritage: not archived
Found in: “Code and data availability”
Holds: license file
Not found: README, CITATION.cff, environment file, tests, continuous integration, documentation
Tools: NumPy (12 files), pandas (11 files), xarray (10 files), Plotly (9 files), SciPy (7 files), Matplotlib (5 files), seaborn (4 files), scikit-learn (3 files), statsmodels (2 files), OpenCV (1 file), tifffile (1 file)
Availability: 1 check, the latest on 28 September 2026: the link answers
  • 28 September 2026: the link answers
14 files

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

Data availability

All raw data are available at https://doi.org/10.5281/zenodo.17915226.

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/zenodo.17915226PMC1316711042117453

Reproduced under the paper's license (CC BY), from the paper cited above.

Code and data availability

Raw and processed data: https://bit.ly/NeuroplexData.

Code and data utilized in Neuroplex multispectral detection: GitHub - Neurocipher/PythonPipeline: Python pipeline for Neurocipher (https://github.com/Neurocipher/PythonPipeline) (copy archived at Neurocipher, 2025).

Code and data utilized in calcium/behavior correlation: https://github.com/MetaCell/Zeiss-Data-Science (copy archived at MetaCell, 2025).

A detailed tutorial on these processes can be found via this repository: https://zeiss.tourial.com/dc/MultiColorInVivoImaging.

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://doi.org/10.7554/elife.110277

BibTeX

@article{phillips2026functional,
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/elife.110277},
url = {https://doi.org/10.7554/elife.110277},
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/05/12
VL - 15
SP - RP110277
SN - 2050-084X
PB - eLife Sciences Publications, Ltd
DO - 10.7554/elife.110277
UR - https://doi.org/10.7554/elife.110277
LA - en
ER -

CSL-JSON

{
"id": "10.7554/elife.110277",
"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": "eLife",
"volume": "15",
"page": "RP110277",
"DOI": "10.7554/elife.110277",
"PMID": "42117453",
"PMCID": "PMC13167110",
"ISSN": "2050-084X",
"publisher": "eLife Sciences Publications, Ltd",
"URL": "https://doi.org/10.7554/elife.110277",
"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: iScience
In 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 control
Journal: eLife
In 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 Association
In 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 neuroscience
In 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 reports
In 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 neuroscience
In 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 neuroscience
In 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 communications
In 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 express
In 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 communications
In 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.

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.