Skip to content

Commit

Permalink
Support liberal mask in IBMA estimators (#848)
Browse files Browse the repository at this point in the history
* Support liberal mask in IBMA

* Use numba for calculating the bags

* add test for _apply_liberal_mask()

* Implement liberal mask across IBMA estimators

* Update test_utils.py

* Update ibma.py

* Update utils.py

* Update test_utils.py

* Incorporate @tsalo suggestion: Outputs DoF maps

* Set data type

* Update docstring

* Add doctring. Remove voxels with less that 2 studies from the analsysis

* Update utils.py

* Update utils.py

* Remove resample option from IBMA examples

* Apply @jdkent suggestions

* Update ibma.py
  • Loading branch information
JulioAPeraza authored Dec 14, 2023
1 parent 9c4d2ea commit 0e10f03
Show file tree
Hide file tree
Showing 6 changed files with 706 additions and 177 deletions.
2 changes: 1 addition & 1 deletion examples/02_meta-analyses/02_plot_ibma.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@
# -----------------------------------------------------------------------------
from nimare.meta.ibma import Fishers

meta = Fishers(resample=True)
meta = Fishers()
results = meta.fit(dset)

plot_stat_map(
Expand Down
3 changes: 1 addition & 2 deletions examples/02_meta-analyses/06_plot_compare_ibma_and_cbma.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,7 @@
###############################################################################
# DerSimonian-Laird (IBMA)
# -----------------------------------------------------------------------------
# We must resample the image data to the same MNI template as the Dataset.
meta_ibma = DerSimonianLaird(resample=True)
meta_ibma = DerSimonianLaird()
ibma_results = meta_ibma.fit(dset)
plot_stat_map(
ibma_results.get_map("z"),
Expand Down
Loading

0 comments on commit 0e10f03

Please sign in to comment.