Giter Site home page Giter Site logo

eden-kramer-lab / replay_identification Goto Github PK

View Code? Open in Web Editor NEW
5.0 4.0 3.0 132.38 MB

A semi-latent state-space model that combines movement, LFP, and ensemble spiking information to identify periods of replay and decode its content in real time. Long Tao et al., unpublished.

License: MIT License

Shell 0.01% Python 99.99%
hippocampus neuroscience lfp replay state-space

replay_identification's Introduction

replay_identification

PR Test Binder DOI

A semi-latent state-space model that combines movement, LFP, and ensemble single unit/multiunit information to identify periods of replay and decode its content.

NOTE: This code is still in production and prepublication.

Installation

replay_identification can be installed through pypi or conda. Conda is the best way to ensure that everything is installed properly.

pip install replay_identification
python setup.py install

Or

conda install -c edeno replay_identification
python setup.py install

Usage

See the notebooks (#1, #2) for more information on how to use the package.

You can also use the launch binder button at the top of the Readme to play with simulated data in your web browser.

Package Requirements

  • numpy
  • scipy
  • statsmodels
  • numba
  • matplotlib
  • xarray
  • scikit-learn
  • regularized_glm

See the setup.pyor environment.yml file for the most up to date list of dependencies.

Developer Installation

  1. Install miniconda (or anaconda) if it isn't already installed. Type into bash (or install from the anaconda website):
wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
bash miniconda.sh -b -p $HOME/miniconda
export PATH="$HOME/miniconda/bin:$PATH"
hash -r
  1. Go to the local repository (.../replay_identification) and install the anaconda environment for the repository. Type into bash:
conda update -q conda
conda info -a
conda env create -f environment.yml
source activate replay_identification
python setup.py develop

replay_identification's People

Contributors

edeno avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

replay_identification's Issues

Speed up prediction of LFP power

The slowest part of prediction is computing the lfp power likelihood. Maybe shift this to parametric or figure out a faster way than using statsmodels KDEMultivariate

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.