Where to get source code?

Hi,

I am working on a project, first thing to deal with is importing .fif file,
my friend directed me to your software and told me it is an open source
project that I could learn from your code, but I don’t find source code
in download page. Is it an open-source project? If not, wonder if you
can recommend someone who knows how to import .fif file in Java.

Thanks!
Huang

Hi Huang:

Yes, it is open-source as a collection of Matlab and Java scripts. All the scientific part of the software is in Matlab, hence easy to read and all files are well-commented. When you register to the website, you then access the download page where you can download brainstorm_130514.zip, which is where the code is. As mentioned above, it contains a series of .m files for Matlab, which you can also browse and edit using a regular text editor. Hope this helps.

Thanks for your quick reply. I am interested in the part which import .fif file, I think
it is in Java script? but I didn’t find Java script after I download zip.

All the code for reading MEG/EEG files is in plain Matlab scripts in the folder brainstorm3/toolbox/io folder. To my knowledge there is no public reader in Java for FIF files.
The code for reading Neuromag FIF files relies on the MNE Matlab toolbox written by Matti Hamalainen (part of it is in brainstorm3/export/mne).

You should ask the authors of this code, and investigate what is available in the MNE and MNE-python programs:
http://martinos.org/mne/index.html
http://martinos.org/mne/mne-python.html

Thanks! You have been very helpful.

hi,

FYI the mne-matlab code that Brainstorm uses is available at :

https://github.com/mne-tools/mne-matlab

you're welcome to send us a patch if you find any bug.

if you want just to report a problem please report it at:

https://github.com/mne-tools/mne-matlab/issues

Best,
Alex