Skip to content

Commit

Permalink
removed binarize counts method and contingency table method in the si…
Browse files Browse the repository at this point in the history
…ngle gene class. may reintroduce later or may move to the future pairwise gene class
  • Loading branch information
ashuaibi7 committed Nov 22, 2024
1 parent d5ab92c commit c237f29
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions src/dialect/models/gene.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,25 +47,6 @@ def compute_log_likelihood(self, pi):
)
return log_likelihood

def binarize_counts(self):
"""
Get the binarized counts for the gene based on a threshold.
:return (np.ndarray): Binarized counts.
"""
return (self.counts >= 1).astype(int)

def get_contingency_table(self, other_counts):
"""
Get the contingency table for the current gene and another gene.
:param other_counts (np.ndarray): Counts of another gene.
:return (np.ndarray): Contingency table.
"""
raise NotImplementedError(
"Contingency table computation is not yet implemented."
)

def compute_likelihood_ratio(self):
"""
Compute the likelihood ratio test statistic (lambda_LR) with respect to the null hypothesis.
Expand Down

0 comments on commit c237f29

Please sign in to comment.