Skip to content
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

FIX - updated c-code, previous version did not compile for me #1

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 5 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ MED/MEF Data Format FieldTrip External Toolbox (mef_reader_fieldtrip)
Introduction
------------

**mef_reader_fieldtrip** is a [Fieldtrip](http://www.fieldtriptoolbox.org/) external toolbox that reads data compressed in Multiscale Electrophysiology Format (or Mayo EEG File, MEF) and, an upgraded format, Multiscale Electrophysiology Data (MED).
Current version is capable of reading [MEF Version 2.1](https://github.com/benbrinkmann/mef_lib_2_1), [3.0](https://msel.mayo.edu/codes.html) and [MED version 1.0](http://darkhorseneuro.com/) files.
**mef_reader_fieldtrip** is a MATLAB toolbox that can be used in combination with [Fieldtrip](http://www.fieldtriptoolbox.org/) to read data compressed in Multiscale Electrophysiology Format (or Mayo EEG File, MEF) and, an upgraded format, Multiscale Electrophysiology Data (MED).
The current version is capable of reading [MEF Version 2.1](https://github.com/benbrinkmann/mef_lib_2_1), [3.0](https://msel.mayo.edu/codes.html) and [MED version 1.0](http://darkhorseneuro.com/) files.
The code of **mef_reader_fieldtrip** is hosted on Github [repository](https://github.com/jiecui/mef_reader_fieldtrip).
The backbone of the toolbox is a C-MEX package which is also employed in [MEF_import](https://github.com/jiecui/MEF_import) to import MEF/MED datasets into [EEGLAB](https://sccn.ucsd.edu/eeglab/index.php).

Expand All @@ -20,17 +20,16 @@ Installation
```matlab
addpath(genpath('/path/to/DHN/root'))
```
Note that this code is needed for the MED 1.0 format, and that the downloaded mex-files have been pre-compiled. An incompatibility between your system's libraries and the actual libraries that are expected by the mex-file cannot be resolved. A typical solution would be to compile the source code on your system, but in absence of source code this will not be possible.

1. Download and install [FieldTrip](https://github.com/fieldtrip/fieldtrip). Assume that the root directory of FieldTrip is `/path/to/fieldtrip/root/folder`.
(_Please note that at present, **mef_reader_fieldtrip** has not been merged officially into FieldTrip.
You may download a fork of FieldTrip [here](https://github.com/jiecui/fieldtrip/tree/master), where the toolbox has been installed_).
1. Download a recent FieldTrip version, or clone the master branch of [FieldTrip](https://github.com/fieldtrip/fieldtrip). Ensure the MATLAB path settings to be correct by executing the ```ft_defaults``` script in the FieldTrip root folder: `/path/to/fieldtrip/root/folder`.

```matlab
addpath('/path/to/fieldtrip/root/folder')
ft_defaults
```

1. Download [mef_reader_fieldtrip](https://github.com/jiecui/mef_reader_fieldtrip) package and unzip it if necessary.
1. Download or clone [mef_reader_fieldtrip](https://github.com/jiecui/mef_reader_fieldtrip) package and unzip it if necessary.
1. If the version of Fieldtrip is not capable of recognizing MEF data type, look for the directory `fieldtrip` in **mef_reader_fieldtrip** package and then copy it to the root directory of FieldTrip `/path/to/fieldtrip/root/folder`.
1. Otherwise, check the `external` directory of Fieldtrip. If the folder `mayo_mef` exists, go to next step. If not, only copy the folder `mayo_mef` under the directory `external` of **mef_reader_fieldtrip** package to the `external` directory of FieldTrip.
1. In MATLAB, install the **mayo_mef** external toolbox by typing command
Expand Down
42 changes: 21 additions & 21 deletions fieldtrip/external/mayo_mef/mex_mef/mef_3p0/matmef/meflib/LICENSE.txt
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
MEF 3.0 C Library
------------------------------
Specification for Multiscale Electrophysiology Format (MEF) version 3.0
Copyright 2013, Mayo Foundation, Rochester MN. All rights reserved.
Written by Matt Stead, Ben Brinkmann, and Dan Crepeau.
Usage and modification of this source code is governed by the Apache 2.0 license.
You may not use this file except in compliance with this License.
A copy of the Apache 2.0 License may be obtained at http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under this License is distributed on an "as is" basis,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either expressed or implied.
See the License for the specific language governing permissions and
limitations under the License.
Thanks to all who acknowledge the Mayo Systems Electrophysiology Laboratory, Rochester, MN
in academic publications of their work facilitated by this software.
For further information about mef_lib.c API see meflib.c or documentation.
MEF 3.0 C Library
------------------------------

Specification for Multiscale Electrophysiology Format (MEF) version 3.0
Copyright 2013, Mayo Foundation, Rochester MN. All rights reserved.
Written by Matt Stead, Ben Brinkmann, and Dan Crepeau.

Usage and modification of this source code is governed by the Apache 2.0 license.
You may not use this file except in compliance with this License.
A copy of the Apache 2.0 License may be obtained at http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under this License is distributed on an "as is" basis,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either expressed or implied.
See the License for the specific language governing permissions and
limitations under the License.

Thanks to all who acknowledge the Mayo Systems Electrophysiology Laboratory, Rochester, MN
in academic publications of their work facilitated by this software.

For further information about mef_lib.c API see meflib.c or documentation.
Loading