Run an image-based meta-analysis (IBMA) workflow

NiMARE provides a plethora of tools for performing meta-analyses on neuroimaging data. Sometimes it’s difficult to know where to start, especially if you’re new to meta-analysis. This tutorial will walk you through using a IBMA workflow function which puts together the fundamental steps of a IBMA meta-analysis.

import os
from pathlib import Path

import matplotlib.pyplot as plt
from nilearn.plotting import plot_stat_map

from nimare.extract import download_nidm_pain

Download data

Load Studyset

from nimare.nimads import Studyset
from nimare.utils import get_resource_path

studyset_file = os.path.join(get_resource_path(), "nidm_pain_studyset.json")
studyset = Studyset(studyset_file, target="mni152_2mm")
studyset.update_path(dset_dir)
'<Studyset: nimads_from_dataset>'

Run IBMA Workflow

The fit method of a IBMA workflow class runs the following steps:

  1. Runs a meta-analysis using the specified method (default: Stouffers)

  2. Applies a corrector to the meta-analysis results (default: FDRCorrector, indep)

  3. Generates cluster tables and runs diagnostics on the corrected results (default: Jackknife)

All in one call!

from nimare.workflows.ibma import IBMAWorkflow

workflow = IBMAWorkflow()
result = workflow.fit(studyset)
/home/docs/checkouts/readthedocs.org/user_builds/nimare/checkouts/latest/nimare/transforms.py:310: UserWarning: imgs are being resampled to the mask_img resolution. This process is memory intensive. You might want to provide a target_affine that is equal to the affine of the imgs or resample the mask beforehand to save memory and computation time.
  t = masker.transform(available_data["t"])
/home/docs/checkouts/readthedocs.org/user_builds/nimare/envs/latest/lib/python3.13/site-packages/nilearn/image/image.py:540: RuntimeWarning: overflow encountered in scalar negative
  infinity_norm = max(-data.min(), data.max())
/home/docs/checkouts/readthedocs.org/user_builds/nimare/checkouts/latest/nimare/transforms.py:310: UserWarning: imgs are being resampled to the mask_img resolution. This process is memory intensive. You might want to provide a target_affine that is equal to the affine of the imgs or resample the mask beforehand to save memory and computation time.
  t = masker.transform(available_data["t"])
/home/docs/checkouts/readthedocs.org/user_builds/nimare/envs/latest/lib/python3.13/site-packages/nilearn/image/image.py:540: RuntimeWarning: overflow encountered in scalar negative
  infinity_norm = max(-data.min(), data.max())
/home/docs/checkouts/readthedocs.org/user_builds/nimare/checkouts/latest/nimare/transforms.py:310: UserWarning: imgs are being resampled to the mask_img resolution. This process is memory intensive. You might want to provide a target_affine that is equal to the affine of the imgs or resample the mask beforehand to save memory and computation time.
  t = masker.transform(available_data["t"])
/home/docs/checkouts/readthedocs.org/user_builds/nimare/envs/latest/lib/python3.13/site-packages/nilearn/image/image.py:540: RuntimeWarning: overflow encountered in scalar negative
  infinity_norm = max(-data.min(), data.max())
/home/docs/checkouts/readthedocs.org/user_builds/nimare/checkouts/latest/nimare/transforms.py:310: UserWarning: imgs are being resampled to the mask_img resolution. This process is memory intensive. You might want to provide a target_affine that is equal to the affine of the imgs or resample the mask beforehand to save memory and computation time.
  t = masker.transform(available_data["t"])
/home/docs/checkouts/readthedocs.org/user_builds/nimare/envs/latest/lib/python3.13/site-packages/nilearn/image/image.py:540: RuntimeWarning: overflow encountered in scalar negative
  infinity_norm = max(-data.min(), data.max())
/home/docs/checkouts/readthedocs.org/user_builds/nimare/checkouts/latest/nimare/transforms.py:310: UserWarning: imgs are being resampled to the mask_img resolution. This process is memory intensive. You might want to provide a target_affine that is equal to the affine of the imgs or resample the mask beforehand to save memory and computation time.
  t = masker.transform(available_data["t"])
/home/docs/checkouts/readthedocs.org/user_builds/nimare/envs/latest/lib/python3.13/site-packages/nilearn/image/image.py:540: RuntimeWarning: overflow encountered in scalar negative
  infinity_norm = max(-data.min(), data.max())
