01d18e835815feedeac2fbeff8025cdd94128eaa,pynets/fmri/clustools.py,NilParcellate,create_clean_mask,#NilParcellate#,411
Before Change
// Load clustering mask
self._clust_mask_img = nib.load(self.clust_mask)
self._mask_data = np.asarray(self._clust_mask_img.dataobj).astype("bool").astype("uint8")
// Ensure mask does not inclue voxels outside of the brain
self._masked_fmri_vol = np.asarray(self._func_img.dataobj)[:, :, :, 0]
self._masked_fmri_vol = self._masked_fmri_vol.astype("bool")
self._mask_data[~self._masked_fmri_vol] = 0
del self._masked_fmri_vol
self._clust_mask_corr = "%s%s%s%s" % (self._dir_path, "/", mask_name, ".nii")
self._clust_mask_corr_img = nib.Nifti1Image(self._mask_data, affine=self._clust_mask_img.affine,
header=self._clust_mask_img.header)
nib.save(self._clust_mask_corr_img, self._clust_mask_corr)
self._clust_mask_img.uncache()
del self._mask_data
gc.collect()
return self.atlas
After Change
threshold=1, connected=False)
nib.save(self._clust_mask_corr_img, "%s%s%s%s" % (self._dir_path, "/", mask_name, ".nii"))
func_vol_img.uncache()
clust_mask_res_img.uncache()
gc.collect()
return self.atlas
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: dPys/PyNets
Commit Name: 01d18e835815feedeac2fbeff8025cdd94128eaa
Time: 2019-12-09
Author: dpisner@utexas.edu
File Name: pynets/fmri/clustools.py
Class Name: NilParcellate
Method Name: create_clean_mask
Project Name: dPys/PyNets
Commit Name: 31775c422876534b0df7f26d253f2380db90d4b0
Time: 2020-03-21
Author: dpisner@utexas.edu
File Name: pynets/dmri/track.py
Class Name:
Method Name: prep_tissues
Project Name: dPys/PyNets
Commit Name: e4a36f3215735f8c351beb8f27edeb02eabb121f
Time: 2019-11-04
Author: dpisner@utexas.edu
File Name: pynets/fmri/clustools.py
Class Name:
Method Name: individual_clustering