Skip to content

Commit

Permalink
class changes
Browse files Browse the repository at this point in the history
  • Loading branch information
armaan-abraham committed Jan 25, 2024
1 parent ae33bcd commit 33da12c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ddmc/clustering.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,17 @@ def __init__(

seqs = sequences.str.upper().to_list()



def gen_peptide_distances(self, seqs, distance_method):
if distance_method == "PAM250":
self.seq_dist: PAM250 | Binomial = PAM250(seqs)
elif distance_method == "Binomial":
self.seq_dist = Binomial(sequences, seqs)
else:
raise ValueError("Wrong distance type.")


def _estimate_log_prob(self, X: np.ndarray):
"""Estimate the log-probability of each point in each cluster."""
logp = super()._estimate_log_prob(X) # Do the regular work
Expand Down

0 comments on commit 33da12c

Please sign in to comment.