@@ -36,8 +36,6 @@ class CompCorInputSpec(BaseInterfaceInputSpec):
36
36
'pre-component extraction' )
37
37
regress_poly_degree = traits .Range (low = 1 , default = 1 , usedefault = True ,
38
38
desc = 'the degree polynomial to use' )
39
- extra_regressors = File (exists = True , mandatory = False ,
40
- desc = 'additional regressors to add' )
41
39
42
40
class CompCorOutputSpec (TraitedSpec ):
43
41
components_file = File (exists = True ,
@@ -90,10 +88,6 @@ def _run_interface(self, runtime):
90
88
# principal components using a singular value decomposition."
91
89
u , _ , _ = linalg .svd (M , full_matrices = False )
92
90
components = u [:, :self .inputs .num_components ]
93
- if self .inputs .extra_regressors :
94
- components = self ._add_extras (components ,
95
- self .inputs .extra_regressors )
96
-
97
91
components_file = os .path .join (os .getcwd (), self .inputs .components_file )
98
92
np .savetxt (components_file , components , fmt = "%.10f" )
99
93
return runtime
@@ -108,13 +102,8 @@ def _compute_tSTD(self, M, x):
108
102
# set bad values to x
109
103
stdM [stdM == 0 ] = x
110
104
stdM [np .isnan (stdM )] = x
111
- stdM [np .isinf (stdM )] = x
112
105
return stdM
113
106
114
- def _add_extras (self , components , extra_regressors ):
115
- regressors = np .genfromtxt (self .inputs .extra_regressors )
116
- return np .hstack ((components , regressors ))
117
-
118
107
class TCompCorInputSpec (CompCorInputSpec ):
119
108
# and all the fields in CompCorInputSpec
120
109
percentile_threshold = traits .Range (low = 0. , high = 1. , value = .02 ,
0 commit comments