hucira.check_robustness#
- hucira.check_robustness(all_results, threshold_qval=0.1, threshold_valid=0.1, threshold_below_alpha=0.9)#
Filter for robust and significant results out of original enrichments.
Returns only the enrichments that are stable across many different tests and that are statistically significant.
- Parameters:
all_results (pandas.DataFrame) – The DataFrame output from
run_one_enrichment_test().threshold_qval (float) – Threshold that checks significance of results (leniently). Result is considered significant if its q-val is below this threshold.
threshold_valid (float) – The fraction of results required to even consider this condition. I.e. if the test only ran for one set of thresholds, then it is not very robust.
threshold_below_alpha (float) – The fraction of results that need to be significant.
- Return type:
DataFrame- Returns:
pandas.DataFrame DataFrame with robust and significant enrichments (includes min and max of NES).