/home/docs/checkouts/readthedocs.org/user_builds/nimare/checkouts/latest/nimare/transforms.py:310: UserWarning: imgs are being resampled to the mask_img resolution. This process is memory intensive. You might want to provide a target_affine that is equal to the affine of the imgs or resample the mask beforehand to save memory and computation time.
  t = masker.transform(available_data["t"])
/home/docs/checkouts/readthedocs.org/user_builds/nimare/envs/latest/lib/python3.13/site-packages/nilearn/image/image.py:540: RuntimeWarning: overflow encountered in scalar negative
  infinity_norm = max(-data.min(), data.max())
/home/docs/checkouts/readthedocs.org/user_builds/nimare/checkouts/latest/nimare/transforms.py:310: UserWarning: imgs are being resampled to the mask_img resolution. This process is memory intensive. You might want to provide a target_affine that is equal to the affine of the imgs or resample the mask beforehand to save memory and computation time.
  t = masker.transform(available_data["t"])
/home/docs/checkouts/readthedocs.org/user_builds/nimare/envs/latest/lib/python3.13/site-packages/nilearn/image/image.py:540: RuntimeWarning: overflow encountered in scalar negative
  infinity_norm = max(-data.min(), data.max())
/home/docs/checkouts/readthedocs.org/user_builds/nimare/checkouts/latest/nimare/transforms.py:310: UserWarning: imgs are being resampled to the mask_img resolution. This process is memory intensive. You might want to provide a target_affine that is equal to the affine of the imgs or resample the mask beforehand to save memory and computation time.
  t = masker.transform(available_data["t"])
/home/docs/checkouts/readthedocs.org/user_builds/nimare/envs/latest/lib/python3.13/site-packages/nilearn/image/image.py:540: RuntimeWarning: overflow encountered in scalar negative
  infinity_norm = max(-data.min(), data.max())
/home/docs/checkouts/readthedocs.org/user_builds/nimare/checkouts/latest/nimare/transforms.py:310: UserWarning: imgs are being resampled to the mask_img resolution. This process is memory intensive. You might want to provide a target_affine that is equal to the affine of the imgs or resample the mask beforehand to save memory and computation time.
  t = masker.transform(available_data["t"])
/home/docs/checkouts/readthedocs.org/user_builds/nimare/envs/latest/lib/python3.13/site-packages/nilearn/image/image.py:540: RuntimeWarning: overflow encountered in scalar negative
  infinity_norm = max(-data.min(), data.max())
/home/docs/checkouts/readthedocs.org/user_builds/nimare/checkouts/latest/nimare/transforms.py:310: UserWarning: imgs are being resampled to the mask_img resolution. This process is memory intensive. You might want to provide a target_affine that is equal to the affine of the imgs or resample the mask beforehand to save memory and computation time.
  t = masker.transform(available_data["t"])
/home/docs/checkouts/readthedocs.org/user_builds/nimare/envs/latest/lib/python3.13/site-packages/nilearn/image/image.py:540: RuntimeWarning: overflow encountered in scalar negative
  infinity_norm = max(-data.min(), data.max())
/home/docs/checkouts/readthedocs.org/user_builds/nimare/envs/latest/lib/python3.13/site-packages/numpy/_core/numeric.py:386: RuntimeWarning: invalid value encountered in cast
  multiarray.copyto(a, fill_value, casting='unsafe')
