nimare.utils.get_masker

get_masker(mask)[source]

Get an initialized, fitted nilearn Masker instance from passed argument.

Parameters:

mask (str, nibabel.nifti1.Nifti1Image, or any nilearn Masker) –

Returns:

maskernilearn.input_data.base_masker.BaseMasker

Return type:

an initialized, fitted instance of a subclass of