A Matlab Toolbox for Brain Imaging Data Structure (BIDS) Standard
BIDS Class object implements the skeleton for the interface between a file folder validly organized to the BIDS data organization standard and the representation of its information in structures and tables. Moreover, it utilizes MATLAB table and datastore types to load/show data within a given Amazon S3 bucket and folder.
>> dataset = BIDS(bucket, ID,modality)
Input Arguments:
bucket
base AWS S3 pathID
folder within AWS S3 bucketmodality
(optional) dataset type
Output:
dataset
a BIDS Class Object
Participants
Data table taken from 'participants.tsv' fileBIDSData
Cell for # BIDSDataStore # objectsAbout_Dataset
Data from root 'dataset_description.json' fileInfo
Data taken from root 'participants.json' fileFolder_Files
Complete directory folder and files structureEncoding
Data encoding information (bucket, ID, root dir, modality, modality_properties)
>> myBIDSDataStore = dataset.BIDSData{num}
read
Read data in datastorereadall
Read all data in datastoreviewall
View all files in datastorereset
Reset datastore to initial stagehasdata
Determine if data is available to read
Open in MATLAB Online to run Live Script of BIDS Usage Example
Compatible with R2023a