clarite.analyze.add_corrected_pvalues

clarite.analyze.add_corrected_pvalues(ewas_result)

Add bonferroni and FDR pvalues to an ewas result and sort by increasing FDR (in-place)

Parameters
ewas_result: pd.DataFrame

EWAS results DataFrame with these columns: [‘variable_type’, ‘converged’, N’, ‘beta’, ‘SE’, ‘var_pvalue’, ‘LRT_pvalue’, ‘diff_AIC’, ‘pvalue’]

Returns
None

Examples

>>> clarite.analyze.add_corrected_pvalues(ewas_discovery)