-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Importing Neuroscan Evoked and Epochs-like files #12367
Comments
|
I just use the struct library to read the raw binary data @larsoner. According to this site (which mne cites as a reference for cnt.py) Here are how the various formats are structured: |
Yeah if we can reuse all the header and info setting code then the new epochs and evoked functions can hopefully be very short! |
Okay Thanks! Before I start should I work on this in the cnt.py file? If so, should the file be renamed to |
Yes I think |
Hey @larsoner , I don't think Neuroscan stores the event times of epochs with respect to the original data, just a list of epochs and some metadata related to response latencies/event code. Is it all right if I include an option to make up event sampling times? I am not really familiar with the kit and eeglab file formats so I am unsure if the readers also do this for those file types |
Yes I would just make them up as https://mne.tools/stable/generated/mne.read_epochs_kit.html I suspect we have no option but to make up times of some sort, so I wouldn't bother making any option to control it (just try to do something reasonable) |
Describe the new feature or enhancement
Adding support for importing .avg and .eeg neuroscan files as evoked and epochs objects.
Describe your proposed implementation
I have written simple scripts using
struct
to read the raw byte data. I could add these scripts to mne in the form of amne.read_neuroscan_epochs()
function. Here is an example:Describe possible alternatives
I am also working on writing some C++ code to do this as well that mne could make use of.
Ultimately, it may also be simpler to write a separate library myself and just create EpochsArrays from scratch.
Additional context
No response
The text was updated successfully, but these errors were encountered: