GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - Eden-Kramer-Lab/replay_classification: State space models for categorization of replay content from multiunit spiking activity. Deng et al. 2016

BranchesTags
Open more actions menu

Latest commit

 

History

176 Commits
176 Commits

Folders and files

NameName
Last commit message
Last commit date
examples
examples
 
 
replay_classification
replay_classification
 
 
tests
tests
 
 
.gitignore
.gitignore
 
 
.travis.yml
.travis.yml
 
 
LICENSE
LICENSE
 
 
Makefile
Makefile
 
 
README.md
README.md
 
 
environment.yml
environment.yml
 
 
postBuild
postBuild
 
 
replay_example.png
replay_example.png
 
 
setup.cfg
setup.cfg
 
 
setup.py
setup.py
 
 
state_probability.png
state_probability.png
 
 

Repository files navigation

replay_classification

Coverage Status DOI

Binder

replay_classification is a python package for categorizing hippocampal replay events using multiunit spiking activity. Multiunit spiking activity can be more informative than sorted spikes, because there is no need to distinguish between neurons. This has several advantages:

  1. We can take advantage of partial information from neurons that are not well separated in terms of electrophysiological signal.
  2. Saves time, because no spike-sorting step is necessary.

This package also provides:

  • Metrics for the confidence of classification, allowing for experimental intervention before a replay event is completed.

Probability of States

  • Convenient functions for diagnostic plotting.

Posterior Density

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

References and Citation

Please cite:

Deng, X., Liu, D.F., Karlsson, M.P., Frank, L.M., and Eden, U.T. (2016). Rapid classification of hippocampal replay content for real-time applications. Journal of Neurophysiology 116, 2221-2235.

and the DOI for the package repository (see the DOI badge at the start of the README).

Package Requirements

  • python>=3.5
  • numpy
  • scipy
  • pandas
  • xarray
  • statsmodels
  • matplotlib
  • seaborn
  • patsy
  • numba
  • holoviews

Installation

pip install replay_classification

Or

conda install -c edeno replay_classification

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_classification) 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_classification
python setup.py develop

Example Usage

  1. Classify replays into Inbound-Forward, Inbound-Reverse, Outbound-Forward, Outboud-Reverse using the clusterless decoder:
from replay_classification import ClusterlessDecoder

decoder = ClusterlessDecoder(
    position=linear_distance,
    trajectory_direction=trajectory_direction,
    spike_marks=test_marks,
    replay_speedup_factor=16,
)

decoder.fit()

results = decoder.predict(ripple_marks)
  1. Classify replays using sorted spikes:
from replay_classification import SortedSpikeDecoder

decoder = SortedSpikeDecoder(
    position=linear_distance,
    trajectory_direction=trajectory_direction,
    spikes=test_spikes,
    replay_speedup_factor=16,
)

decoder.fit()

results = decoder.predict(ripple_spikes)
  1. Decode only Inbound and Outbound by specifying the observation and state transition order:
from replay_classification import ClusterlessDecoder

decoder = ClusterlessDecoder(
    position=linear_distance,
    trajectory_direction=trajectory_direction,
    spike_marks=test_marks,
    observation_state_order=['Inbound', 'Outbound'],
    state_transition_state_order=['Inbound', 'Outbound'],
    state_names=['Inbound', 'Outbound'],
    initial_conditions='Uniform',
)

decoder.fit()

results = decoder.predict(ripple_spikes)
  1. Decode replay position:
from replay_classification import ClusterlessDecoder

decoder = ClusterlessDecoder(
    position=linear_distance,
    trajectory_direction=np.ones_like(position), spike_marks=test_marks,
    observation_state_order=[1],
    state_transition_state_order=[1],
    state_names=['replay_position'],
    initial_conditions='Uniform',
)

decoder.fit()

results = decoder.predict(ripple_spikes)

About

State space models for categorization of replay content from multiunit spiking activity. Deng et al. 2016

Topics

classify-replayshippocampusmarked-point-processmultiunitneuronsneurosciencepoissonreplayreplay-content-classificationsharp-wave-ripplestate-space-model

Resources

Readme
GPL-3.0 license
Activity
Custom properties

Stars

7 stars

Watchers

2 watching

Forks

6 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.