MiSleep: Mice Sleep EEG/EMG visualization, scoring and analysis.
Project description
MiSleep
MiSleep is for EEG/EMG signal processing and visualization
Get start
pip install misleep==0.2.2b0
New features
- New data structure
You can save the original data as a new data structure (See Data save protocol
).
Where you can add the channels' name, sampling rate and the acquisition time into
the original data.
- Annotate more details
Here we provide the start_end mode as a more precise way to annotate the event such
as Slow Wave Activities or Spindle, e.t. You can select the Start-End
mode in
the Annotation tool dock and click wherever in the signal area to annotate the
event.
- Tool bar dock
Now you can move the toolbar to wherever you want.
- Color for state
Different color background for different sleep states. Now the color map is:
Init: White; NREM: Orange; REM: Blue; Wake: Red.
Future: you can self-define the color for each sleep state.
Data save protocol
You need to use matlab for data saving, the final data should be a structure.
If you are using TDT for recording, here is the example script to save the data.
tdt_data = ...
data.EEG_F = tdt_data.streams.EEG1.data(1, :);
data.EEG_P = tdt_data.streams.EEG1.data(2, :);
data.EEG_DIFF = data.EEG_F - data.EEG_P
data.EMG_1 = tdt_data.streams.EMG1.data(1, :);
data.EMG_2 = tdt_data.streams.EMG1.data(2, :);
data.EMG_DIFF = data.EMG_1 - data.EMG_2;
data.REF = data.streams.mou1.data(1, :);
data.channels = {'EEG_F' 'EEG_P' 'EEG_DIFF' 'EMG_1' 'EMG_2' 'EMG_DIFF' 'REF'}
data.sf = {305.1758 305.1758 305.1758 305.1758 305.1758 305.1758 305.1758}
data.time = {'20240409-18:00:00'}
And an example of result data:
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file misleep-0.2.2b0.tar.gz
.
File metadata
- Download URL: misleep-0.2.2b0.tar.gz
- Upload date:
- Size: 74.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.8.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 033e13fca80883be642759b84991c2a4e16bd3db26c70970042149b7deba8ab1 |
|
MD5 | 19e59d4e76927fde3dc5aa6d5cde707b |
|
BLAKE2b-256 | b43485ab36d21a9a2b62e79d29bec12838c27b723227eabd499127564583e49d |
File details
Details for the file misleep-0.2.2b0-py2.py3-none-any.whl
.
File metadata
- Download URL: misleep-0.2.2b0-py2.py3-none-any.whl
- Upload date:
- Size: 95.3 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.8.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ab1f7cce1c941a1a995a965319b0be50fefbd5e66bed8f30a8665b3c7edf9f0e |
|
MD5 | 783232c12d08279d211948ae924f9133 |
|
BLAKE2b-256 | 47b6445d9d59687318f1262a7bd8dc8b9310b9b478c7108b27ec1bc50c6b791d |