Module Expr Str Import alias identifier ImportFrom alias ImportFrom alias ImportFrom alias alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias ClassDef bases NameLoad body Assign NameStore Str FunctionDef arguments args NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body ImportFrom alias Return Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Str Call NameLoad keyword NameLoad keyword Num Num Num body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad If CompareNotIn NameLoad TupleLoad Str Str Str NameLoad body Raise Call NameLoad BinOpAdd Str Call NameLoad NameLoad If BoolOpAnd CompareIs AttributeLoad NameLoad attr NameLoad CompareEq NameLoad Str body Raise Call NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str Expr Call AttributeLoad NameLoad attr BinOpMod Str SubscriptLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Slice Num keyword AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr If CompareIsNot AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str SubscriptLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Slice Num keyword AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr orelse Assign AttributeStore NameLoad attr NameLoad If BoolOpAnd CompareIs AttributeLoad NameLoad attr NameLoad CompareIsNot AttributeLoad NameLoad attr NameLoad body Expr Call NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword NameLoad orelse If BoolOpAnd CompareEq AttributeLoad NameLoad attr Str CompareIsNot AttributeLoad NameLoad attr NameLoad body If CompareGt AttributeLoad NameLoad attr Num body Print Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword NameLoad orelse If BoolOpAnd CompareEq AttributeLoad NameLoad attr Str CompareIsNot AttributeLoad NameLoad attr NameLoad body If CompareGt AttributeLoad NameLoad attr Num body Print Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword Call AttributeLoad AttributeLoad NameLoad attr attr keyword SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Slice Num keyword Str keyword NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body If UnaryOpNot Call NameLoad NameLoad Str body Raise Call NameLoad BinOpMod Str AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str Return Call AttributeLoad Call AttributeLoad NameLoad attr attr NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str If UnaryOpNot Call NameLoad NameLoad Str body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr If UnaryOpNot Call NameLoad NameLoad Str body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr If CompareIs AttributeLoad NameLoad attr NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad keyword AttributeLoad NameLoad attr keyword NameLoad If CompareIsNot AttributeLoad NameLoad attr NameLoad body Assign SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr Expr Call NameLoad keyword NameLoad NameLoad orelse If CompareEq AttributeLoad NameLoad attr Str body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore NameLoad orelse If CompareEq AttributeLoad NameLoad attr Str body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr orelse If CompareEq AttributeLoad NameLoad attr Str body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr If UnaryOpNot Call NameLoad NameLoad AttributeLoad NameLoad attr body If CompareGt AttributeLoad NameLoad attr Num body Print Str Assign AttributeStore NameLoad attr Call Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword Str keyword SubscriptLoad AttributeLoad NameLoad attr Slice Num keyword Call AttributeLoad NameLoad attr If BoolOpAnd CompareIsNot AttributeLoad NameLoad attr NameLoad UnaryOpNot Call NameLoad NameLoad AttributeLoad NameLoad attr body If CompareGt AttributeLoad NameLoad attr Num body Print Str Assign AttributeStore NameLoad attr Call Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword Str keyword SubscriptLoad AttributeLoad NameLoad attr Slice Num keyword Call AttributeLoad NameLoad attr If UnaryOpNot AttributeLoad NameLoad attr body Assign NameStore Call NameLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr If CompareEq AttributeLoad NameLoad attr Str body Assign SubscriptStore NameLoad Index CompareLt NameLoad AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr Num If Call AttributeLoad NameLoad attr CompareGt Call AttributeLoad NameLoad attr CompareGt NameLoad Num keyword Num Num body Raise Call NameLoad Str Assign NameStore NameLoad Assign NameStore NameLoad If CompareNotEq AttributeLoad NameLoad attr Str body Assign NameStore SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Slice Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call NameLoad NameLoad NameLoad keyword ListLoad Str Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Assign TupleStore NameStore NameStore Call Call AttributeLoad NameLoad attr NameLoad keyword ListLoad Str Str Str NameLoad Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str ImportFrom alias Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str keyword AttributeLoad NameLoad attr Return Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr decorator_list decorator_list
N/A N/A 
Transformer for computing ROI signals.
 N/A numpy np sklearn.externals.joblib Memory N/A _utils _utils logger CacheMixin _utils.niimg _get_data_dtype _utils.class_inspect get_params _utils.niimg_conversions _check_same_fov N/A image base_masker filter_and_extract BaseMasker _ExtractionFunctor N/A object N/A N/A func_name nifti_maps_masker_extractor __init__ N/A N/A self _resampled_maps_img_ _resampled_mask_img_ N/A N/A N/A N/A self _resampled_maps_img_ _resampled_maps_img_ N/A N/A self _resampled_mask_img_ _resampled_mask_img_ N/A __call__ N/A N/A self imgs N/A N/A regions signal_extraction N/A N/A N/A signal_extraction img_to_signals_maps imgs N/A self _resampled_maps_img_ mask_img N/A self _resampled_mask_img_ N/A N/A NiftiMapsMasker N/A BaseMasker CacheMixin N/A N/A Class for masking of Niimg-like objects.

    NiftiMapsMasker is useful when data from overlapping volumes should be
    extracted (contrarily to NiftiLabelsMasker). Use case: Summarize brain
    signals from large-scale networks obtained by prior PCA or ICA.

    Parameters
    ==========
    maps_img: 4D niimg-like object
        See http://nilearn.github.io/manipulating_images/manipulating_images.html#niimg.
        Set of continuous maps. One representative time course per map is
        extracted using least square regression.

    mask_img: 3D niimg-like object, optional
        See http://nilearn.github.io/manipulating_images/manipulating_images.html#niimg.
        Mask to apply to regions before extracting signals.

    allow_overlap: boolean, optional
        If False, an error is raised if the maps overlaps (ie at least two
        maps have a non-zero value for the same voxel). Default is True.

    smoothing_fwhm: float, optional
        If smoothing_fwhm is not None, it gives the full-width half maximum in
        millimeters of the spatial smoothing to apply to the signal.

    standardize: boolean, optional
        If standardize is True, the time-series are centered and normed:
        their mean is put to 0 and their variance to 1 in the time dimension.

    detrend: boolean, optional
        This parameter is passed to signal.clean. Please see the related
        documentation for details

    low_pass: False or float, optional
        This parameter is passed to signal.clean. Please see the related
        documentation for details

    high_pass: False or float, optional
        This parameter is passed to signal.clean. Please see the related
        documentation for details

    t_r: float, optional
        This parameter is passed to signal.clean. Please see the related
        documentation for details

    resampling_target: {"mask", "maps", None} optional.
        Gives which image gives the final shape/size. For example, if
        `resampling_target` is "mask" then maps_img and images provided to
        fit() are resampled to the shape and affine of mask_img. "None" means
        no resampling: if shapes and affines do not match, a ValueError is
        raised. Default value: "maps".

    memory: joblib.Memory or str, optional
        Used to cache the region extraction process.
        By default, no caching is done. If a string is given, it is the
        path to the caching directory.

    memory_level: int, optional
        Aggressiveness of memory caching. The higher the number, the higher
        the number of functions that will be cached. Zero means no caching.

    verbose: integer, optional
        Indicate the level of verbosity. By default, nothing is printed

    Notes
    =====
    With the default value for resampling_target, every 3D image processed by
    transform() will be resampled to the shape of maps_img. It may lead to a
    very large memory consumption if the voxel number in labels_img is large.

    See also
    ========
    nilearn.input_data.NiftiMasker
    nilearn.input_data.NiftiLabelsMasker
     __init__ N/A N/A self maps_img mask_img allow_overlap smoothing_fwhm standardize detrend low_pass high_pass t_r resampling_target memory memory_level verbose N/A None True None False False None None None data N/A Memory cachedir None verbose 0 0 0 N/A N/A N/A self maps_img maps_img N/A N/A self mask_img mask_img N/A N/A self allow_overlap allow_overlap N/A N/A self smoothing_fwhm smoothing_fwhm N/A N/A self standardize standardize N/A N/A self detrend detrend N/A N/A self low_pass low_pass N/A N/A self high_pass high_pass N/A N/A self t_r t_r N/A N/A self resampling_target resampling_target N/A N/A self memory memory N/A N/A self memory_level memory_level N/A N/A self verbose verbose N/A N/A resampling_target N/A mask maps data None N/A N/A N/A ValueError N/A invalid value for 'resampling_target' parameter:  N/A str resampling_target N/A N/A N/A N/A self mask_img None N/A resampling_target mask N/A N/A N/A ValueError resampling_target has been set to 'mask' but no mask has been provided.
