cpp-lln-lab / spm_2_bids

convert SPM output to BIDS derivatives
https://spm-2-bids.readthedocs.io/en/latest/
GNU General Public License v3.0
2 stars 1 forks source link
bids converter matlab spm

tests and coverage with matlab codecov DOI View spm_2_bids on File Exchange

spm_2_bids

Small code base to help convert the MRI spm output to a valid bids derivatives.

This code only generates the plausible BIDS derivatives filename for given file that has been preprocessed with SPM.

Most of the renaming is based on the SPM prefixes combinations.

It is configurable to adapt to new set of prefixes.

Dependencies

Can be installed with :

For MATLAB

make install_dev

For Octave

make install_dev_octave

Usage

file = 'wmsub-01_desc-skullstripped_T1w.nii';

[new_filename, pth, json] = spm_2_bids(file);

new_filename =

 'sub-01_space-IXI549Space_desc-preproc_T1w.nii');

For more see the documentation.