-
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 #585 from Remi-Gau/parametric_and_f_test
[ENH] Add parametric modulation to run / subject level GLM
- Loading branch information
Showing
10 changed files
with
277 additions
and
31 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,28 @@ | ||
% This script will run the FFX and contrasts | ||
% on the the face repetition dataset from SPM. | ||
% | ||
% Results might be a bit different from those in the manual as some | ||
% default options are slightly different in this pipeline (e.g use of FAST | ||
% instead of AR(1)...) | ||
% | ||
% (C) Copyright 2019 Remi Gau | ||
|
||
% TODO | ||
% - create the contrast similar to the tuto | ||
|
||
clear; | ||
clc; | ||
|
||
addpath(fullfile(pwd, '..', '..')); | ||
cpp_spm(); | ||
|
||
opt = face_rep_get_option_results(); | ||
opt.space = 'IXI549Space'; | ||
|
||
opt.model.file = spm_file(opt.model.file, 'basename', 'model-faceRepetitionParametric_smdl'); | ||
opt.model.bm = BidsModel('file', opt.model.file); | ||
|
||
bidsFFX('specifyAndEstimate', opt); | ||
% bidsFFX('contrasts', opt); | ||
|
||
% bidsResults(opt); |
117 changes: 117 additions & 0 deletions
117
demos/face_repetition/models/model-faceRepetitionParametric_smdl.json
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,117 @@ | ||
{ | ||
"Name": "parametric modulation", | ||
"BIDSModelVersion": "1.0.0", | ||
"Description": "model for face repetition", | ||
"Input": { | ||
"task": [ | ||
"facerepetition" | ||
] | ||
}, | ||
"Nodes": [ | ||
{ | ||
"Level": "Run", | ||
"Name": "run_level", | ||
"GroupBy": [ | ||
"run", | ||
"subject" | ||
], | ||
"Transformations": { | ||
"Description": "merge the familiarity and repetition column to create the trial type column", | ||
"Transformer": "cpp_spm", | ||
"Instructions": [ | ||
{ | ||
"Name": "Concatenate", | ||
"Input": [ | ||
"face_type", | ||
"repetition_type" | ||
], | ||
"Output": "trial_type" | ||
}, | ||
{ | ||
"Name": "Copy", | ||
"Input": "lag", | ||
"Output": "pmod_lag" | ||
}, | ||
{ | ||
"Name": "Power", | ||
"Input": "lag", | ||
"Value": 2, | ||
"Output": "pmod_lag_squared" | ||
} | ||
] | ||
}, | ||
"Model": { | ||
"X": [ | ||
"trial_type.famous_1", | ||
"trial_type.famous_2", | ||
"trial_type.unfamiliar_1", | ||
"trial_type.unfamiliar_2", | ||
"trans_?", | ||
"rot_?" | ||
], | ||
"HRF": { | ||
"Variables": [ | ||
"trial_type.famous_1", | ||
"trial_type.famous_2", | ||
"trial_type.unfamiliar_1", | ||
"trial_type.unfamiliar_2" | ||
], | ||
"Model": "DoubleGamma" | ||
}, | ||
"Type": "glm", | ||
"Options": { | ||
"HighPassFilterCutoffHz": 0.0078 | ||
}, | ||
"Software": { | ||
"SPM": { | ||
"SerialCorrelation": "AR(1)", | ||
"HRFderivatives": "TemporalDispersion" | ||
} | ||
} | ||
}, | ||
"DummyContrasts": { | ||
"Test": "t", | ||
"Contrasts": [ | ||
"trial_type.famous_1", | ||
"trial_type.famous_2", | ||
"trial_type.unfamiliar_1", | ||
"trial_type.unfamiliar_2" | ||
] | ||
}, | ||
"Contrasts": [ | ||
{ | ||
"Name": "faces_gt_baseline", | ||
"ConditionList": [ | ||
"trial_type.famous_1", | ||
"trial_type.famous_2", | ||
"trial_type.unfamiliar_1", | ||
"trial_type.unfamiliar_2" | ||
], | ||
"Weights": [ | ||
1, | ||
1, | ||
1, | ||
1 | ||
], | ||
"Test": "t" | ||
}, | ||
{ | ||
"Name": "faces_lt_baseline", | ||
"ConditionList": [ | ||
"trial_type.famous_1", | ||
"trial_type.famous_2", | ||
"trial_type.unfamiliar_1", | ||
"trial_type.unfamiliar_2" | ||
], | ||
"Weights": [ | ||
-1, | ||
-1, | ||
-1, | ||
-1 | ||
], | ||
"Test": "t" | ||
} | ||
] | ||
} | ||
] | ||
} |
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
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
Binary file not shown.
Oops, something went wrong.