16539bf83ec9b06540bd314e8f438bb31aad70fa,plot_roi_extraction.py,,,#,11

Before Change


// Identification of connected components
labels, n_labels = ndimage.label(dil_bin_pvalues_and_vt)
first_roi_img, second_roi_img = \
    ((labels == (i + 1)).astype(np.int) for i in xrange(2))
plot_roi(nibabel.Nifti1Image(first_roi_img, fmri_img.get_affine()),
         mean_img, title="Connected components: first ROI",
         cut_coords=None)  // None will compute optimal slices automatically
plot_roi(nibabel.Nifti1Image(second_roi_img, fmri_img.get_affine()),

After Change


            standardize=False,
            detrend=False)
act_summaries = masker.fit_transform(first_maps)
bins = np.arange(1, n_scans + 1)
roi1_time_series = act_summaries[:, 0]
plt.plot(bins, roi1_time_series)
ymin, ymax = np.min(roi1_time_series), np.max(roi1_time_series)
plt.axis([1, n_scans, ymin, ymax])
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: nilearn/nilearn
Commit Name: 16539bf83ec9b06540bd314e8f438bb31aad70fa
Time: 2014-10-13
Author: danilobzdok@gmail.com
File Name: plot_roi_extraction.py
Class Name:
Method Name:


Project Name: idaholab/raven
Commit Name: 438b2a63d195c8f5ccecae35d577d8bfde354406
Time: 2020-08-22
Author: mohammad.abdo@inl.gov
File Name: framework/Optimizers/GeneticAlgorithm.py
Class Name: GeneticAlgorithm
Method Name: _useRealization


Project Name: autoreject/autoreject
Commit Name: e6dc6899d0aa846636c48562c79b161347c35235
Time: 2019-06-04
Author: mainakjas@gmail.com
File Name: autoreject/ransac.py
Class Name: Ransac
Method Name: fit