bioRxivNeurosciencePreprint
Pyfiber: an open source python library that facilitates the merge of operant behavior and fiber photometry- focus on intravenous self-administration
Dana ConliskiD, Matias CeauiD, Jean-François FiancetteiD, Nânci WinkeiD, Elise Darmagnac, Cyril HerryiD, Véronique Deroche‐GamonetiD
Abstract
BackgroundAdvances in in vivo fluorescent imaging have exploded with the recent developments of genetically encoded calcium indicators (GECIs) and fluorescent biosensors. Their use with a bulk imaging technique such as fiber photometry (FP) can be highly beneficial in identifying neuronal signatures in behavioral neuroscience experiments. Popularity of FP has grown rapidly. Initially applied to classical conditioning, its integration into operant behavior paradigms is progressing. However, in operant behavior, protocols can be complex including numerous scheduled events, while behavioral responses can occur in diverse and non-predictable manners. To optimize data processing and analysis, there is a need for a flexible tool to extract and relate behavioral and fiber photometry data occurring over operant sessions. New MethodApplied to cocaine intravenous self-administration (using Imetronic polymodal apparati) and FP recordings in the prelimbic cortex (using Doric Lenses photometry system) in the rat, we established Pyfiber, an outline and open source data analysis python library that facilitates the merge of fiber photometry (using Doric Lenses) with operant behavior (using Imetronic). It allows relating activity changes within a neuronal population to the various behavioral responses and events occurring during operant behavior. ResultsWe show some of the possibilities and benefits of the analytical tool Pyfiber, which helps to: 1. Extract the different types of events that occur in an operant session, 2. Extract and process the fiber photometry signals, 3. Select events of interest and align them to the corresponding fiber photometry signals, 4. Apply the most appropriate type of FP signal normalization and signal analysis according to the studied type of event or behavioral response, 5. Run data extraction and analysis on multiple individuals and sessions at the same time, 6. Collect results in an easily readable format for statistical analysis. From our data and through the use of Pyfiber, we show that we can successfully record and easily analyze calcium transients surrounding events occurring during a cocaine self-administration paradigm in the rat. Comparison with Existing Method(s)While other analytical tools can be used for streamlined fiber photometry analysis, they are either too rigid and specific or too flexible, requiring extensive coding to properly fit the data sets. Additionally, current tools do not permit easy exploration of multiple types of events in parallel- something that is possible with Pyfiber. ConclusionsThis work established an open source resource that facilitates the pairing of fiber photometry recordings (using Doric Lenses photometry system) with operant behavior (using Imetronic polymodal apparati), setting a solid foundation in analyzing the relationship between different dimensions of operant behavior with fluorescent signals from brain regions of interest.
- organism: rat
- assay: spatial transcriptomics
- assay: imaging
- research focus: cell type annotation
- research focus: clustering
- research focus: dimensionality reduction
- research focus: benchmarking
- approach: experimental assay
- Citations
- 1
Reproducibility ledger
Nobody has reported trying to reproduce this paper yet. Did you replicate an experiment or run the code? Your report saves the next lab a week.
Sign in to file a reproducibility report.
Related papers
- pyPhotometry: Open source Python based hardware and software for fiber photometry data acquisition.
Thomas E. Akam, Mark E. Walton·Scientific ReportsPeer-reviewed·Mar 5, 2019
- FPmotion an Automated Signal Processing and Statistical Analysis Tool for Fiber Photometry Data
Ye Hong, Jismi John, … Thomas Tobilko·bioRxiv·Jan 20, 2026
- pMAT: An Open-Source Software Suite for the Analysis of Fiber Photometry Calcium Imaging
Carissa A. Bruno, Christopher OʼBrien, … David J. Barker·Pharmacology Biochemistry and BehaviorPeer-reviewed·Dec 29, 2020
- FiPhA: An Open-Source Platform for Fiber Photometry Analysis
Matthew F. Bridge, Leslie R. Wilson, … Jesse D. Cushman·NeurophotonicsPeer-reviewed·Feb 23, 2024
- FiPhoPHA - A fiber photometry python package for post-hoc analysis
Vasilios Drakopoulos, Alex Reichenbach, … Zane Bruce Andrews·eNeuroPeer-reviewed·Jul 29, 2025
- GuPPy, a Python toolbox for the analysis of fiber photometry data
Venus N. Sherathiya, Michael D. Schaid, … Talia N. Lerner·Scientific ReportsPeer-reviewed·Dec 20, 2021