Skip to content
Discussion options

You must be logged in to vote

Hi, here's a few thoughts.

YASA doesn't really care about the MNE channel types. When you specify the channels during the initialization of a SleepStaging class (e.g., yasa.SleepStaging(raw, emg_name="EMG1-EMG2")), that will override whatever the MNE channel types are. So if you are not getting EMG features, the issue probably lies somewhere else.

I used the YASA sample data file from the Quickstart page (or direct link here) to show 2 things: (1) YASA doesn't care about MNE channel types, and (2) YASA is generating EMG features, at least in my setup.

import mne
import yasa

# Load and preprocess sample data with 3 channels
channels = ["C3-A2", "EMG1-EMG2", "ROC-A1"]
raw = mne.io.read_raw…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by raphaelvallat
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants