97bcda32d46ac2c2d8f97f9fe44ef8cdc3253710,pynets/registration/register.py,FmriReg,atlas2t1wmni_align,#FmriReg#Any#Any#Any#,923

Before Change


        from nilearn.image import resample_img

        aligned_atlas_t1mni = "%s%s%s%s" % (self.anat_path, "/", atlas, "_t1w_mni.nii.gz")
        gm_mask_mni = "%s%s%s%s" % (self.anat_path, "/", atlas, "_gm_mask_t1w_mni.nii.gz")
        gm_mask_mni_atlas_res = "%s%s%s%s" % (self.anat_path, "/", atlas, "_gm_mask_t1w_mni_res.nii.gz")
        aligned_atlas_t1mni_gm = "%s%s%s%s" % (self.anat_path, "/", atlas, "_t1w_mni_gm.nii.gz")

        uatlas_filled = "%s%s%s%s" % (self.anat_path, "/", atlas, "_filled.nii.gz")
        os.system("fslmaths {} -add {} -mas {} {} 2>/dev/null".format(self.input_mni_brain, uatlas,

After Change


        aligned_atlas_t1mni_gm = f"{self.anat_path}{"/"}{atlas}{"_t1w_mni_gm.nii.gz"}"

        uatlas_filled = f"{self.anat_path}{"/"}{atlas}{"_filled.nii.gz"}"
        os.system(f"fslmaths {self.input_mni_brain} -add {uatlas} -mas {self.input_mni_mask} {uatlas_filled} 2>/dev/"
                  "null")

        regutils.align(uatlas_filled, self.t1_aligned_mni, init=None, xfm=self.atlas2t1wmni_xfm_init,
                       out=None, dof=12, searchrad=True, interp="nearestneighbour", cost="mutualinfo")
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: dPys/PyNets
Commit Name: 97bcda32d46ac2c2d8f97f9fe44ef8cdc3253710
Time: 2020-04-19
Author: dpisner@utexas.edu
File Name: pynets/registration/register.py
Class Name: FmriReg
Method Name: atlas2t1wmni_align


Project Name: dPys/PyNets
Commit Name: 97bcda32d46ac2c2d8f97f9fe44ef8cdc3253710
Time: 2020-04-19
Author: dpisner@utexas.edu
File Name: pynets/registration/register.py
Class Name: FmriReg
Method Name: atlas2t1wmni_align


Project Name: ultralytics/yolov3
Commit Name: 0bc1db58d82c2482bfac1e32a3a43cfd5a533da2
Time: 2021-01-10
Author: glenn.jocher@ultralytics.com
File Name: utils/google_utils.py
Class Name:
Method Name: attempt_download


Project Name: kubeflow/kubeflow
Commit Name: 99c94d88c96c2b0a45bbbef4c8a126fa018ce513
Time: 2018-10-11
Author: 37601826+kunmingg@users.noreply.github.com
File Name: bootstrap/build.py
Class Name:
Method Name: main