nimare.meta.ibma.mfx_glm

mfx_glm(con_maps, se_maps, sample_sizes, mask, cdt=0.01, q=0.05, work_dir='mfx_glm', two_sided=True)[source]

Run a mixed-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 of con_maps.
  • sample_sizes ((n_contrasts,) numpy.ndarray) – A 1D array of sample sizes associated with contrasts in con_maps and var_maps. Must be in same order as rows in con_maps and var_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:

dict