Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adjust cat12 output space to MNI152NLin2009cAsym #80

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
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')
FeHoff marked this conversation as resolved.
Show resolved Hide resolved
content.SpatialReference = struct('space-MNI152NLin2009cAsym', ...

Check warning on line 189 in src/spm_2_bids.m

View check run for this annotation

Codecov / codecov/patch

src/spm_2_bids.m#L189

Added line #L189 was not covered by tests
['ICBM 152 Nonlinear Asymmetrical template version 2009c ', ...
'http://nist.mni.mcgill.ca/?p=904']);
end

json.content = content;
Expand Down