A MATLAB® toolbox for accessing remote datasets stored on OpenNEURO data archive. OpenNEURO only stores BIDS-compliant datasets, so OpenNEURO for MATLAB is also BIDS-aware.
OpenNeuro Matlab Interface — A lightweight interface for inspecting OpenNeuro datasets and reading and processing meaningful subsets in MATLAB.
🚧This is at a first proof-of-concept stage, not yet ready for alpha testing🚧
>> ds = openneuro.Dataset('ds001415');
>> anatDS = ds.Participantwise('JSON Files');'dsXXXXX': OpenNeuro dataset ID (e.g.,'ds001415').- (
data type) can be one of the following:
| Type | Folder | File Extensions | Read Function |
|---|---|---|---|
'Anatomical NIfTI' |
anat |
.nii, .nii.gz |
niftiread |
'EEG EDF' |
eeg |
.edf |
edfread |
'Functional NIfTI' |
func |
.nii, .nii.gz |
niftiread |
'DWI' |
dwi |
.nii, .nii.gz |
niftiread |
'Fieldmap' |
fmap |
.nii, .nii.gz |
niftiread |
'JSON Files' |
anat |
.json |
@(f) jsondecode(fileread(f)) |
'TSV Files' |
anat |
.tsv, .txt |
readtable |
if anatDS.hasdata()
[data, info] = anatDS.read(); % No arguments as required
fprintf(' ✓ MVP read successful: %s\n', info.Filename);
else
fprintf(' ✗ No data available (normal if dataset folder doesn''t exist)\n');
end- MATLAB R2023a or later
(C) 2023 Johanna Bayer