Пример #1
0
 def __init__(self, env, aln=None, **vars):
     self.__modpt = _modeller.mod_profile_new(self)
     self.env = env.copy()
     if aln is not None:
         _modeller.mod_profile_from_aln(aln=aln.modpt,
                                        prf=self.modpt,
                                        libs=self.env.libs.modpt)
     elif len(vars) > 0:
         self.read(**vars)
Пример #2
0
 def to_profile(self):
     """Converts the alignment to profile format"""
     prf = profile.profile(self.env)
     _modeller.mod_profile_from_aln(aln=self.modpt, prf=prf.modpt,
                                    libs=self.env.libs.modpt)
     return prf
Пример #3
0
 def aln_to_prof(self, **keys):
     aln = self.get_aln()
     prf = self.get_prf()
     libs = self.get_libs()
     _modeller.mod_profile_from_aln(aln, prf, libs)