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’, ‘Variable_pvalue’, ‘LRT_pvalue’, ‘Diff_AIC’, ‘pvalue’]

Returns
None

Examples

>>> clarite.analyze.add_corrected_pvalues(ewas_discovery)