from modeller import *
from modeller.automodel import *
from modeller.parallel import *
from mymodel import mymodel
j = job()
j.append(local_slave())
j.append(local_slave())
j.append(local_slave())
j.append(local_slave())
j.append(local_slave())
j.append(local_slave())
j.append(local_slave())
j.append(local_slave())
log.very_verbose()
env = environ()
env.io.atom_files_directory = ['.', '../atom_files']
env.io.hetatm = True
env.io.water = True
a = mymodel(env,deviation=0,
alnfile = 'xyz.ali' ,
knowns = ('xyz','zxy') ,
sequence = 'PcPAL', assess_methods=(assess.DOPE, assess.GA341))
a.starting_model= 1
a.ending_model = 8
a.md_level = refine.slow
a.use_parallel_job(j)
a.make()
from modeller import *
from modeller.automodel import *
class mymodel(automodel):
def special_patches(self, aln):
self.rename_segments(segment_ids=['A', 'B', 'C', 'D'], renumber_residues=[25, 25, 25, 25])
def special_restraints(self, aln):
rsr = self.restraints
at = self.atoms
s1 = selection(self.chains['A']).only_atom_types('CA')
s2 = selection(self.chains['B']).only_atom_types('CA')
s3 = selection(self.chains['C']).only_atom_types('CA')
s4 = selection(self.chains['D']).only_atom_types('CA')
rsr.symmetry.append(symmetry(s1, s2, 1.0))
rsr.symmetry.append(symmetry(s2, s3, 1.0))
rsr.symmetry.append(symmetry(s3, s4, 1.0))
def user_after_single_model(self): self.restraints.symmetry.report(1.0)