Giter Site home page Giter Site logo

gitter-badger / ca_source_extraction Goto Github PK

View Code? Open in Web Editor NEW

This project forked from flatironinstitute/caiman-matlab

0.0 2.0 0.0 18.5 MB

Matlab implementation of a source extraction and spike inference algorithm for large scale calcium imaging data analysis, based on a constrained matrix factorization approach.

License: GNU General Public License v2.0

MATLAB 96.52% C++ 3.48%

ca_source_extraction's Introduction

ca_source_extraction

The code implements a method for simultaneous source extraction and spike inference from large scale calcium imaging movies. The code is suitable for the analysis of somatic imaging data. Implementation for the analysis of dendritic/axonal imaging data will be added in the future.

The default options for the algorithm require the following packages:

  1. The constrained deconvolution package maintained separately in https://github.com/epnev/constrained-foopsi
  2. The CVX library which can be downloaded from http://cvxr.com/cvx/download/ (follow the installation instructions provided there)

The algorithm is presented in more detail in

Pnevmatikakis, E. A., Gao, Y., Soudry, D., Pfau, D., Lacefield, C., Poskanzer, K., ... & Paninski, L. (2014). A structured matrix factorization framework for large scale calcium imaging data analysis. arXiv preprint arXiv:1409.2903. http://arxiv.org/abs/1409.2903

function name description
demo_script.m wrapper code
demoMovie.tif Sample dataset for running the code (by W. Yang and D. Peterka)
update_spatial_components.m update spatial components given temporal components and data
update_temporal_components.m update temporal components given spatial components and data
merge_ROIs.m merge spatially overlapping components that are temporally correlated
utilities/arpfit.m estimation of noise level for every pixel and global time constants
utilities/bigread2.m read (parts of) large tiff stacks
utilities/com.m: calculation of the center of mass of each component
utilities/correlation_image.m calculates the correlation image of the movie
utilities/extract_DF_F.m transforming the temporal components in the DF/F domain
utilities/graph_connected_comp.m finds the connected components in a graph
utilities/greedyROI2d.m Greedy method for initializing the spatial and temporal components
utilities/interp_missing_data.m Filling in missing data using linear interpolation
utilities/lars_regression_noise.m solve a basis pursuit denoising problem using the LARS algorithm
utilities/make_G_matrix.m construct a convolution/deconvolution matrix
utilities/make_patch_video.m construct a video that displays the results of the algorithm
utilities/order_ROIs.m order found components based on their temporal activation and spatial size
utilities/plain_foopsi.m projection of fluorescence onto the cone formed by the indicator dynamics
utilities/plot_contours.m contour plot of found components and creation of a json file
utilities/tiff_reader.m loading a tiff stack into matlab
utilities/threshold_components.m mild post-processing of spatial components
utilities/view_patches.m plotting of each found component and its temporal activation

License

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.

ca_source_extraction's People

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.