mne-tools / mne-matlab Goto Github PK
View Code? Open in Web Editor NEWMNE scripting with Matlab
License: BSD 3-Clause "New" or "Revised" License
MNE scripting with Matlab
License: BSD 3-Clause "New" or "Revised" License
forward operator should not be aware of bad channels
I thought we had it already. ...
cc @agramfort
Hi MNE-matlab team,
Thanks for providing us this useful tools!
Recently I tried to read fif raw file via Brainstorm and got some error messages (as shown below). The message may indicate that the function in MNE-matlab "fiff_read_meas_info" called by in_fopen_fif.m may not read all required information from my fif files. Also, I got the same error message when I tried to read those fif files that I have ever successfully imported 6 month ago.
** Error: Line 131: Reference to non-existent field 'meas_date'.
**
** Call stack:
** >in_fopen_fif.m at 131
** >in_fopen.m at 68
** >import_raw.m at 126
** >bst_call.m at 28
** >tree_callbacks.m>@(h,ev)bst_call(@import_raw,[],[],iSubject) at 636
The following link can download a emptyroom fif file that was recorded. (Sorry. Because of the privacy issue, I could only provide the emptyroom data.)
https://drive.google.com/file/d/13MmoEk58t87w85_3PPF4-Hy_AeWL1gLa/view?usp=sharing
Could you please help me to figure out whether I did anything wrong?
Thank you very much!
Best,
Ling
Hello,
I try to read in matlab (with the mne-matlab tool) a source created in MNE-python with the additional information of patch.
I use in python the command mne.setup_source_space(sj, fname=True, spacing='ico4', subject_dir=<my_path>, add_dist=True), followed by mne.write_source_spaces(...) to have the fif file with patch information.
But when I read the file in matlab there isn't any information about the patch, i.e. the values nearest, nearest_info, pinfo, dist and dist_limit are empty.
Then I try to rewrite the file using one more step in python:
mne.read_source_spaces(..., patch_stats=True, ...) followed by mne.write_source_spaces(...)
and in this case when I try to read the fif file in matlab an error was reported:
Error using fiff_read_tag (line 178)
Only two and three dimensional matrices are supported at this time
How can I solve the problem? Because I need the patch information for my work at this step in matlab.
Hello,
CC @robertoostenveld, @agramfort
This is MNE-Fieldtrip format compatibility issue.
I tried to import -epo.fif file created in MNE python, latest version on today (v13) using fieldtrip cookbook:
%%%%%%%%%%%%%%%%%%%%%%%
fiff_file = '/MYPATH/myfile-epo.fif';
cfg = []
cfg.dataset = fiff_file;
data1 = ft_preprocessing(cfg);
%%%%%%%%%%%%%%%%%%%%%%%
I got en error:
Reference to non-existent field 'FIFFB_EPOCHS'.
Error using fiff_read_epochs (line 46)
Could not find epochs data
Error in fiff_read_epochs (line 46)
error(me,'Could not find epochs data');
Error in ft_read_header (line 1665)
epochs = fiff_read_epochs(filename);
Error in ft_preprocessing (line 397)
hdr = ft_read_header(cfg.headerfile, 'headerformat', cfg.headerformat, 'coordsys', cfg.coordsys, 'coilaccuracy', cfg.coilaccuracy);
I use the latest Fieldtrip version fieldtrip-lite-20161024. It seems that something is wrong with the data structure...?
Elena Orekhova
I try to read events from MNE-sample-data. The events can be loaded in MNE-Python version. However, with the same data set the error message "Could not find events" was printed in Matlab version.
fname = 'sample_audvis_filt-0-40_raw.fif';
[events, mappings] = fiff_read_events(fname);
Both line 38 and 52 in fiff_read_events.m, it seems that the FIFF predefined constants are not match to the data?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.