MyGit

pillowlab/GLMspiketraintutorial

Fork: 36 Star: 91 (更新于 2024-10-24 23:35:57)

license: MIT

Language: MATLAB .

Simple tutorial on Gaussian and Poisson GLMs for single and multi-neuron spike train data

GitHub网址

GLMspiketraintutorial

Simple tutorial on Gaussian and Poisson generalized linear models (GLMs) for spike train data.
Author: Jonathan Pillow, Nov 2016.

NEW (Feb 2022): There is now a python version of this tutorial!

Slides: This tutorial was prepared for use in a "Short Course" on Data Science and Data Skills for Neuroscientists organized at the SFN 2016 meeting. The slides used during the 1-hour presentation are available here.

Dataset: A small dataset required for the tutorial is available here. (Simply download this dataset, unzip it, and place it in the directory where you are running the tutorial).

Description: This tutorial contains four scripts that introduce various methods for fitting and simulating from Gaussian and Poisson regression models for spike train data. Each script is self-contained, with 'blocks' of code that can be executed interactively, which demonstrate each step in the fitting / analysis / model comparison pipeline:

  • tutorial1_PoissonGLM.m - illustrates the fitting of a linear-Gaussian GLM (also known as the 'linear least-squares regression model') and a Poisson GLM (aka 'linear-nonlinear-Poisson' model) to single retinal ganglion cell responses to a temporal white noise stimulus.

  • tutorial2_spikehistcoupledGLM.m - fitting of an autoregressive Poisson GLM (i.e., a GLM with spike-history) and a multivariate autoregressive Poisson GLM (a GLM with spike-history AND coupling between neurons).

  • tutorial3_regularization_linGauss.m - regularizing linear-Gaussian model parameters using maximum a posteriori (MAP) estimation under two kinds of priors:

    • (1) ridge regression (aka "L2 penalty");
    • (2) L2 smoothing prior (aka "graph Laplacian").
  • tutorial4_regularization_PoissonGLM.m - MAP estimation of Poisson-GLM parameters using same two priors considered in tutorial3.



Citation: If you wish to cite this tutorial, feel free to acknowledge the paper from which it developed:
Pillow et al, Nature 2008.



Relevance / comparison to other GLM packages:

This tutorial is designed primarily for pedagogical purposes. The tutorial scripts are (almost entirely) self-contained, making it easy to understand the basic steps involved in simulating and fitting. It is easy to alter these scripts (e.g., to incorporate different kinds of regressors, or different kinds of priors for regularization). However, this implementation is not memory-efficient and does not support some of the advanced features available in other GLM packages (e.g., smooth basis functions for spike-history filters, memory-efficient temporal convolutions, different timescales for stimulus and spike-history components, low-rank parametrization of spatio-temporal filters, flexible handling of trial-based data). For more advanced features and applications, see the following two repositories:

  • neuroGLM - designed for single-neuron, trial-structured data. Supports flexible design matrices with multiple types of regressors. Relevant pub: Park et al, Nat Neurosci 2014.

  • GLMspiketools - designed for single- and multi-neuron spike trains with flexible nonlinearities, multiple timescales, and low-rank parametrization of filters. Relevant pub: Pillow et al, Nature 2008.

最近版本更新:(数据更新于 2024-09-10 09:49:56)

pillowlab/GLMspiketraintutorial同语言 MATLAB最近更新仓库

2024-11-05 14:39:56 BIMK/PlatEMO

2023-11-01 01:41:52 cvnlab/GLMsingle

2022-09-02 00:24:19 kmansouri/OPERA

2020-11-30 22:26:07 ultralytics/functions-matlab

1970-01-01 00:00:00 KeshengZhang/PlatEMOv2.6

1970-01-01 00:00:00 yh-sh/MOPIO