2
2
3
3
# use space enumeration
4
4
from gpmap .gpm import GenotypePhenotypeMap
5
- from gpmap .utils import mutations_to_genotypes , binary_mutations_map
5
+ from gpmap .utils import mutations_to_genotypes
6
6
7
7
# ------------------------------------------------------
8
8
# Build a binary protein lattice model sequence space
@@ -96,12 +96,6 @@ def __init__(self, wildtype,
96
96
mutations = mutations
97
97
)
98
98
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
-
105
99
@property
106
100
def phenotype_type (self ):
107
101
return self ._phenotype_type
@@ -114,6 +108,6 @@ def phenotype_type(self, phenotype_type):
114
108
def print_sequences (self , sequences ):
115
109
""" Print sequence conformation with/without ligand bound. """
116
110
# Get the sequence to conformation mapping from `seqspace` machinery.
117
- seq2conf = self .get_map ("genotypes" , "confs" )
111
+ seq2conf = self .map ("genotypes" , "confs" )
118
112
for s in sequences :
119
113
PrintConformation (s , seq2conf [s ])
0 commit comments