Perform false discovery rate correction on a meta-analysis.
Parameters:
method (str, default=’indep’) – The FDR correction to use.
Either ‘indep’ (for independent or positively correlated values) or ‘negcorr’
(for general or negatively correlated tests).
Default is ‘indep’.
alpha (float, default=0.05) – The FDR correction rate to use. Default is 0.05. Note that the step-up procedure
only rescales the p-values, so this does not affect the corrected maps; it is the
rate they are meant to be thresholded at.
Forwarded to an Estimator-implemented correction method, which cannot read it off
the Corrector; one with no alpha parameter raises rather than quietly using its
own rate.
**kwargs – Keyword arguments to be used by the FDR correction implementation.
Ones set to None are dropped; the rest must be accepted by that implementation,
or transform() raises TypeError.
Notes
Changed in version 0.21.0: alpha now reaches an Estimator-implemented correction method.
This corrector supports a small number of internal FDR correction methods, but can also use
special methods implemented within individual Estimators.
To determine what methods are available for the Estimator you’re using, use inspect().
Estimators have special methods following the naming convention
correct_[correction-type]_[method]
(e.g., correct_fdr_indep).
This correction is based on the one described in Benjamini and Hochberg[1].
This method is not universally appropriate. It works well for tests that are independent,
or which are positively correlated.
Warning
Do not call this method directly. Call transform() with method='indep'
instead.
nlogp_corr (numpy.ndarray) – A 1D array of adjusted nlogp values.
tables (dict) – A dictionary of DataFrames with summary information from the correction.
This correction method does not produce any tables, so it will be an empty dict.
description_ (str) – A description of the correction procedure.
nlogp_corr (numpy.ndarray) – A 1D array of adjusted nlogp values.
tables (dict) – A dictionary of DataFrames with summary information from the correction.
This correction method does not produce any tables, so it will be an empty dict.
description_ (str) – A description of the correction procedure.
Notes
The difference between the Benjamini-Yekutieli and Benjamini-Hochberg methods is that
Benjamini-Yekutieli includes an additional term, c(m).
When the tests are independent or positively correlated, c(m) is 1 (and thus has no
effect).
In cases of other forms of dependence, c(m) has an effect.
compressed (bool, default=True) – If True, the file is assumed to be compressed and gzip will be used
to load it. Otherwise, it will assume that the file is not
compressed. Default = True.
The method works on simple estimators as well as on nested objects
(such as pipelines). The latter have parameters of the form
<component>__<parameter> so that it’s possible to update each
component of a nested object.