Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 5 additions & 6 deletions src/spm_2_bids.m
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
% :param verbose: boolean
%
% :returns: - :new_filename: (string) BIDS compatible filename
% for example ``sub-01_ses-01_space-IXI549Space_desc-preproc_T1w.nii``;
% for example ``sub-01_ses-01_space-MNI152NLin2009cAsym_desc-preproc_T1w.nii``;
% - :pth: (string) relative BIDS path
% for example ``sub-01/ses-01``
% - :json: (structure) JSON derivatives content
Expand Down Expand Up @@ -185,11 +185,10 @@
content = rmfield(content, 'Sources');
end

if isfield(bf.entities, 'space') && strcmp(bf.entities.space, 'IXI549Space')
content.SpatialReference = struct('IXI549Space', ...
['Reference space defined by the average ', ...
'of the ''549 subjects from the IXI dataset'' ', ...
'linearly transformed to ICBM MNI 452.']);
if isfield(bf.entities, 'space') && strcmp(bf.entities.space, 'space-MNI152NLin2009cAsym')
content.SpatialReference = struct('space-MNI152NLin2009cAsym', ...
['ICBM 152 Nonlinear Asymmetrical template version 2009c ', ...
'http://nist.mni.mcgill.ca/?p=904']);
end

json.content = content;
Expand Down