nispace.workflows.nimare_colocalization
- nispace.workflows.nimare_colocalization(y, x='PET', z=None, x_collection=None, standardize='xz', space='MNI152NLin6Asym', data_space=None, parcellation_space=None, parcellation='Yan200', parcellation_labels=None, parcellation_hemi=['L', 'R'], y_covariates=None, colocalization_method=None, mc_method='meff', normalize_colocalizations=True, pooled_p=False, plot=True, binary_y=False, nimare_nulls=None, n_perm=10000, seed=None, n_proc=1, verbose=True, nispace_object=None, fetch_x_kwargs=None, init_kwargs=None, fit_kwargs=None, clean_y_kwargs=None, colocalize_kwargs=None, permute_kwargs=None, correct_p_kwargs=None, plot_kwargs=None, return_nispace_only=False)[source]
NiMARE colocalization workflow.
Convenience wrapper around
colocalization()for Y maps derived from NiMARE meta-analyses (continuous ALE stat maps or binary cluster-coverage maps fromget_binary_cluster_map()).Sets the following defaults relative to
colocalization():background_value={"y": False}infit_kwargs— zero-valued voxels in ALE maps are meaningful (no activation there), not missing data. Scoped to Y only: X (and Z, if given) keep the normal'auto'background handling, since only Y is guaranteed to be an ALE/cluster-coverage map here.maps_which="Y"inpermute_kwargswhennimare_nullsis provided, so Y is permuted with coordinate-sampling null maps; otherwise"X"
For binary cluster maps also pass
binary_y=Trueandcolocalization_method="pearson".- Parameters:
y (NIfTI image, array-like, or list) – ALE stat map (
result.get_map("stat")) or binary cluster-coverage map (fromget_binary_cluster_map()).x (str or array-like, default="PET") – Reference X maps. Same as
colocalization().colocalization_method (str or list, default=None) – Colocalization method. When
None, defaults to"pearson"ifbinary_y=True(approximate point-biserial), otherwise"spearman".binary_y (bool, default=False) – Set
Truewhen Y is a binary or fractional cluster-coverage map. Prevents z-scoring of Y and raises warnings for ranked methods or group permutation. SeeNiSpacefor details.nimare_nulls (dict or None, default=None) – Coordinate-sampling null maps from
null_maps_from_nimare(). When provided, setsmaps_nulls=nimare_nullsandmaps_which="Y"inpermute_kwargsso Y is permuted with the NiMARE null distribution. Explicit entries inpermute_kwargstake precedence.
- Returns:
nsp (NiSpace) – (when
return_nispace_only=True)colocs, p_values, pc_values, nsp (tuple) – Deprecated. Returned when
return_nispace_only=False.
Notes
All other parameters are identical to
colocalization().