algorithm/vol_tools.py
def mvpa_space_roi2roi(self, roimask1, roimask2):
        """
        MVPA method for correlation between roi to roi
        ---------------------------------------------
        Parameters:
            roimask1, roimask2: roimasks
                                I haven't considered method how to check two roi have the same shape
        Output:
            r: correlation coefficient of signals between two spheres
            p: significant level
        """
        assert np.ndim(self._imgdata) == 3, "Dimension of inputdata, imgdata, should be 3 in space mvpa"
        signal1 = get_signals(self._imgdata, roimask1, 'voxel')[0]
        signal2 = get_signals(self._imgdata, roimask2, 'voxel')[0]
        r, p = stats.pearsonr(signal1, signal2)
        return r, p

        MVPA method for correlation between roi to roi
        ---------------------------------------------
        Parameters:
            roimask1, roimask2: roimasks
                                I haven't considered method how to check two roi have the same shape
        Output:
            r: correlation coefficient of signals between two spheres
            p: significant level
        
MVPA method for correlation between roi to roi
MVPA method for correlation between roi to roi
def mvpa_space_roi2roi(self, roimask1, roimask2):
        assert np.ndim(self._imgdata) == 3, "Dimension of inputdata, imgdata, should be 3 in space mvpa"
        signal1 = get_signals(self._imgdata, roimask1, 'voxel')[0]
        signal2 = get_signals(self._imgdata, roimask2, 'voxel')[0]
        r, p = stats.pearsonr(signal1, signal2)
        return r, p
def mvpa_space_roi2roi ( self , roimask1 , roimask2 ) : assert np . ndim ( self . _imgdata ) == 3 , "Dimension of inputdata, imgdata, should be 3 in space mvpa" signal1 = get_signals ( self . _imgdata , roimask1 , 'voxel' ) [ 0 ] signal2 = get_signals ( self . _imgdata , roimask2 , 'voxel' ) [ 0 ] r , p = stats . pearsonr ( signal1 , signal2 ) return r , p
MVPA method for correlation between roi to roi
MVPA method for correlation between roi to roi
"""
        MVPA method for correlation between roi to roi
        ---------------------------------------------
        Parameters:
            roimask1, roimask2: roimasks
                                I haven't considered method how to check two roi have the same shape
        Output:
            r: correlation coefficient of signals between two spheres
            p: significant level
        """
self
roimask1
roimask2
roimask1, roimask2
roimasks
I haven't considered method how to check two roi have the same shape
roimasks I haven ' t considered method how to check two roi have the same shape