944822e8fd92f2a14c971e6b5948681672ae6706,pynets/fmri/clustools.py,,individual_clustering,#Any#Any#Any#Any#Any#Any#Any#,479

Before Change


    mask_data = mask_img.get_data().astype("bool").astype("int")
    func_img = nib.load(func_file)
    func_data = func_img.get_data().astype("bool")
    masked = mask_data.copy()
    masked[~func_data[:,:,:,0]] = 0
    clust_mask_corr = "%s%s%s%s" % (dir_path, "/", mask_name, ".nii.gz")
    nib.save(nib.Nifti1Image(masked, affine=mask_img.affine, header=mask_img.header), clust_mask_corr)

After Change


    mask_data[~func_data_sample_slice] = 0
    clust_mask_corr = "%s%s%s%s" % (dir_path, "/", mask_name, ".nii.gz")
    nib.save(nib.Nifti1Image(mask_data, affine=mask_img.affine, header=mask_img.header), clust_mask_corr)
    del mask_data
    del func_data

    if clust_type in nilearn_clust_list:
        clustools.nil_parcellate(func_file, clust_mask_corr, k, clust_type, uatlas, dir_path, conf,
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: dPys/PyNets
Commit Name: 944822e8fd92f2a14c971e6b5948681672ae6706
Time: 2019-10-14
Author: dpisner@utexas.edu
File Name: pynets/fmri/clustools.py
Class Name:
Method Name: individual_clustering


Project Name: SheffieldML/GPy
Commit Name: 350497c72606f188f83b68588140f0058190559b
Time: 2013-04-16
Author: ibinbei@gmail.com
File Name: GPy/models/mrd.py
Class Name: MRD
Method Name: __init__


Project Name: nilearn/nilearn
Commit Name: ba93f0b8f1e17955a5990246b53577479ad88165
Time: 2013-05-31
Author: philippe.gervais@inria.fr
File Name: plot_haxby_searchlight.py
Class Name:
Method Name: