question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add option to save/export raw to .mat

See original GitHub issue

I’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:closed
  • Created 5 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
cbrnrcommented, Mar 1, 2019

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.

0reactions
cbrnrcommented, Mar 12, 2019

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), because pyedflib always seems to write in increments of 1 second…

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found