-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #425 from CerenB/cer-bidsConcatFix
bidsConcatBetaTmaps. fix
- Loading branch information
Showing
5 changed files
with
89 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"Name": "vismotion", | ||
"Description": "This model only has simple contrasts for MVPA", | ||
"Input": { | ||
"task": "vismotion" | ||
}, | ||
"Steps": [ | ||
{ | ||
"Level": "subject", | ||
"AutoContrasts": [ | ||
"trial_type.VisMot", | ||
"trial_type.VisStat" | ||
] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
function test_suite = test_bidsConcatBetaTmaps %#ok<*STOUT> | ||
% | ||
% (C) Copyright 2019 CPP_SPM developers | ||
try % assignment of 'localfunctions' is necessary in Matlab >= 2016 | ||
test_functions = localfunctions(); %#ok<*NASGU> | ||
catch % no problem; early Matlab versions can use initTestSuite fine | ||
end | ||
initTestSuite; | ||
end | ||
|
||
function test_bidsConcatBetaTmapsBasic() | ||
|
||
subLabel = '01'; | ||
funcFWHM = 6; | ||
|
||
opt = setOptions('vismotion', subLabel); | ||
opt.dryRun = true; | ||
|
||
opt.model.file = spm_file(opt.model.file, 'filename', 'model-vismotionMVPA_smdl.json'); | ||
|
||
bidsConcatBetaTmaps(opt, funcFWHM); | ||
|
||
ffxDir = getFFXdir(subLabel, funcFWHM, opt); | ||
content = bids.util.tsvread(fullfile(ffxDir, ... | ||
'sub-01_task-vismotion_space-MNI_labelfold.tsv')); | ||
|
||
expectedContent = struct('labels', {{'VisMot*bf(1)'; 'VisStat*bf(1)'}}, 'folds', [1; 1]); | ||
|
||
assertEqual(content, expectedContent); | ||
|
||
delete(fullfile(ffxDir, 'sub-01_task-vismotion_space-MNI_labelfold.tsv')); | ||
|
||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
v1.1.2 | ||
v1.1.3 |