Set resampling_target to something else or provide a mask. N/A fit N/A N/A self X y N/A None None N/A N/A Prepare signal extraction from regions.

        All parameters are unused, they are for scikit-learn compatibility.
         N/A N/A N/A logger log N/A loading regions from %s N/A N/A N/A _utils _repr_niimgs N/A self maps_img N/A 200 verbose N/A self verbose N/A N/A self maps_img_ N/A N/A _utils check_niimg_4d N/A self maps_img N/A N/A N/A self mask_img None N/A N/A N/A N/A logger log N/A loading mask from %s N/A N/A N/A _utils _repr_niimgs N/A self mask_img N/A 200 verbose N/A self verbose N/A N/A self mask_img_ N/A N/A _utils check_niimg_3d N/A self mask_img N/A N/A N/A self mask_img_ None N/A N/A N/A N/A self resampling_target None N/A N/A self mask_img_ None N/A N/A N/A _check_same_fov mask N/A self mask_img_ maps N/A self maps_img_ raise_error True N/A N/A N/A N/A N/A self resampling_target mask N/A N/A self mask_img_ None N/A N/A N/A N/A self verbose 0 N/A N/A Resampling maps N/A N/A self maps_img_ N/A N/A image resample_img N/A self maps_img_ target_affine N/A N/A N/A self mask_img_ get_affine target_shape N/A N/A self mask_img_ shape interpolation continuous copy True N/A N/A N/A N/A N/A self resampling_target maps N/A N/A self mask_img_ None N/A N/A N/A N/A self verbose 0 N/A N/A Resampling mask N/A N/A self mask_img_ N/A N/A image resample_img N/A self mask_img_ target_affine N/A N/A N/A self maps_img_ get_affine target_shape N/A N/A N/A self maps_img_ shape N/A 3 interpolation nearest copy True N/A self N/A _check_fitted N/A N/A self N/A N/A N/A N/A N/A hasattr self maps_img_ N/A N/A N/A ValueError N/A It seems that %s has not been fitted. You must call fit() before calling transform(). N/A N/A self __class__ __name__ N/A fit_transform N/A N/A self imgs confounds N/A None N/A N/A Prepare and perform signal extraction.
         N/A N/A N/A N/A N/A self fit transform imgs confounds confounds N/A transform_single_imgs N/A N/A self imgs confounds N/A None N/A N/A Extract signals from a single 4D niimg.

        Parameters
        ----------
        imgs: 3D/4D Niimg-like object
            See http://nilearn.github.io/manipulating_images/manipulating_images.html#niimg.
            Images to process. It must boil down to a 4D image with scans
            number as last dimension.

        confounds: CSV file or array-like, optional
            This parameter is passed to signal.clean. Please see the related
            documentation for details.
            shape: (number of scans, number of confounds)

        Returns
        -------
        region_signals: 2D numpy.ndarray
            Signal for each map.
            shape: (number of scans, number of maps)
         N/A N/A N/A hasattr self _resampled_maps_img_ N/A N/A N/A self _resampled_maps_img_ N/A self maps_img_ N/A N/A N/A hasattr self _resampled_mask_img_ N/A N/A N/A self _resampled_mask_img_ N/A self mask_img_ N/A N/A N/A self resampling_target None N/A N/A imgs_ N/A N/A _utils check_niimg_4d imgs N/A images N/A dict maps N/A self maps_img_ data imgs_ N/A N/A N/A self mask_img_ None N/A N/A N/A images N/A mask N/A self mask_img_ N/A N/A _check_same_fov raise_error True images N/A N/A N/A N/A self resampling_target data N/A N/A imgs_ N/A N/A _utils check_niimg_4d imgs N/A ref_img imgs_ N/A N/A N/A N/A self resampling_target mask N/A N/A N/A self _resampled_mask_img_ N/A self mask_img_ N/A ref_img N/A self mask_img_ N/A N/A N/A N/A self resampling_target maps N/A N/A N/A self _resampled_maps_img_ N/A self maps_img_ N/A ref_img N/A self maps_img_ N/A N/A N/A _check_same_fov ref_img N/A self _resampled_maps_img_ N/A N/A N/A N/A self verbose 0 N/A N/A Resampling maps N/A N/A self _resampled_maps_img_ N/A N/A N/A self _cache N/A image resample_img N/A self maps_img_ interpolation continuous target_shape N/A N/A ref_img shape N/A 3 target_affine N/A N/A ref_img get_affine N/A N/A N/A N/A self mask_img_ None N/A N/A _check_same_fov ref_img N/A self mask_img_ N/A N/A N/A N/A self verbose 0 N/A N/A Resampling mask N/A N/A self _resampled_mask_img_ N/A N/A N/A self _cache N/A image resample_img N/A self mask_img_ interpolation nearest target_shape N/A N/A ref_img shape N/A 3 target_affine N/A N/A ref_img get_affine N/A N/A N/A self allow_overlap N/A N/A dtype N/A _get_data_dtype N/A self _resampled_maps_img_ N/A data N/A N/A N/A self _resampled_maps_img_ get_data N/A N/A N/A dtype kind f N/A N/A N/A data N/A N/A data N/A N/A N/A np finfo dtype eps 0.0 N/A N/A N/A np any N/A N/A N/A np sum N/A data 0.0 axis 3 1 N/A N/A N/A ValueError Overlap detected in the maps. The overlap may be due to the atlas itself or possibly introduced by resampling N/A target_shape None N/A target_affine None N/A N/A N/A self resampling_target data N/A N/A target_shape N/A N/A N/A self _resampled_maps_img_ shape N/A 3 N/A target_affine N/A N/A N/A self _resampled_maps_img_ get_affine N/A params N/A get_params NiftiMapsMasker self ignore N/A resampling_target N/A N/A params N/A target_shape target_shape N/A N/A params N/A target_affine target_affine N/A N/A region_signals labels_ N/A N/A N/A self _cache filter_and_extract ignore N/A verbose memory memory_level imgs N/A _ExtractionFunctor N/A self _resampled_maps_img_ N/A self _resampled_mask_img_ params confounds confounds memory N/A self memory memory_level N/A self memory_level verbose N/A self verbose N/A N/A self labels_ labels_ N/A region_signals N/A inverse_transform N/A N/A self region_signals N/A N/A N/A Compute voxel signals from region signals

        Any mask given at initialization is taken into account.

        Parameters
        ==========
        region_signals: 2D numpy.ndarray
            Signal for each region.
            shape: (number of scans, number of regions)

        Returns
        =======
        voxel_signals: nibabel.Nifti1Image
            Signal for each voxel. shape: that of maps.
         regions signal_extraction N/A N/A N/A self _check_fitted N/A N/A N/A logger log computing image from signals verbose N/A self verbose N/A N/A N/A signal_extraction signals_to_img_maps region_signals N/A self maps_img_ mask_img N/A self mask_img_ N/A N/A