Skip to main content

An MNE project for organizing and formatting MEG and EEG data according to the BIDS specification.

Project description

Gitter Travis Appveyor codecov CircleCi Downloads

MNE-BIDS

This is a repository for creating BIDS-compatible datasets with MNE.

The documentation can be found under the following links:

Installation

We recommend the Anaconda Python distribution. We require that you use Python 3. Besides numpy and scipy (which are included in the standard Anaconda installation), you will need to install the most recent version of MNE using the pip tool:

$ pip install -U mne

Then install mne-bids:

$ pip install -U mne-bids

These pip commands also work if you want to upgrade if a newer version of mne-bids is available. If you do not have administrator privileges on the computer, use the --user flag with pip.

To check if everything worked fine, the following command should not give any error messages:

$ python -c 'import mne_bids'

For full functionality of mne-bids, you will also need to pip install the following packages:

  • nibabel, for interacting with MRI data

If you want to use the latest development version of mne-bids, use the following command:

$ pip install https://api.github.com/repos/mne-tools/mne-bids/zipball/master

Quickstart

Currently, we support writing of BIDS datasets for MEG and EEG. Support for iEEG is experimental at the moment.

>>> from mne import io
>>> from mne_bids import write_raw_bids
>>> raw = io.read_raw_fif('my_old_file.fif')
>>> write_raw_bids(raw, 'sub-01_ses-01_run-05', output_path='./bids_dataset')

Command Line Interface

In addition to import mne_bids, you can use the command line interface. Simply type mne_bids in your command line and press enter, to see the accepted commands. Then type mne_bids <command> --help, where <command> is one of the accepted commands, to get more information about that <command>.

Example:

$ mne_bids raw_to_bids --subject_id sub01 --task rest --raw data.edf --output_path new_path

Bug reports

Use the github issue tracker to report bugs.

Cite

If you use mne-bids in your work, please cite one of the following papers, depending on which modality you used:

MEG

Niso, G., Gorgolewski, K. J., Bock, E., Brooks, T. L., Flandin, G., Gramfort, A.,
Henson, R. N., Jas, M., Litvak, V., Moreau, J., Oostenveld, R., Schoffelen, J.,
Tadel, F., Wexler, J., Baillet, S. (2018). MEG-BIDS, the brain imaging data
structure extended to magnetoencephalography. Scientific Data, 5, 180110.
http://doi.org/10.1038/sdata.2018.110

EEG

Pernet, C. R., Appelhoff, S., Gorgolewski, K. J., Flandin, G.,
Phillips, C., Delorme, A., Oostenveld, R. (2019). EEG-BIDS, an extension
to the brain imaging data structure for electroencephalography. Scientific
Data, 6, 103. https://doi.org/10.1038/s41597-019-0104-8

iEEG

Holdgraf, C., Appelhoff, S., Bickel, S., Bouchard, K., D'Ambrosio, S.,
David, O., … Hermes, D. (2019). iEEG-BIDS, extending the Brain Imaging Data
Structure specification to human intracranial electrophysiology. Scientific
Data, 6, 102. https://doi.org/10.1038/s41597-019-0105-7

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mne-bids-0.3.tar.gz (53.3 kB view details)

Uploaded Source

Built Distributions

mne_bids-0.3-py3.6.egg (77.9 kB view details)

Uploaded Source

mne_bids-0.3-py3-none-any.whl (39.4 kB view details)

Uploaded Python 3

File details

Details for the file mne-bids-0.3.tar.gz.

File metadata

  • Download URL: mne-bids-0.3.tar.gz
  • Upload date:
  • Size: 53.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.1.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.8

File hashes

Hashes for mne-bids-0.3.tar.gz
Algorithm Hash digest
SHA256 187add419562e3607c161eaf04971863c134febad2e70313260a58238e519ba5
MD5 125501ab59a16c65fc76f2df0f8d96ea
BLAKE2b-256 132f0178d728da14ce716adf646555545bfc4ad0e57dc9fbecb9ae336490f2eb

See more details on using hashes here.

File details

Details for the file mne_bids-0.3-py3.6.egg.

File metadata

  • Download URL: mne_bids-0.3-py3.6.egg
  • Upload date:
  • Size: 77.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.1.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.8

File hashes

Hashes for mne_bids-0.3-py3.6.egg
Algorithm Hash digest
SHA256 fa9faefd06236671a70d8a08e8e249237b291feb28759e6b52a3eded5ccb0003
MD5 df7b3c46610f014ea6417e0744dabe48
BLAKE2b-256 4d3ba8b4b4687e3b48e6e981e2c45709170db3058127b75b036a4e59e120caf4

See more details on using hashes here.

File details

Details for the file mne_bids-0.3-py3-none-any.whl.

File metadata

  • Download URL: mne_bids-0.3-py3-none-any.whl
  • Upload date:
  • Size: 39.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.1.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.8

File hashes

Hashes for mne_bids-0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 8b67255525b105bc48adbd1e9eb194dca73af7a2da718b50034d6044edfd82d7
MD5 fa9e9cef787b81019be7dcd5edef69e3
BLAKE2b-256 a4d58fb90562d512810482ce2bbc4d43e645855dc31ccc31cc88f007253da0fc

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page