
Hi everyone, I am working on the tutorial http://salilab.org/modeller/wiki/Missing%20residues I am trying to run the script 1qg8_getseq.py which has # Get the sequence of the 1qg8 PDB file, and write to an alignment file code = '1qg8' e = environ() m = model(e, file=code) aln = alignment(e) aln.append_model(m, align_codes=code) aln.write(file=code+'.seq') I get the following error. File "1qg8_getseq.py", line 4, in <module> e = environ() NameError: name 'environ' is not defined Looks like python is not reading the modeller libraries. Could you please advise how to solve this error? Thank you Sajeewa Dewage

On 06/29/2014 04:49 PM, Sajeewa Pemasinghe wrote: > I get the following error. > > File "1qg8_getseq.py", line 4, in <module> > e = environ() > NameError: name 'environ' is not defined Add the following to the start of your Python script: from modeller import * Ben Webb, Modeller Caretaker -- modeller-care@salilab.org http://www.salilab.org/modeller/ Modeller mail list: https://salilab.org/mailman/listinfo/modeller_usage
participants (2)
-
Modeller Caretaker
-
Sajeewa Pemasinghe