nimare.meta.ibma
.ffx_glm¶
-
ffx_glm
(con_maps, se_maps, sample_sizes, mask, cdt=0.01, q=0.05, work_dir='ffx_glm', two_sided=True)[source]¶ Run a fixed-effects GLM on contrast and standard error images.
Parameters: - con_maps ((n_contrasts, n_voxels)
numpy.ndarray
) – A 2D array of contrast maps in the same space, after masking. - var_maps ((n_contrasts, n_voxels)
numpy.ndarray
) – A 2D array of contrast standard error maps in the same space, after masking. Must match shape and order ofcon_maps
. - sample_sizes ((n_contrasts,)
numpy.ndarray
) – A 1D array of sample sizes associated with contrasts incon_maps
andvar_maps
. Must be in same order as rows incon_maps
andvar_maps
. - mask (
nibabel.Nifti1Image
) – Mask image, used to unmask results maps in compiling output. - cdt (
float
, optional) – Cluster-defining p-value threshold. - q (
float
, optional) – Alpha for multiple comparisons correction. - work_dir (
str
, optional) – Working directory for FSL flameo outputs. - two_sided (
bool
, optional) – Whether analysis should be two-sided (True) or one-sided (False).
Returns: result – Dictionary containing maps for test statistics, p-values, and negative log(p) values.
Return type: - con_maps ((n_contrasts, n_voxels)