Jams you will return to again and again...
A set of tools for analyzing neural data after use of musclebeachtools. Also included are utility functions for various steps in analysis of chronic neural and behavioral data.
Find a tutorial in:
tutorial/eccojams_tutorial.ipynb
git clone https://github.com/hengenlab/eccojams.git
cd <location_of_eccojams>/eccojams/
pip install .
cd <location_of_eccojams>/eccojams/tutorial/example_data/
unzip example_data.zip
Open powershell/terminal
ipython
import eccojams as eco
1-27-23:
Now can select any event times by sleep state (not just ripples).
Example usage:
import numpy as np
import eccojams as eco
sleepdir = '/media/HlabShare/Sleep_Scoring/CAF00077/02022021/'
events = np.random.uniform(0,24*3600,1000)
sleepdf = eco.return_sleep_scores(sleepdir + 'CAF77_consensus.npy')
eco.eventtimes_by_state(events, sleepdf, 'nrem')