iofunc/iofiles.py
def load_surface_data(self):
        """
        Load cifti files and fill zeros to match vertex id with geometry faces.
        Note that the original cifti file (fsLR_32k) in left hemisphere contains 29696 vertices and in right hemisphere contains 29716 vertices. We only consider transformation in fsLR_32k space now.

        Parameters:
        -----------

        Returns:
        ---------
        data_left: data in left hemisphere
        data_right: data in right hemisphere
        """
        data, vxidx = self.load_raw_data()
        assert (data.shape[1] == 59412) | (data.shape[1] == 91282), "The present cifti data is not in fsLR_32k space."
        vxid_left = [vxidx(i)[1] for i in np.arange(29696)]
        vxid_right = [vxidx(i)[1] for i in np.arange(29696,59412)]
        data_left = np.zeros((data.shape[0], 32492))
        data_right = np.zeros((data.shape[0], 32492))
        data_left[:,vxid_left] = data[:,:29696]
        data_right[:,vxid_right] = data[:,29696:59412]        
        return data_left, data_right

        Load cifti files and fill zeros to match vertex id with geometry faces.
        Note that the original cifti file (fsLR_32k) in left hemisphere contains 29696 vertices and in right hemisphere contains 29716 vertices. We only consider transformation in fsLR_32k space now.

        Parameters:
        -----------

        Returns:
        ---------
        data_left: data in left hemisphere
        data_right: data in right hemisphere
        
Load cifti files and fill zeros to match vertex id with geometry faces.
Note that the original cifti file (fsLR_32k) in left hemisphere contains 29696 vertices and in right hemisphere contains 29716 vertices. We only consider transformation in fsLR_32k space now.





data in left hemisphere
data_right: data in right hemisphere
Load cifti files and fill zeros to match vertex id with geometry faces . Note that the original cifti file ( fsLR_32k ) in left hemisphere contains 29696 vertices and in right hemisphere contains 29716 vertices . We only consider transformation in fsLR_32k space now . data in left hemisphere data_right : data in right hemisphere
def load_surface_data(self):
        data, vxidx = self.load_raw_data()
        assert (data.shape[1] == 59412) | (data.shape[1] == 91282), "The present cifti data is not in fsLR_32k space."
        vxid_left = [vxidx(i)[1] for i in np.arange(29696)]
        vxid_right = [vxidx(i)[1] for i in np.arange(29696,59412)]
        data_left = np.zeros((data.shape[0], 32492))
        data_right = np.zeros((data.shape[0], 32492))
        data_left[:,vxid_left] = data[:,:29696]
        data_right[:,vxid_right] = data[:,29696:59412]        
        return data_left, data_right
def load_surface_data ( self ) : data , vxidx = self . load_raw_data ( ) assert ( data . shape [ 1 ] == 59412 ) | ( data . shape [ 1 ] == 91282 ) , "The present cifti data is not in fsLR_32k space." vxid_left = [ vxidx ( i ) [ 1 ] for i in np . arange ( 29696 ) ] vxid_right = [ vxidx ( i ) [ 1 ] for i in np . arange ( 29696 , 59412 ) ] data_left = np . zeros ( ( data . shape [ 0 ] , 32492 ) ) data_right = np . zeros ( ( data . shape [ 0 ] , 32492 ) ) data_left [ : , vxid_left ] = data [ : , : 29696 ] data_right [ : , vxid_right ] = data [ : , 29696 : 59412 ] return data_left , data_right
Load cifti files and fill zeros to match vertex id with geometry faces.
Load cifti files and fill zeros to match vertex id with geometry faces .
"""
        Load cifti files and fill zeros to match vertex id with geometry faces.
        Note that the original cifti file (fsLR_32k) in left hemisphere contains 29696 vertices and in right hemisphere contains 29716 vertices. We only consider transformation in fsLR_32k space now.

        Parameters:
        -----------

        Returns:
        ---------
        data_left: data in left hemisphere
        data_right: data in right hemisphere
        """
self