Skip to main content

MiSleep: Mice Sleep EEG/EMG visualization, scoring and analysis.

Project description

MiSleep

MiSleep is for EEG/EMG signal processing and visualization

logo

Get start

pip install misleep==0.1.3b

New features

  1. 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.

  1. 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.

  1. Tool bar dock

dock

Now you can move the toolbar to wherever you want.

  1. Color for state

statecolor

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:

Alt text

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

misleep-0.1.3b0.tar.gz (70.3 kB view details)

Uploaded Source

Built Distribution

misleep-0.1.3b0-py2.py3-none-any.whl (89.5 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file misleep-0.1.3b0.tar.gz.

File metadata

  • Download URL: misleep-0.1.3b0.tar.gz
  • Upload date:
  • Size: 70.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.8.18

File hashes

Hashes for misleep-0.1.3b0.tar.gz
Algorithm Hash digest
SHA256 71d9b37627d8224264c97c1e0bbb1bed12942e04dd3adeb9ca3bbd505569e96f
MD5 dd15352630b7ff50660ef1b7b4f29b5a
BLAKE2b-256 0100ac9db96e9359fe14bdcd185fa685bf74997c29d5991d495262cfd5df6e78

See more details on using hashes here.

File details

Details for the file misleep-0.1.3b0-py2.py3-none-any.whl.

File metadata

  • Download URL: misleep-0.1.3b0-py2.py3-none-any.whl
  • Upload date:
  • Size: 89.5 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.8.18

File hashes

Hashes for misleep-0.1.3b0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 d0b7bb87b471e37530ed65885ad68244848a8f4d2fd09ab7998938a551d90da3
MD5 55455f5476261a943fc07dd4153c60f7
BLAKE2b-256 7de5836642228cc9158435495ba741fcc99b298527aa31560114652425ad9a98

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page