Working on my dissertation, and I have used Nipype to analyze my data.
I have (simplified) first-level conditions defined like so:
# A1 A2 A3 A4 B1 B2 B3 B4
cont1 = ['A1 > A4', 'T', cond_names, [ 0.5, 0, 0, -0.5, 0, 0, 0, 0]]
cont2 = ['B1 > B4', 'T', cond_names, [ 0, 0, 0, 0, 0.5, 0, 0, -0.5]]
What I would like to do is find the statistical differences between these contrasts. I have an spmT_0001.nii
for each contrast after the second-level analysis.
Is it valid to do something like:
fslmaths con_0001/task-ao/spmT_0001.nii -sub con_0002/task-ao/spmT_0001.nii -thr 1.96 alt_diff_pos.nii
to find areas of statistically significant differences?
If not, is there a way to do this without completely reinventing the wheel? Participants have four runs each, and onset times differ for each, so first-level analysis isn’t too cut and dried either (e.g. as in this nilearn example where onsets are the same for everyone.
Is there a way I could dump all the first-level run-0{1,2,3,4}-SPM.mat
files for each subject into, nilearn or SPM, define a contrast between my contrasts and get a t-image?
Thanks for any advice!