示例#1
0
文件: glm_ui.py 项目: Solvi/pyhrf
    def __init__(self, contrasts={'dummy_contrast_example':'3*audio-video/3'},
                 contrast_test_baseline=0.0,
                 hrf_model='Canonical', drift_model='Cosine', hfcut=128.,
                 residuals_model='spherical',fit_method='ols',
                 outputPrefix='glm_', rescale_results=False,
                 rescale_factor_file='', fir_delays=[0]):

        FMRIAnalyser.__init__(self, outputPrefix)
        xmlio.XMLable2.__init__(self)


        self.hrf_model = hrf_model
        self.drift_model = drift_model
        self.fir_delays = fir_delays
        self.hfcut = hfcut
        self.residuals_model = residuals_model
        self.fit_method = fit_method
        self.contrasts = contrasts
        self.contrasts.pop('dummy_contrast_example',None)
        self.con_bl = contrast_test_baseline
        self.rescale_results = rescale_results

        if rescale_factor_file != '':
            self.rescale_factor = xndarray.load(rescale_factor_file).data
        else:
            self.rescale_factor = None
示例#2
0
    def __init__(self,
                 contrasts={'dummy_contrast_example': '3*audio-video/3'},
                 contrast_test_baseline=0.0,
                 hrf_model='Canonical',
                 drift_model='Cosine',
                 hfcut=128.,
                 residuals_model='spherical',
                 fit_method='ols',
                 outputPrefix='glm_',
                 rescale_results=False,
                 rescale_factor_file=None,
                 fir_delays=[0],
                 output_fit=False):

        xmlio.XmlInitable.__init__(self)
        FMRIAnalyser.__init__(self, outputPrefix)

        self.output_fit = output_fit
        self.hrf_model = hrf_model
        self.drift_model = drift_model
        self.fir_delays = fir_delays
        self.hfcut = hfcut
        self.residuals_model = residuals_model
        self.fit_method = fit_method
        self.contrasts = contrasts
        self.contrasts.pop('dummy_contrast_example', None)
        self.con_bl = contrast_test_baseline
        self.rescale_results = rescale_results

        if rescale_factor_file is not None:
            self.rescale_factor = xndarray.load(rescale_factor_file).data
        else:
            self.rescale_factor = None
示例#3
0
    def __init__(self, HrfEstimator=RFIREstim(), outputPrefix='hrf_'):
        xmlio.XmlInitable.__init__(self)
        FMRIAnalyser.__init__(self, outputPrefix='rfir_')

        self.hEstimator = HrfEstimator
示例#4
0
    def __init__(self, HrfEstimator=RFIREstim(), outputPrefix='hrf_'):
        xmlio.XmlInitable.__init__(self)
        FMRIAnalyser.__init__(self, outputPrefix='rfir_')

        self.hEstimator = HrfEstimator
示例#5
0
 def __init__(self, outputPrefix="glm_"):
     FMRIAnalyser.__init__(self, outputPrefix)
示例#6
0
文件: rfir_ui.py 项目: philouc/pyhrf
 def __init__(self, HrfEstimator=RFIREstim(), outputPrefix="hrf_"):
     FMRIAnalyser.__init__(self, outputPrefix="rfir_")
     xmlio.XMLable2.__init__(self)
     self.hEstimator = HrfEstimator
示例#7
0
文件: jde.py 项目: zddzxxsmile/pyhrf
 def __init__(self, outputPrefix='jde_', pass_error=True):
     FMRIAnalyser.__init__(self, outputPrefix, pass_error=pass_error)
示例#8
0
 def __init__(self, outputPrefix='glm_'):
     FMRIAnalyser.__init__(self, outputPrefix)
示例#9
0
文件: jde.py 项目: ainafp/pyhrf
 def __init__(self, outputPrefix='jde_', pass_error=True):
     FMRIAnalyser.__init__(self, outputPrefix, pass_error=pass_error)
示例#10
0
 def __init__(self, outputPrefix='glm_'):
     FMRIAnalyser.__init__(self, outputPrefix)