@@ -331,15 +331,19 @@ class SpecifyModel(BaseInterface):
331
331
- amplitudes : lists of amplitudes for each event. This will be ignored by
332
332
SPM's Level1Design.
333
333
334
- The following two (tmod, pmod) will be ignored by any Level1Design class
335
- other than SPM:
334
+ The following three (tmod, pmod, orth) will be ignored by any Level1Design class other than SPM:
336
335
337
336
- tmod : lists of conditions that should be temporally modulated. Should
338
337
default to None if not being used.
339
338
- pmod : list of Bunch corresponding to conditions
340
339
- name : name of parametric modulator
341
340
- param : values of the modulator
342
341
- poly : degree of modulation
342
+ - orth : lists of instructions to orthogonolise parametric regressors or
343
+ not. Same as in SPM, use 'Yes' to indicate orthogonalisation, and 'No'
344
+ to explicitly prevent it. Use None for conditions where it is not being
345
+ used. Note that by default SPM will orthogonalise parametric regressors
346
+ in the order in which they are entered.
343
347
344
348
Alternatively, you can provide information through event files.
345
349
@@ -369,7 +373,7 @@ class SpecifyModel(BaseInterface):
369
373
None])
370
374
>>> evs_run3 = Bunch(conditions=['cond1', 'cond2'], onsets=[[20, 120], [80, 160]], \
371
375
durations=[[0], [0]], pmod=[Bunch(name=['amp'], poly=[2], param=[[1, 2]]), \
372
- None])
376
+ None], orth=['No', None] )
373
377
>>> s.inputs.subject_info = [evs_run2, evs_run3]
374
378
375
379
"""
@@ -414,6 +418,12 @@ def _generate_standard_design(self,
414
418
if hasattr (info , 'tmod' ) and info .tmod and \
415
419
len (info .tmod ) > cid :
416
420
sessinfo [i ]['cond' ][cid ]['tmod' ] = info .tmod [cid ]
421
+
422
+ if hasattr (info , 'orth' ) and info .orth :
423
+ if info .orth [cid ] == 'Yes' :
424
+ sessinfo [i ]['cond' ][cid ]['orth' ] = 1
425
+ elif info .orth [cid ] == 'No' :
426
+ sessinfo [i ]['cond' ][cid ]['orth' ] = 0
417
427
418
428
if hasattr (info , 'pmod' ) and info .pmod and \
419
429
len (info .pmod ) > cid :
0 commit comments