Skip to content

Commit

Permalink
add object instance variables to keep track of metrics from alternati…
Browse files Browse the repository at this point in the history
…ve methods fishers exact and discover
  • Loading branch information
ashuaibi7 committed Dec 19, 2024
1 parent cdf73d2 commit 3dcd3e4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/dialect/models/interaction.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,12 @@ def __init__(self, gene_a, gene_b):
self.tau_10 = None # P(D = 1, D' = 0) for genes A and B
self.tau_11 = None # P(D = 1, D' = 1) for genes A and B

# Metrics from alternative methods
self.discover_me_qval = None
self.discover_co_qval = None
self.fishers_me_qval = None
self.fishers_co_qval = None

def __str__(self):
"""
Return a string representation of the Interaction object.
Expand Down

0 comments on commit 3dcd3e4

Please sign in to comment.