Mensen / swa-matlab

Sleep Wave Analysis - an open source toolbox for matlab to score and analyse various waveforms in sleep EEG data
52 stars 20 forks source link

Set number of channels to display #49

Open AgustinSolano opened 7 years ago

AgustinSolano commented 7 years ago

Hi, Is there any possibility of adding the option of setting the number of channels to be displayed? After reading the code (swa_SleepScoring) I think it is possible. In fact, I made some modifications and could see more channels but I didn't manage to set the montage correctly.

Maybe when you load a new dataset the program could ask you about the number of channels to display.

What do you think?

Mensen commented 7 years ago

Another similar question came recently. Of course, having more flexibility there is an advantage, and that's why most of my efforts have been working to make the "csc_eeg_plotter", which is a more flexible viewing tool for all sorts of HD-EEG recordings also capable of sleep scoring.

You can get this more "pre-processing" toolbox at: https://github.com/CSC-UW/csc-eeg-tools

It doesn't yet fully support traditional sleep scoring. But its actually the one I'm using for my own sleep scoring the past few months. There, I can set up a montage anyway I want it, include separate scaling values to certain channels (e.g. upscale EMG), and define the number of channels with other scrolling options. To sleep score I set up 5 different event markers and then mark the beginning of the distinct stages.

I find this departure from traditional 30s windows to second-specific marking will probably need more theoretical foundation in the future, but in principle its an improvement to the arbitrary 30s cut-offs for staging.

I know this isn't quite the answer you wanted, but this is the direction I'm taking at the moment and once I'm happy with all the options, it will also be the recommended route within this toolbox. Hence I haven't been doing much with the swa_SleepScoring lately unfortunately.

AgustinSolano commented 7 years ago

Thanks Armand! I will check the new toolbox but I think it could work. Can I change the number of Events types (the default are 4 events)? If I have any doubt I write again.

Thanks again!

Mensen commented 7 years ago

I'm still working on the event types... but for now you can just set line 23:

handles.number_of_event_types = 4; % how many event types do you want?

to whatever number you like... I usually go with the 6 so that I can mark artifacts already there using the 6th event.

I realise its still not the ideal way, and most user friendly, but I don't often get a chance to work on the toolbox so sometimes progress can be a little slow.