acore.enrichment_analysis.statistical_tests.fisher module#
Run fisher’s exact test on two groups using scipy.stats.fisher_exact.
- run_fisher(group1: list[int], group2: list[int], alternative: str = 'two-sided') tuple[float, float][source]#
Run fisher’s exact test on two groups using scipy.stats.fisher_exact.
Example:
# annotated not-annotated # group1 a b # group2 c d odds, pvalue = stats.fisher_exact(group1=[a, b], group2 =[c, d] )