Skip to content

About

MATLAB toolbox for OpenNEURO datasets

Resources

Stars

2 stars

Watchers

11 watching

Forks

Latest commit

 

History

90 Commits

Folders and files

Repository files navigation

OpenNEURO for MATLAB

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.

Open in MATLAB Online

🚧This is at a first proof-of-concept stage, not yet ready for alpha testing🚧

Usage

>> ds = openneuro.Dataset('ds001415');
>> anatDS = ds.Participantwise('JSON Files');

Input Arguments

  • '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

Example: Read a JSON file

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

Requirements

  • MATLAB R2023a or later

License

(C) 2023 Johanna Bayer

About

MATLAB toolbox for OpenNEURO datasets

Resources

Stars

2 stars

Watchers

11 watching

Forks

Releases

Packages

Contributors

Languages