API¶
nimare.dataset
: Dataset IO¶
Classes for representing datasets of images and/or coordinates.
|
Storage container for a coordinate- and/or image-based meta-analytic dataset/database. |
nimare.meta
: Meta-analytic algorithms¶
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. |
|
Methods for estimating thresholded cluster maps from neuroimaging contrasts (Contrasts) from sets of foci and optional additional information (e.g., sample size and test statistic values). |
nimare.results
: Meta-analytic results¶
Base classes for datasets.
|
Base class for meta-analytic results. |
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.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 via MALLET. |
|
Text extraction tools. |
|
Utility functions for ontology tools. |
nimare.decode
: Functional characterization analysis¶
Functional decoding tools
Methods for decoding subsets of voxels (e.g., ROIs) or experiments (e.g., from meta-analytic clustering on a database) into text. |
|
Methods for decoding unthresholded brain maps into text. |
|
Methods for encoding text into brain maps. |
nimare.io
: Input/Output¶
Input/Output operations.
|
Convert Neurosynth database files to a dictionary. |
|
Convert Neurosynth dataset text file to a NiMARE json file. |
|
Convert Neurosynth database files into dictionary and create NiMARE Dataset with dictionary. |
|
Convert Sleuth text file to a dictionary. |
|
Convert Sleuth output text file into json. |
|
Convert Sleuth output text file into dictionary and create NiMARE Dataset with dictionary. |
nimare.transforms
: Data transforms¶
Miscellaneous spatial and statistical transforms
|
Generate images of a given type, depending on compatible images of other types, and write out to files. |
|
Figure out the appropriate set of transforms for given available data to a target image type, and apply them. |
|
A simple heuristic for calculating degrees of freedom from a list of sample sizes. |
A simple heuristic for appropriate sample size from a list of sample sizes. |
|
|
Convert standard deviation to sampling variance. |
Convert standard error values to sampling variance. |
|
Convert “sample variance of the dataset” (variance of the individual observations in a single sample) to “sampling variance” (variance of sampling distribution for the parameter). |
|
|
Convert t-statistic to parameter estimate using sampling variance. |
|
Convert t-statistic to sampling variance using parameter estimate. |
|
Convert p-values to (unsigned) z-values. |
|
Convert t-statistics to z-statistics. |
|
Convert z-statistics to t-statistics. |
|
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. |
nimare.extract
: Dataset and model fetching¶
Dataset and trained model downloading functions
|
Download NIDM Results for 21 pain studies from NeuroVault for tests. |
|
Download the MALLET toolbox for LDA topic modeling. |
|
Download Cognitive Atlas ontology and combine Concepts, Tasks, and Disorders to create ID and relationship DataFrames. |
|
Download the abstracts for a list of PubMed IDs. |
Download the trained Peaks2Maps model from OHBM 2018. |
nimare.stats
: Statistical functions¶
Various statistical helper functions.
|
One-way chi-square test of independence. |
|
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 against null array. |
|
Return one-sided p-value for test value against null histogram. |
|
Determine FDR threshold given a p value array and desired false discovery rate q. |
nimare.utils
: Utility functions and submodules¶
Utilities
|
Load a given data type in NIMADS-format dictionary into DataFrame. |
|
Load coordinates in NIMADS-format dictionary into DataFrame. |
Check that an input is a DataFrame and has a column for ‘id’. |
|
|
Check and update image paths in DataFrame. |
|
Load template file. |
|
Get an initialized, fitted nilearn Masker instance from passed argument. |
|
Wraps all non-list or tuple objects in a list; provides a simple way to accept flexible arguments. |
|
Numpy rounds X.5 values to nearest even integer. |
Returns the path to general resources, terminated with separator. |
|
|
Find longest common substring in array of strings. |
|
Convert UK spellings to US based on a converter. |
nimare.workflows
: Common workflows¶
Common meta-analytic workflows
|
Perform ALE meta-analysis from Sleuth text file. |
|
Contrast permutation workflow. |
|
Perform MACM with ALE algorithm. |
|
peaks2maps workflow |
|
Perform SCALE meta-analysis from Sleuth text file or NiMARE json file. |
nimare.base
: Base classes¶
Base classes for datasets.
Base class for NiMARE. |
|
Estimators take in Datasets and return MetaResults |
|
|
Base class for meta-analysis methods in |
Transformers take in Datasets and return Datasets |
|
Base class for decoders in |