MNE-BIDS: Organizing electrophysiological data into the BIDS format and facilitating their analysis

  • Appelhoff S
  • Sanderson M
  • Brooks T
  • et al.
N/ACitations
Citations of this article
56Readers
Mendeley users who have this article in their library.

Abstract

The development of the Brain Imaging Data Structure (BIDS; Gorgolewski et al., 2016) gave the neuroscientific community a standard to organize and share data. BIDS prescribes file naming conventions and a folder structure to store data in a set of already existing file formats. Next to rules about organization of the data itself, BIDS provides standardized templates to store associated metadata in the form of Javascript Object Notation (JSON) and tab separated value (TSV) files. It thus facilitates data sharing, eases metadata querying, and enables automatic data analysis pipelines. BIDS is a rich system to curate, aggregate, and annotate neuroimaging databases. While BIDS was originally intended for magnetic resonance imaging (MRI) data, it has extensions for other data modalities including: magnetoencephalography (MEG; Niso et al., 2018), electroencephalography (EEG; Pernet et al., 2019), and intracranial encephalography (iEEG; Holdgraf et al., 2019). Software packages analyzing MEG, EEG, and iEEG are now starting to support data organized using the BIDS standard, thereby becoming "BIDS compat-ible". Within the Python ecosystem, MNE-Python (Gramfort et al., 2013) is a major software package for electrophysiology data analysis, and extending its functionality to support BIDS would be a great benefit for its growing user base. For this reason, we developed a dedicated Python software package MNE-BIDS with the goal of providing a programmable interface for BIDS datasets in electrophysiology with MNE-Python. MNE-BIDS allows users to reorganize data into BIDS formats, store associated metadata after anonymization, extract information necessary for preprocessing, and read the data into MNE-Python objects, ready for source localization. Starting with a single directory full of data files with arbitrary names, MNE-BIDS can be used to extract existing metadata, reorganize the files into the BIDS format, and write additional Appelhoff et al., (2019). MNE-BIDS: Organizing electrophysiological data into the BIDS format and facilitating their analysis. Journal of Open Source Software, 4(44), 1896. https://doi.org/10.21105/joss.01896 1 metadata. All the conversion routines are thoroughly tested by running the output through the BIDS validator. Moreover, MNE-BIDS supports converting data formats that are not BIDS compatible into permissible formats. These utilities allow users to easily convert their datasets to BIDS in a matter of minutes, rather than hours of manual labour. In addition to this core functionality, MNE-BIDS is continuously being extended to facilitate the analysis of BIDS formatted data. Some features include: reading a BIDS dataset as a set of Python objects for analysis with MNE-Python, defacing T1-weighted anatomical MRI images to anonymize data and facilitate sharing, and saving anatomical landmark coordinates to enable coregistration between the MEG/EEG and MRI data, which is necessary for computation of forward and inverse solutions. Users can easily install MNE-BIDS on all major platforms via pip and conda, and its function-ality is continuously tested on Windows, macOS, and Linux. Other than the core dependencies for scientific computing (numpy, scipy) and handling of MEG/EEG data (mne), MNE-BIDS has minimal dependencies, all of which are optional. The Application Programming Interface (API) of the package is stable and extensively documented and explained in examples (https://mne.tools/mne-bids/). In addition, a command-line interface is provided that allows non-Python users to benefit from the core functionality. As of writing, MNE-BIDS has received code contributions from 15 contributors and its user base is steadily growing. Code development is active and the developer team is committed to provide timely support for issues opened on the GitHub issue tracker. MNE-BIDS is used as a dependency in several other software packages such as the MNE-study-template, an automated pipeline for group analysis with MNE (Jas et al., 2018), and Biscuit, a graphical user interface to format BIDS data. Lastly, several large institutions have adopted MNE-BIDS for their workflows such as the Martinos Center for Biomedical Imaging. The developer team is excited to improve the state of the art in data handling and looking forward to welcoming new contributors and users.

Cite

CITATION STYLE

APA

Appelhoff, S., Sanderson, M., Brooks, T., van Vliet, M., Quentin, R., Holdgraf, C., … Jas, M. (2019). MNE-BIDS: Organizing electrophysiological data into the BIDS format and facilitating their analysis. Journal of Open Source Software, 4(44), 1896. https://doi.org/10.21105/joss.01896

Register to see more suggestions

Mendeley helps you to discover research relevant for your work.

Already have an account?

Save time finding and organizing research with Mendeley

Sign up for free