Center for Computational Biology, Flatiron Institute, Simons Foundation, New York, United States; Department of Statistics, Columbia University, New York, United States; Center for Theoretical Neuroscience, Columbia University, New York, United States
Pat Gunn
Center for Computational Biology, Flatiron Institute, Simons Foundation, New York, United States
Department of Statistics, Columbia University, New York, United States; Center for Theoretical Neuroscience, Columbia University, New York, United States
Baljit S Khakh
Department of Physiology, University of California, Los Angeles, Los Angeles, United States; Department of Neurobiology, University of California, Los Angeles, Los Angeles, United States
Advances in fluorescence microscopy enable monitoring larger brain areas in-vivo with finer time resolution. The resulting data rates require reproducible analysis pipelines that are reliable, fully automated, and scalable to datasets generated over the course of months. We present CaImAn, an open-source library for calcium imaging data analysis. CaImAn provides automatic and scalable methods to address problems common to pre-processing, including motion correction, neural activity identification, and registration across different sessions of data collection. It does this while requiring minimal user intervention, with good scalability on computers ranging from laptops to high-performance computing clusters. CaImAn is suitable for two-photon and one-photon imaging, and also enables real-time analysis on streaming data. To benchmark the performance of CaImAn we collected and combined a corpus of manual annotations from multiple labelers on nine mouse two-photon datasets. We demonstrate that CaImAn achieves near-human performance in detecting locations of active neurons.