Skip to content
This repository has been archived by the owner on Jul 21, 2022. It is now read-only.
/ emg_from_lfp Public archive

Derive EMG from LFP through correlation of high-frequency activity.

Notifications You must be signed in to change notification settings

CSC-UW/emg_from_lfp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

emg_from_lfp

This package is no longer maintained here, and has been moved to ecephys.emg_from_lfp

Derive EMG from LFP through correlation of highfrequency activity.

This code is basically a Python translation and readaptation of the bz_EMGFromLFP.m function from Buzsaki's lab. (https://github.com/buzsakilab/buzcode/blob/master/detectors/bz_EMGFromLFP.m). Based on Erik Schomburg's and code and work, published in `Theta Phase Segregation of Input-Specific Gamma Patterns in Entorhinal-Hippocampal Networks, Schomburg et al., Neuron 2014.``

Tom Bugnon, 01/2020

Installation

# From the `emg_from_lfp` directory you just downloaded
pip install -e .

Command-line usage:

  1. Copy the default configuration file (EMG_config_df)

  2. Manually set the parameters for the copied config file.

  • From the command line (make sure you're in your virtualenvironment)

python -m emg_from_lfp <path_to_config_file>

  • From python:
import emg_from_lfp

emg_from_lfp.run({config_dict}) # See function docstring
  1. Load the computed data with
import emg_from_lfp

# Load
emg_from_lfp.load_emg(
  <path_to_EMGdata>, tStart=None, tEnd=None, desired_length=None
)

About

Derive EMG from LFP through correlation of high-frequency activity.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •