Skip to content

Commit

Permalink
compute and add fisher p-values to interaction result table
Browse files Browse the repository at this point in the history
  • Loading branch information
ashuaibi7 committed Dec 17, 2024
1 parent 791f4a2 commit c83358c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/dialect/utils/identify.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ def create_pairwise_results_table(interactions, output_path):
log_odds_ratio = interaction.compute_log_odds_ratio(taus)
likelihood_ratio = interaction.compute_likelihood_ratio(taus)
cm = interaction.compute_contingency_table()
fisher_me_pval, fisher_co_pval = interaction.compute_fisher_pvalues()

results.append(
{
Expand All @@ -83,6 +84,8 @@ def create_pairwise_results_table(interactions, output_path):
"Rho": rho,
"Log Odds Ratio": log_odds_ratio,
"Likelihood Ratio": likelihood_ratio,
"Fisher's ME P-Val": fisher_me_pval,
"Fisher's CO P-Val": fisher_co_pval,
}
)

Expand Down

0 comments on commit c83358c

Please sign in to comment.