Skip to content

Commit 9b5b017

Browse files
committed
remove old logic
1 parent 8b0a6f0 commit 9b5b017

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

latticegpm/gpm.py

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# use space enumeration
44
from gpmap.gpm import GenotypePhenotypeMap
5-
from gpmap.utils import mutations_to_genotypes, binary_mutations_map
5+
from gpmap.utils import mutations_to_genotypes
66

77
# ------------------------------------------------------
88
# Build a binary protein lattice model sequence space
@@ -96,12 +96,6 @@ def __init__(self, wildtype,
9696
mutations=mutations
9797
)
9898

99-
@classmethod
100-
def read_mutant(cls, s1, s2, **kwargs):
101-
"""Build Lattice GPM """
102-
mutations = binary_mutations_map(s1, s2)
103-
return cls(s1, mutations, **kwargs)
104-
10599
@property
106100
def phenotype_type(self):
107101
return self._phenotype_type
@@ -114,6 +108,6 @@ def phenotype_type(self, phenotype_type):
114108
def print_sequences(self, sequences):
115109
""" Print sequence conformation with/without ligand bound. """
116110
# Get the sequence to conformation mapping from `seqspace` machinery.
117-
seq2conf = self.get_map("genotypes", "confs")
111+
seq2conf = self.map("genotypes", "confs")
118112
for s in sequences:
119113
PrintConformation(s, seq2conf[s])

0 commit comments

Comments
 (0)