/home/docs/checkouts/readthedocs.org/user_builds/nimare/checkouts/latest/nimare/diagnostics.py:324: UserWarning: Attention: At least one of the (sub)peaks falls outside of the cluster body. Identifying the nearest in-cluster voxel.
  clusters_table, label_maps = get_clusters_table(

  0%|          | 0/21 [00:00<?, ?it/s]/home/docs/checkouts/readthedocs.org/user_builds/nimare/envs/latest/lib/python3.13/site-packages/numpy/_core/numeric.py:386: RuntimeWarning: invalid value encountered in cast
  multiarray.copyto(a, fill_value, casting='unsafe')

  5%|▍         | 1/21 [00:00<00:17,  1.13it/s]/home/docs/checkouts/readthedocs.org/user_builds/nimare/envs/latest/lib/python3.13/site-packages/numpy/_core/numeric.py:386: RuntimeWarning: invalid value encountered in cast
  multiarray.copyto(a, fill_value, casting='unsafe')

 10%|▉         | 2/21 [00:01<00:16,  1.13it/s]/home/docs/checkouts/readthedocs.org/user_builds/nimare/envs/latest/lib/python3.13/site-packages/numpy/_core/numeric.py:386: RuntimeWarning: invalid value encountered in cast
  multiarray.copyto(a, fill_value, casting='unsafe')

 14%|█▍        | 3/21 [00:02<00:16,  1.12it/s]/home/docs/checkouts/readthedocs.org/user_builds/nimare/envs/latest/lib/python3.13/site-packages/numpy/_core/numeric.py:386: RuntimeWarning: invalid value encountered in cast
  multiarray.copyto(a, fill_value, casting='unsafe')

 19%|█▉        | 4/21 [00:03<00:15,  1.12it/s]/home/docs/checkouts/readthedocs.org/user_builds/nimare/envs/latest/lib/python3.13/site-packages/numpy/_core/numeric.py:386: RuntimeWarning: invalid value encountered in cast
  multiarray.copyto(a, fill_value, casting='unsafe')

 24%|██▍       | 5/21 [00:04<00:14,  1.12it/s]/home/docs/checkouts/readthedocs.org/user_builds/nimare/envs/latest/lib/python3.13/site-packages/numpy/_core/numeric.py:386: RuntimeWarning: invalid value encountered in cast
  multiarray.copyto(a, fill_value, casting='unsafe')

 29%|██▊       | 6/21 [00:05<00:13,  1.12it/s]/home/docs/checkouts/readthedocs.org/user_builds/nimare/envs/latest/lib/python3.13/site-packages/numpy/_core/numeric.py:386: RuntimeWarning: invalid value encountered in cast
  multiarray.copyto(a, fill_value, casting='unsafe')

 33%|███▎      | 7/21 [00:06<00:12,  1.12it/s]/home/docs/checkouts/readthedocs.org/user_builds/nimare/envs/latest/lib/python3.13/site-packages/numpy/_core/numeric.py:386: RuntimeWarning: invalid value encountered in cast
  multiarray.copyto(a, fill_value, casting='unsafe')

 38%|███▊      | 8/21 [00:07<00:11,  1.11it/s]/home/docs/checkouts/readthedocs.org/user_builds/nimare/envs/latest/lib/python3.13/site-packages/numpy/_core/numeric.py:386: RuntimeWarning: invalid value encountered in cast
  multiarray.copyto(a, fill_value, casting='unsafe')

 43%|████▎     | 9/21 [00:08<00:10,  1.11it/s]/home/docs/checkouts/readthedocs.org/user_builds/nimare/envs/latest/lib/python3.13/site-packages/numpy/_core/numeric.py:386: RuntimeWarning: invalid value encountered in cast
  multiarray.copyto(a, fill_value, casting='unsafe')

 48%|████▊     | 10/21 [00:08<00:09,  1.12it/s]/home/docs/checkouts/readthedocs.org/user_builds/nimare/envs/latest/lib/python3.13/site-packages/numpy/_core/numeric.py:386: RuntimeWarning: invalid value encountered in cast
  multiarray.copyto(a, fill_value, casting='unsafe')

 52%|█████▏    | 11/21 [00:09<00:08,  1.14it/s]/home/docs/checkouts/readthedocs.org/user_builds/nimare/envs/latest/lib/python3.13/site-packages/numpy/_core/numeric.py:386: RuntimeWarning: invalid value encountered in cast
  multiarray.copyto(a, fill_value, casting='unsafe')

 57%|█████▋    | 12/21 [00:10<00:07,  1.16it/s]/home/docs/checkouts/readthedocs.org/user_builds/nimare/envs/latest/lib/python3.13/site-packages/numpy/_core/numeric.py:386: RuntimeWarning: invalid value encountered in cast
  multiarray.copyto(a, fill_value, casting='unsafe')

 62%|██████▏   | 13/21 [00:11<00:06,  1.18it/s]/home/docs/checkouts/readthedocs.org/user_builds/nimare/envs/latest/lib/python3.13/site-packages/numpy/_core/numeric.py:386: RuntimeWarning: invalid value encountered in cast
  multiarray.copyto(a, fill_value, casting='unsafe')

 67%|██████▋   | 14/21 [00:12<00:05,  1.19it/s]/home/docs/checkouts/readthedocs.org/user_builds/nimare/envs/latest/lib/python3.13/site-packages/numpy/_core/numeric.py:386: RuntimeWarning: invalid value encountered in cast
  multiarray.copyto(a, fill_value, casting='unsafe')

 71%|███████▏  | 15/21 [00:13<00:05,  1.19it/s]/home/docs/checkouts/readthedocs.org/user_builds/nimare/envs/latest/lib/python3.13/site-packages/numpy/_core/numeric.py:386: RuntimeWarning: invalid value encountered in cast
  multiarray.copyto(a, fill_value, casting='unsafe')

 76%|███████▌  | 16/21 [00:13<00:04,  1.20it/s]/home/docs/checkouts/readthedocs.org/user_builds/nimare/envs/latest/lib/python3.13/site-packages/numpy/_core/numeric.py:386: RuntimeWarning: invalid value encountered in cast
  multiarray.copyto(a, fill_value, casting='unsafe')

 81%|████████  | 17/21 [00:14<00:03,  1.20it/s]/home/docs/checkouts/readthedocs.org/user_builds/nimare/envs/latest/lib/python3.13/site-packages/numpy/_core/numeric.py:386: RuntimeWarning: invalid value encountered in cast
  multiarray.copyto(a, fill_value, casting='unsafe')

 86%|████████▌ | 18/21 [00:15<00:02,  1.20it/s]/home/docs/checkouts/readthedocs.org/user_builds/nimare/envs/latest/lib/python3.13/site-packages/numpy/_core/numeric.py:386: RuntimeWarning: invalid value encountered in cast
  multiarray.copyto(a, fill_value, casting='unsafe')

 90%|█████████ | 19/21 [00:16<00:01,  1.20it/s]/home/docs/checkouts/readthedocs.org/user_builds/nimare/envs/latest/lib/python3.13/site-packages/numpy/_core/numeric.py:386: RuntimeWarning: invalid value encountered in cast
  multiarray.copyto(a, fill_value, casting='unsafe')

 95%|█████████▌| 20/21 [00:17<00:00,  1.20it/s]/home/docs/checkouts/readthedocs.org/user_builds/nimare/envs/latest/lib/python3.13/site-packages/numpy/_core/numeric.py:386: RuntimeWarning: invalid value encountered in cast
  multiarray.copyto(a, fill_value, casting='unsafe')

100%|██████████| 21/21 [00:18<00:00,  1.21it/s]
100%|██████████| 21/21 [00:18<00:00,  1.16it/s]

  0%|          | 0/21 [00:00<?, ?it/s]/home/docs/checkouts/readthedocs.org/user_builds/nimare/envs/latest/lib/python3.13/site-packages/numpy/_core/numeric.py:386: RuntimeWarning: invalid value encountered in cast
  multiarray.copyto(a, fill_value, casting='unsafe')

  5%|▍         | 1/21 [00:00<00:17,  1.14it/s]/home/docs/checkouts/readthedocs.org/user_builds/nimare/envs/latest/lib/python3.13/site-packages/numpy/_core/numeric.py:386: RuntimeWarning: invalid value encountered in cast
  multiarray.copyto(a, fill_value, casting='unsafe')

 10%|▉         | 2/21 [00:01<00:16,  1.14it/s]/home/docs/checkouts/readthedocs.org/user_builds/nimare/envs/latest/lib/python3.13/site-packages/numpy/_core/numeric.py:386: RuntimeWarning: invalid value encountered in cast
  multiarray.copyto(a, fill_value, casting='unsafe')

 14%|█▍        | 3/21 [00:02<00:15,  1.13it/s]/home/docs/checkouts/readthedocs.org/user_builds/nimare/envs/latest/lib/python3.13/site-packages/numpy/_core/numeric.py:386: RuntimeWarning: invalid value encountered in cast
  multiarray.copyto(a, fill_value, casting='unsafe')

 19%|█▉        | 4/21 [00:03<00:15,  1.13it/s]/home/docs/checkouts/readthedocs.org/user_builds/nimare/envs/latest/lib/python3.13/site-packages/numpy/_core/numeric.py:386: RuntimeWarning: invalid value encountered in cast
  multiarray.copyto(a, fill_value, casting='unsafe')

 24%|██▍       | 5/21 [00:04<00:14,  1.12it/s]/home/docs/checkouts/readthedocs.org/user_builds/nimare/envs/latest/lib/python3.13/site-packages/numpy/_core/numeric.py:386: RuntimeWarning: invalid value encountered in cast
  multiarray.copyto(a, fill_value, casting='unsafe')

 29%|██▊       | 6/21 [00:05<00:13,  1.11it/s]/home/docs/checkouts/readthedocs.org/user_builds/nimare/envs/latest/lib/python3.13/site-packages/numpy/_core/numeric.py:386: RuntimeWarning: invalid value encountered in cast
  multiarray.copyto(a, fill_value, casting='unsafe')

 33%|███▎      | 7/21 [00:06<00:12,  1.11it/s]/home/docs/checkouts/readthedocs.org/user_builds/nimare/envs/latest/lib/python3.13/site-packages/numpy/_core/numeric.py:386: RuntimeWarning: invalid value encountered in cast
  multiarray.copyto(a, fill_value, casting='unsafe')

 38%|███▊      | 8/21 [00:07<00:11,  1.12it/s]/home/docs/checkouts/readthedocs.org/user_builds/nimare/envs/latest/lib/python3.13/site-packages/numpy/_core/numeric.py:386: RuntimeWarning: invalid value encountered in cast
  multiarray.copyto(a, fill_value, casting='unsafe')

 43%|████▎     | 9/21 [00:08<00:10,  1.13it/s]/home/docs/checkouts/readthedocs.org/user_builds/nimare/envs/latest/lib/python3.13/site-packages/numpy/_core/numeric.py:386: RuntimeWarning: invalid value encountered in cast
  multiarray.copyto(a, fill_value, casting='unsafe')

 48%|████▊     | 10/21 [00:08<00:09,  1.13it/s]/home/docs/checkouts/readthedocs.org/user_builds/nimare/envs/latest/lib/python3.13/site-packages/numpy/_core/numeric.py:386: RuntimeWarning: invalid value encountered in cast
  multiarray.copyto(a, fill_value, casting='unsafe')

 52%|█████▏    | 11/21 [00:09<00:08,  1.15it/s]/home/docs/checkouts/readthedocs.org/user_builds/nimare/envs/latest/lib/python3.13/site-packages/numpy/_core/numeric.py:386: RuntimeWarning: invalid value encountered in cast
  multiarray.copyto(a, fill_value, casting='unsafe')

 57%|█████▋    | 12/21 [00:10<00:07,  1.17it/s]/home/docs/checkouts/readthedocs.org/user_builds/nimare/envs/latest/lib/python3.13/site-packages/numpy/_core/numeric.py:386: RuntimeWarning: invalid value encountered in cast
  multiarray.copyto(a, fill_value, casting='unsafe')

 62%|██████▏   | 13/21 [00:11<00:06,  1.18it/s]/home/docs/checkouts/readthedocs.org/user_builds/nimare/envs/latest/lib/python3.13/site-packages/numpy/_core/numeric.py:386: RuntimeWarning: invalid value encountered in cast
  multiarray.copyto(a, fill_value, casting='unsafe')

 67%|██████▋   | 14/21 [00:12<00:05,  1.18it/s]/home/docs/checkouts/readthedocs.org/user_builds/nimare/envs/latest/lib/python3.13/site-packages/numpy/_core/numeric.py:386: RuntimeWarning: invalid value encountered in cast
  multiarray.copyto(a, fill_value, casting='unsafe')

 71%|███████▏  | 15/21 [00:13<00:05,  1.19it/s]/home/docs/checkouts/readthedocs.org/user_builds/nimare/envs/latest/lib/python3.13/site-packages/numpy/_core/numeric.py:386: RuntimeWarning: invalid value encountered in cast
  multiarray.copyto(a, fill_value, casting='unsafe')

 76%|███████▌  | 16/21 [00:13<00:04,  1.19it/s]/home/docs/checkouts/readthedocs.org/user_builds/nimare/envs/latest/lib/python3.13/site-packages/numpy/_core/numeric.py:386: RuntimeWarning: invalid value encountered in cast
  multiarray.copyto(a, fill_value, casting='unsafe')

 81%|████████  | 17/21 [00:14<00:03,  1.19it/s]/home/docs/checkouts/readthedocs.org/user_builds/nimare/envs/latest/lib/python3.13/site-packages/numpy/_core/numeric.py:386: RuntimeWarning: invalid value encountered in cast
  multiarray.copyto(a, fill_value, casting='unsafe')

 86%|████████▌ | 18/21 [00:15<00:02,  1.19it/s]/home/docs/checkouts/readthedocs.org/user_builds/nimare/envs/latest/lib/python3.13/site-packages/numpy/_core/numeric.py:386: RuntimeWarning: invalid value encountered in cast
  multiarray.copyto(a, fill_value, casting='unsafe')

 90%|█████████ | 19/21 [00:16<00:01,  1.19it/s]/home/docs/checkouts/readthedocs.org/user_builds/nimare/envs/latest/lib/python3.13/site-packages/numpy/_core/numeric.py:386: RuntimeWarning: invalid value encountered in cast
  multiarray.copyto(a, fill_value, casting='unsafe')

 95%|█████████▌| 20/21 [00:17<00:00,  1.18it/s]/home/docs/checkouts/readthedocs.org/user_builds/nimare/envs/latest/lib/python3.13/site-packages/numpy/_core/numeric.py:386: RuntimeWarning: invalid value encountered in cast
  multiarray.copyto(a, fill_value, casting='unsafe')

100%|██████████| 21/21 [00:18<00:00,  1.18it/s]
100%|██████████| 21/21 [00:18<00:00,  1.16it/s]

Plot Results

The fit method of the IBMA workflow class returns a MetaResult object, where you can access the corrected results of the meta-analysis and diagnostics tables.

Corrected map:

img = result.get_map("z_corr-FDR_method-indep")
plot_stat_map(
    img,
    cut_coords=4,
    display_mode="z",
    threshold=1.65,  # voxel_thresh p < .05, one-tailed
    cmap="RdBu_r",
    symmetric_cbar=True,
    vmax=4,
)
plt.show()
12 plot ibma workflow

Clusters table

result.tables["z_corr-FDR_method-indep_tab-clust"]
Cluster ID X Y Z Peak Stat Cluster Size (mm3)
0 PositiveTail 1 -60.0 -24.0 20.0 13.847497 929736
1 PositiveTail 1a -52.0 -2.0 2.0 13.847497
2 PositiveTail 1b -38.0 6.0 -2.0 13.847497
3 PositiveTail 1c -38.0 -18.0 8.0 13.847497
4 PositiveTail 2 20.0 -4.0 -44.0 2.587607 232
5 PositiveTail 3 40.0 -22.0 -34.0 2.551934 128
6 NegativeTail 7 -4.0 36.0 -20.0 -9.580438 92096
7 NegativeTail 7a 2.0 30.0 -22.0 -9.053536
8 NegativeTail 7b -4.0 52.0 -14.0 -9.010580
9 NegativeTail 7c 2.0 50.0 -20.0 -8.979518
10 NegativeTail 8 -8.0 -56.0 8.0 -8.177040 22992
11 NegativeTail 8a 8.0 -54.0 8.0 -5.424874
12 NegativeTail 8b 22.0 -82.0 36.0 -4.260441
13 NegativeTail 8c 48.0 -66.0 22.0 -4.259352
14 NegativeTail 9 -24.0 -12.0 -28.0 -8.157040 11760
15 NegativeTail 9a -32.0 -36.0 -20.0 -7.753435
16 NegativeTail 10 20.0 -10.0 -28.0 -7.598264 13824
17 NegativeTail 10a 26.0 -42.0 -18.0 -6.364318
18 NegativeTail 10b 32.0 -46.0 -4.0 -4.243364
19 NegativeTail 10c 26.0 -40.0 6.0 -3.247653
20 NegativeTail 11 60.0 -4.0 22.0 -7.284835 16216
21 NegativeTail 11a 48.0 -24.0 52.0 -6.641307
22 NegativeTail 11b 58.0 -10.0 34.0 -6.142868
23 NegativeTail 11c 46.0 -18.0 44.0 -5.738011
24 NegativeTail 12 60.0 -6.0 -28.0 -7.013401 12464
25 NegativeTail 12a 58.0 -10.0 -12.0 -5.149354
26 NegativeTail 12b 66.0 -24.0 -2.0 -4.922918
27 NegativeTail 12c 56.0 2.0 -34.0 -4.715167
28 NegativeTail 13 -56.0 -14.0 -22.0 -6.961798 28504
29 NegativeTail 13a -52.0 12.0 -36.0 -6.563193
30 NegativeTail 13b -46.0 32.0 -18.0 -6.064287
31 NegativeTail 13c -54.0 -2.0 -30.0 -5.897006
32 NegativeTail 14 -50.0 -10.0 28.0 -6.670022 17416
33 NegativeTail 14a -44.0 -24.0 56.0 -5.776675
34 NegativeTail 14b -40.0 -22.0 64.0 -4.917593
35 NegativeTail 14c -66.0 -6.0 20.0 -4.630486
36 NegativeTail 15 -48.0 -66.0 26.0 -6.499785 8864
37 NegativeTail 15a -26.0 -80.0 38.0 -2.464620
38 NegativeTail 16 4.0 -28.0 60.0 -3.684762 1872
39 NegativeTail 16a 8.0 -32.0 68.0 -3.134557
40 NegativeTail 16b -6.0 -26.0 56.0 -2.095555
41 NegativeTail 17 2.0 2.0 -14.0 -2.743391 224
42 NegativeTail 18 26.0 12.0 -34.0 -2.741521 200
43 NegativeTail 18a 24.0 14.0 -42.0 -1.980748
44 NegativeTail 19 28.0 26.0 -24.0 -2.737645 304
45 NegativeTail 19a 34.0 32.0 -22.0 -2.687174
46 NegativeTail 20 26.0 -64.0 60.0 -2.579077 224
47 NegativeTail 21 -20.0 -84.0 24.0 -2.562503 352
48 NegativeTail 21a -12.0 -86.0 26.0 -1.984768


Contribution table

result.tables["z_corr-FDR_method-indep_diag-Jackknife_tab-counts"]
id PositiveTail 1 PositiveTail 2 PositiveTail 3 NegativeTail 1 NegativeTail 2 NegativeTail 3 NegativeTail 4 NegativeTail 5 NegativeTail 6 NegativeTail 7 NegativeTail 8 NegativeTail 9 NegativeTail 10 NegativeTail 11 NegativeTail 12 NegativeTail 13 NegativeTail 14 NegativeTail 15
0 pain_01.nidm-1 0.233978 0.031158 0.161265 -0.032596 0.190545 -0.006759 -0.004768 0.075889 0.110819 -0.011922 -0.113325 -0.124198 -0.959179 -0.514137 0.824372 -0.172805 -0.678508 0.830867
1 pain_02.nidm-1 0.233978 0.031158 0.161265 -0.032596 0.190545 -0.006759 -0.004768 0.075889 0.110819 -0.011922 -0.113325 -0.124198 -0.959179 -0.514137 0.824372 -0.172805 -0.678508 0.830867
2 pain_03.nidm-1 0.233978 0.031158 0.161265 -0.032596 0.190545 -0.006759 -0.004768 0.075889 0.110819 -0.011922 -0.113325 -0.124198 -0.959179 -0.514137 0.824372 -0.172805 -0.678508 0.830867
3 pain_04.nidm-1 0.233978 0.031158 0.161265 -0.032596 0.190545 -0.006759 -0.004768 0.075889 0.110819 -0.011922 -0.113325 -0.124198 -0.959179 -0.514137 0.824372 -0.172805 -0.678508 0.830867
4 pain_05.nidm-1 0.233978 0.031158 0.161265 -0.032596 0.190545 -0.006759 -0.004768 0.075889 0.110819 -0.011922 -0.113325 -0.124198 -0.959179 -0.514137 0.824372 -0.172805 -0.678508 0.830867
5 pain_06.nidm-1 0.233978 0.031158 0.161265 -0.032596 0.190545 -0.006759 -0.004768 0.075889 0.110819 -0.011922 -0.113325 -0.124198 -0.959179 -0.514137 0.824372 -0.172805 -0.678508 0.830867
6 pain_07.nidm-1 0.233978 0.031158 0.161265 -0.032596 0.190545 -0.006759 -0.004768 0.075889 0.110819 -0.011922 -0.113325 -0.124198 -0.959179 -0.514137 0.824372 -0.172805 -0.678508 0.830867
7 pain_08.nidm-1 0.233978 0.031158 0.161265 -0.032596 0.190545 -0.006759 -0.004768 0.075889 0.110819 -0.011922 -0.113325 -0.124198 -0.959179 -0.514137 0.824372 -0.172805 -0.678508 0.830867
8 pain_09.nidm-1 0.233978 0.031158 0.161265 -0.032596 0.190545 -0.006759 -0.004768 0.075889 0.110819 -0.011922 -0.113325 -0.124198 -0.959179 -0.514137 0.824372 -0.172805 -0.678508 0.830867
9 pain_10.nidm-1 0.233978 0.031158 0.161265 -0.032596 0.190545 -0.006759 -0.004768 0.075889 0.110819 -0.011922 -0.113325 -0.124198 -0.959179 -0.514137 0.824372 -0.172805 -0.678508 0.830867
10 pain_11.nidm-1 0.292943 -0.162972 0.154485 -0.07538 0.097175 -0.031753 -0.044422 0.076453 0.066314 -0.017507 -0.175978 -0.265212 -1.231825 -0.581534 0.841576 -0.176819 -0.908259 0.741644
11 pain_12.nidm-1 0.292665 0.463833 0.348907 0.000174 0.336907 0.048804 0.086384 0.14813 0.241933 0.071478 -0.060925 0.009636 -0.696225 -0.520734 0.924758 -0.337087 -0.597269 1.084658
12 pain_13.nidm-1 0.237458 -0.118709 -0.034439 0.217805 0.52722 0.263727 0.152502 0.320496 0.426253 0.321097 0.253673 0.278523 -0.524561 -0.089054 1.094126 0.167231 -0.080303 1.077859
13 pain_14.nidm-1 0.366761 0.022853 -0.023832 0.000832 0.156966 0.00619 -0.003425 0.221898 0.089889 -0.054049 -0.013149 -0.095089 -0.698556 -0.295098 0.775124 -0.079577 -0.851382 0.742985
14 pain_15.nidm-1 0.269348 0.213685 0.374965 0.042357 0.302875 0.142 0.156253 0.170818 0.196735 0.102175 -0.068415 -0.019695 -0.890082 -0.304994 0.953801 0.01334 -0.231692 0.750787
15 pain_16.nidm-1 0.255642 0.101622 0.38533 0.096421 0.291625 0.189008 0.190501 0.150305 0.261153 0.14269 -0.046591 0.033048 -0.729584 -0.354563 0.872239 0.130459 -0.242239 0.754209
16 pain_17.nidm-1 0.301636 0.035419 0.123562 -0.098425 0.101832 -0.08173 -0.097748 -0.037863 0.05101 -0.057696 -0.279004 -0.241634 -1.220811 -0.669193 0.780078 -0.412554 -0.880082 1.092501
17 pain_18.nidm-1 0.192327 0.126255 0.201679 -0.01062 0.240898 0.018823 0.027088 0.102252 0.094608 0.008333 -0.088968 -0.1732 -1.038699 -0.607324 0.871315 -0.099154 -0.746177 0.873206
18 pain_19.nidm-1 0.242054 0.182358 0.337392 0.065371 0.349273 0.045925 0.088605 0.062506 0.174276 0.048968 0.066453 0.06268 -0.64365 -0.30537 0.897393 -0.141559 -0.254083 0.939576
19 pain_20.nidm-1 0.312073 0.148221 0.399574 -0.091426 -0.019681 -0.113788 -0.106911 -0.006967 -0.057509 -0.135724 -0.194009 -0.250189 -1.064714 -0.635144 0.909571 -0.211039 -0.984708 0.619934
20 pain_21.nidm-1 0.238454 -0.011964 0.138927 0.081568 0.129945 -0.003557 -0.033394 0.157718 0.191142 0.046393 0.015162 -0.072068 -0.709606 -0.389311 0.827702 -0.040227 -0.673606 0.765129


Report

Finally, a NiMARE report is generated from the MetaResult.

from nimare.reports.base import run_reports

# root_dir = Path(os.getcwd()).parents[1] / "docs" / "_build"
# Use the previous root to run the documentation locally.
root_dir = Path(os.getcwd()).parents[1] / "_readthedocs"
html_dir = root_dir / "html" / "auto_examples" / "02_meta-analyses" / "12_plot_ibma_workflow"
html_dir.mkdir(parents=True, exist_ok=True)

run_reports(result, html_dir)
/home/docs/checkouts/readthedocs.org/user_builds/nimare/checkouts/latest/nimare/reports/figures.py:659: UserWarning: kwargs['alpha']=0.7 detected in parameters.
Overriding with transparency=None.
To suppress this warning pass your 'alpha' value via the 'transparency' parameter.
  fig = plot_img(

Total running time of the script: (0 minutes 54.423 seconds)

Gallery generated by Sphinx-Gallery