Add option to save/export raw to .mat
See original GitHub issueI’m thinking of adding an option to save a raw object (or at least the most essential information, such as the data, channel names, sampling frequency, etc.) to a .mat file in MNELAB. However, this might be something that could also be added directly to MNE. I’d probably add a new raw.export
method, because raw.save
saves all information to a FIFF file whereas I’m planning to export just the most essential fields (at least for now).
WDYT? Would this be something for MNE or should I rather add it to MNELAB?
Issue Analytics
- State:
- Created 5 years ago
- Comments:6 (6 by maintainers)
Top Results From Across the Web
Save workspace variables to file - MATLAB save - MathWorks
This MATLAB function saves all variables from the current workspace in a MATLAB formatted binary file (MAT-file) called filename.
Read more >mne.io.Raw — MNE 1.2.2 documentation - MNE-Python
Resample all channels. Save raw data to file. Filter the data using Savitzky-Golay polynomial method. Setter for annotations.
Read more >Save data to certain format - MNE Forum - Discourse
After adding a duplicate channel, I want to save the raw data back a *.edf format file: raw.save('sample_edf.edf',overwrite=True) The file seems to be...
Read more >How To Create, Save & Load Adobe Camera Raw Presets
https://www.shutterbuggs.com/ - In this video we're going to take a look at Camera Raw's preset panel. Now if we open up a raw...
Read more >Creating, Saving, and Loading Adobe Camera Raw Presets
During the saving of the preset in ACR there are quite a few options that allow you to optimize the Preset for use...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’ve implemented it in MNELAB. Basic export to .set works, including the data, channel names, sampling frequency, and events (converted from annotations). If anyone wants to give it a try and let me know if it works I’d be very happy (maybe @mmagnuski since you have indicated that you would be interested in a GUI for MNE?). Note that I expect that this works best with MNE 0.18, because otherwise synthesized stim channels get in the way. If we want that in MNE, I’m happy to port it over.
FYI, export to EDF also works in MNELAB (if
pyedflib
is installed), including annotations. I just didn’t find a way to write non-integer duration files (e.g. 20.2 seconds), becausepyedflib
always seems to write in increments of 1 second…