API
nimare.meta: Meta-analytic algorithms
For more information about the components of coordinate-based meta-analysis in NiMARE, see Coordinate-based meta-analysis in NiMARE.
Coordinate-, image-, and effect-size-based meta-analysis estimators.
Image-based meta-analysis estimators. |
|
CBMA methods from the activation likelihood estimation (ALE) family. |
|
CBMA methods from the multilevel kernel density analysis (MKDA) family. |
|
CBMA methods from the ALE and MKDA families. |
|
Kernel transformers for CBMA algorithms. |
|
Coordinate-based meta-regression methods. |
nimare.results: Meta-analytic results
Tools for managing meta-analytic results.
|
Base class for meta-analytic results. |
|
Stand-in for an input image array dropped by |
nimare.correct: Multiple comparisons correction
Multiple comparisons correction methods.
|
Perform family-wise error rate correction on a meta-analysis. |
|
Perform false discovery rate correction on a meta-analysis. |
nimare.diagnostics: Diagnostics
Methods for diagnosing problems in meta-analytic datasets or analyses.
|
Remove coordinates outside of the collection mask. |
|
Run a jackknife analysis on a meta-analysis result. |
|
Run a focus-count analysis on a coordinate-based meta-analysis result. |
Estimate voxelwise stability of thresholded results under dataset resampling. |
nimare.annotate: Automated annotation
Automated annotation tools.
Automated annotation of Cognitive Atlas labels. |
|
Topic modeling with generalized correspondence latent Dirichlet allocation. |
|
Topic modeling with latent Dirichlet allocation. |
|
Text extraction tools. |
|
Utility functions for ontology tools. |
nimare.decode: Functional characterization analysis
For more information about functional characterization analysis, see Meta-analytic functional decoding.
Functional decoding tools.
Methods for decoding subsets of voxels or experiments into text. |
|
Methods for decoding unthresholded brain maps into text. |
|
Methods for encoding text into brain maps. |
|
Base classes for the decode module. |
nimare.io: Tools for ingesting data in other formats
Input/Output operations.
|
Convert Neurosynth/NeuroQuery database files to a dictionary. |
|
Convert Neurosynth/NeuroQuery dataset text file to a NiMARE json file. |
|
Convert Neurosynth/NeuroQuery database files into NiMARE Dataset. |
|
Download a Neurostore studyset and optional annotation as a NiMARE Studyset. |
|
Convert nimads studyset to a dataset. |
|
Convert a NIMADS Studyset to Sleuth text file(s). |
|
Convert a NiMARE Dataset to a NIMADS Studyset dictionary. |
|
Convert a NiMARE Dataset into a nimads.Studyset object. |
|
Convert Sleuth text file to a dictionary. |
|
Convert Sleuth output text file into json. |
|
Convert Sleuth output text file into NiMARE Dataset. |
|
Convert Sleuth output text file into a NiMARE Studyset. |
|
Convert a group of NeuroVault collections into a NiMARE Dataset. |
nimare.studyset: NeuroImaging Meta-Analysis Data Structure
The NIMADS Studyset is the primary collection type for
all NiMARE workflows. nimare.nimads re-exports this module under the
historical import path and adds nothing of its own.
Columnar studyset: an immutable store, views over it, and typed blocks.
A NIMADS studyset is a fixed-depth forest – every point, image and condition names exactly one parent analysis, and every analysis exactly one study – so it is a set of columnar tables joined by CSR offset arrays, not a graph.
The layering, which the module boundaries enforce:
store,columnsthe data. Immutable, numpy only. Knows nothing about selections, algorithms, pandas or files.
layoutthe rules that keep parent links and offsets consistent.
viewa selection:
(store, analysis index, point mask)plus execution context.requirements,blockswhat an algorithm declares it needs, and the shapes it gets back.
editcopy-on-write growth:
store -> store.ioNIMADS and parquet, in and out.
nestedread-only
Study/Analysis/Point/Imageaccessors over the columns. A walk is confined to the view it started from, so it reports what that view’s frames and blocks report.
Data flows store -> view -> block and never back.
This is the canonical public surface. nimare.nimads re-exports it under
the historical import path and adds nothing of its own.
|
A collection of studies for meta-analysis. |
|
Immutable columnar representation of a studyset. |
|
A selection of analyses over one immutable store. |
|
Execution setup: not data, so it lives on the view. |
|
One study. |
|
One analysis (a contrast). |
|
One statistic map. |
|
One focus, reported in the space its studyset is being read in. |
|
One annotation: identity, declared types, and columns over the analyses. |
|
Columns aligned to one level's row index, dense or sparse. |
|
Foci, grouped by analysis, in |
|
One statistic map per analysis, of type |
|
The annotation matrix. |
|
Documents from a text field. |
|
One number per analysis, from metadata at either level. |
|
Foci grouped by analysis. |
|
One row per image, with its parent analysis and study alongside. |
|
The annotation matrix, column-major. |
|
Documents, with the document index already integral. |
|
A pairwise input: two views that provably share one store. |
|
Return a Studyset for whatever was passed in. |
|
Return a list of invariant violations. |
|
Build a store from a NIMADS studyset document. |
|
Build a store from a parquet studyset release directory. |
|
Write the studyset as NIMADS JSON. |
|
Write the studyset as a parquet release directory. |
Convert a NeuroStore release JSON export into parquet tables. |
nimare.dataset: Legacy Dataset IO
Warning
Dataset is deprecated and will be removed in NiMARE 1.0.0.
Constructing one, or passing one to any algorithm, raises a FutureWarning.
Use Studyset instead – see
from_dataset() and the
nimare.io.convert_*_to_studyset functions for the migration paths.
Classes for representing datasets of images and/or coordinates.
Deprecated since version 0.21.0: Dataset is deprecated and will be removed in NiMARE 1.0.0.
Use Studyset instead. Constructing a Dataset, or passing
one to any NiMARE algorithm, raises a FutureWarning; silence them with::
warnings.filterwarnings(“ignore”, message=”.*nimare.dataset.Dataset is deprecated”)
|
Storage container for a coordinate- and/or image-based meta-analytic dataset/database. |
nimare.transforms: Data transforms
Miscellaneous spatial and statistical transforms.
|
A class to create new images from existing ones within a collection. |
Transformer from images to coordinates. |
|
|
Standardize metadata fields. |
|
Threshold an array or Niimg-like object and zero voxels that fail the criterion. |
|
Generate images of a given type from other image types and write out to files. |
|
Determine and apply the appropriate transforms to a target image type from available data. |
|
Calculate degrees of freedom from a list of sample sizes using a simple heuristic. |
Calculate appropriate sample size from a list of sample sizes using a simple heuristic. |
|
|
Convert standard deviation to sampling variance. |
Convert standard error values to sampling variance. |
|
Convert "sample variance of the dataset" to "sampling variance". |
|
|
Convert t-statistic to parameter estimate using sampling variance. |
|
Convert t-statistic to sampling variance using parameter estimate. |
|
Convert t-statistics to Cohen's d. |
|
Convert Cohen's d to Hedges' g. |
|
Convert p-values to (unsigned) z-values. |
|
Convert |
|
Convert t-statistics to z-statistics. |
|
Convert z-statistics to t-statistics. |
|
Convert z-values to p-values. |
|
Convert z-values to |
|
Convert t-statistics to |
|
Convert chi-squared statistics to |
nimare.extract: Dataset and model fetching
For more information about fetching data from the internet, see Fetching resources from the internet.
Dataset and trained model downloading functions.
|
Download the latest data files from NeuroQuery. |
|
Download the latest data files from NeuroSynth. |
|
Download NIDM Results for 21 pain studies from NeuroVault for tests. |
|
Download Cognitive Atlas ontology and extract IDs and relationships. |
|
Download the abstracts for a list of PubMed IDs. |
|
Return the directories in which NiMARE looks for data. |
nimare.stats: Statistical functions
Various statistical helper functions.
|
One-way chi-square test of independence. |
|
Two-way chi-square test from paired study-count vectors. |
|
Two-way chi-square test of independence. |
|
Correlate row vector x with each row vector in 2D array y, quickly. |
|
Return p-value for test value(s) against null array. |
|
Return one-sided p-value for test value against null histogram. |
|
Perform Bonferroni correction on |
|
Perform FDR correction on |
nimare.generate: Data generation functions
Utilities for generating data for testing.
|
Generate coordinate based dataset for meta analysis. |
|
Generate a coordinate-based Studyset for meta-analysis. |
Download images from NeuroVault and use them to create a dataset. |
|
Download images from NeuroVault and use them to create a Studyset. |
nimare.utils: Utility functions and submodules
Utility functions for NiMARE.
|
Load template file. |
|
Get an initialized, fitted nilearn Masker instance from passed argument. |
Return the path to general resources, terminated with separator. |
|
|
Convert matrix subscripts to coordinates. |
|
Convert coordinates to matrix subscripts. |
|
Convert coordinates from Talairach space to MNI space. |
|
Convert coordinates from MNI space Talairach space. |
|
Remove repeated rows from a 2D array. |
nimare.workflows: Common workflows
Common meta-analytic workflows.
|
Perform MACM with ALE algorithm. |
|
Compose a coordinate-based meta-analysis workflow. |
Compose a masked contrast workflow for pairwise CBMA analyses. |
|
Base class for pairwise coordinate-based meta-analysis workflow methods. |
|
|
Compose a coordinate-based meta-analysis workflow. |
Perform a conjunction analysis. |
nimare.reports: NiMARE report
Reports module.
|
Run the reports. |
nimare.base: Base classes
Base classes for NiMARE.
Base class for NiMARE. |
|
|
Estimators take in collections and return fitted result objects. |