Git Product home page Git Product logo

poissyfit's Introduction

poissyFit

This Matlab code estimates the Poisson firing rate that underlies measured fluorescence in calcium imaging experiments.

The theory behind this is described here: Ganmor, E., Krumin, M., Rossi, L. F., Carandini, M. & Simoncelli, E. P. Direct Estimation of Firing Rates from Calcium Imaging Data. 1โ€“34 (2016). http://arxiv.org/abs/1601.00364

The key assumptions are:

  1. Spike counts are distributed according to a Poisson distribution with an underlying rate (lambda).
  2. Each spike produces a fixed amount of extra fluorescence (fPerSpike) and this decays exponentially over time (tau).
  3. The fluorescence is corrupted with additive Gaussian noise.

If these assumptions are met, this code will estimate a tuning curve (rate as a function of a set of conditions in an experiment) better than the standard sequential approach in which spike deconvolution is used to estimate spike times/counts, and then a tuning curve is estimated from these spike count estimates.

My implementation borrows heavily from the code at https://github.com/eladganmor/Imaging_Analysis. I primarily added code comments, added optimization parameters, bootstrapping.

Bart Krekelberg - May 2023.

Installation

Clone this repository to your machine (e.g. to c:\github\poissyFit), and add the folder to your Matlab path addpath('c:\github\poissyFit'). Then check out the demos folder:

Analysis of Simulated Data:

  1. demos/simple.m : non-parametric Poisson rate estimation
  2. demos/parametric.m : parametric tuning curve estimation (von Mises)
  3. demons/twoVonMises.m : tuning curve estimation (two von Mises functions)

Analysis of Experimental Data

1.demos/directionTuning.m

poissyfit's People

Contributors

bartkrekelberg 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.