read the layout of a BIDS dataset (see bids.layout),
perform queries on that layout to get information about the subjects,
sessions, runs, modalities, metadata... contained within that dataset (see
bids.query),
parse the layout of "BIDS-derivative compatible" datasets (like those
generated by fMRIprep),
create BIDS compatible filenames or folder structures for raw or derivatives
datasets (bids.File, bids.util.mkdir,
bids.dataset_description),
do basic copying of files to help initialize a derivative dataset
to start a new analysis (bids.copy_to_derivative),
generate a human readable report of the content of BIDS data set containing
anatomical MRI, functional MRI, diffusion weighted imaging, field map data
(see bids.report)
read and write JSON files (see bids.util.jsondecode and
bids.util.jsonwrite) provided that the right
dependencies are installed,
read and write TSV files (see bids.util.tsvread and bids.util.tsvwrite)
access and query the BIDS schema (bids.schema)
The behavior of this toolbox assumes that it is interacting with a valid BIDS
dataset that should have been validated using
BIDS-validator. If the
Node.js version of the validator is
installed on your computer,
you can call it from the matlab prompt using bids.validate. Just be aware that
any unvalidated components may produce undefined behavior. Although, if you're
BIDS-y enough, the behavior may be predictable.
What this toolbox cannot do... yet
generate human readable reports of the content of BIDS data with EEG, MEG,
iEEG, physio and events data,
deal with some of the incoming BIDS extensions (BIDS model...)
What will this toolbox most likely never do
act as a Matlab / Octave based BIDS-validator
act as a BIDS converter
implement reading / writing capabilities for the different modality-specific
data format that exist in BIDS (.nii, .eeg, .ds, .fif...)
Usage
BIDS matlab is structured as package, so you can easily access functions in subfolders
that start with +.
A
tutorial
is available as a Jupyter Notebook and can be run interactively via
Binder.
Requirements
BIDS-MATLAB works with:
Octave 5.2.0 or newer
MATLAB R2014a or newer
We aim for compatibility with the latest stable release of Octave at any time.
Compatibility can sometimes also be achieved with older versions of Octave but
this is not guaranteed.
Reading and writing JSON files
If you are using MATLAB R2016b or newer, nothing else needs to be installed.
If you are using MATLAB R2016a or older, or using Octave, you need to install a
supported JSON library for your MATLAB or Octave. This can be any of:
请发表评论