Hi, I want to use modeller to mutate the selected residues and obtain multiply models. But modeller usually give just one model. Then would you tell me how to redesign the python to generate multiply models? Here is the script that I have used to generate the mutant. Thanks in advance! Jian
# Example for: selection.mutate() from modeller import * env = environ() env.libs.topology.read(file='$(LIB)/top_heav.lib') env.libs.parameters.read(file='$(LIB)/par.lib') code = "t_str.pdb" aln = alignment(env) mdl = model(env, file=code) aln.append_model(mdl, atom_files=code, align_codes=code) sel_1 = selection(mdl.residues["40:A"]) sel_1.mutate(residue_type="SER") aln.append_model(mdl, align_codes="1fas-1") mdl.clear_topology() mdl.generate_topology(aln['1fas-1']) mdl.transfer_xyz(aln) mdl.build(initialize_xyz=False, build_method='INTERNAL_COORDINATES') mdl.write(file="4lyzT40S_S91V.pdb")
tianjian3721 wrote: > I want to use modeller to mutate the selected residues and obtain > multiply models. But modeller usually give just one model. > Then would you tell me how to redesign the python to generate multiply > models? Here is the script that I have used to generate the mutant.
Modeller is deterministic, so given the same inputs and no randomization you'll always get the same model. Your script doesn't do any optimization, so there is no input randomization. For a script that generates optimized models, see:
http://salilab.org/modeller/wiki/Mutate%20model
You can generate different models from that script by changing the value of rand_seed.
Ben Webb, Modeller Caretaker
participants (2)
-
Modeller Caretaker
-
tianjian3721