Hi, I need some help has follows.
I am using the script file as in example of pg 9 0f the User Manual. The error is given bellow:
bcramer@schrodinger:~/workdir-modeller9.1$ python runmodeller-test1.py File "runmodeller-test1.py", line 13 a = automodel(env, alnfile = ’alinha.pir’, knowns = ’4hpg’, sequence = ’bgl’) ^ SyntaxError: invalid syntax
script is as follows
--------------------------------------------
# -*- coding: utf-8 -*- from modeller import * from modeller.automodel import *
log.verbose() env = environ()
env.io.atom_files_directory = ['home/bcramer/workdir-modeller9.1']
env.io.hetatm = True env.io.water = True
a = automodel(env, alnfile = ’alinha.pir’, knowns = ’4hpg’, sequence = ’bgl’) a.starting_model = 1 a.ending_model = 5 a.make()
------------------------------------------
OS-Ubuntu 18.4 64b Modeller v.9.21 -Python 2.7
Thank you
Bruno
On 5/30/19 2:13 PM, Bruno Cramer wrote: > bcramer@schrodinger:~/workdir-modeller9.1$ python runmodeller-test1.py > File "runmodeller-test1.py", line 13 > a = automodel(env, alnfile = ’alinha.pir’, knowns = ’4hpg’, > sequence = ’bgl’) > ^ > SyntaxError: invalid syntax
This isn't a Modeller issue. Python expects its scripts to be plain text. Use a regular quote character (' not ’) for your strings here (you use the right one when you set atom_files_directory above).
Ben Webb, Modeller Caretaker
----- Mensagem original ----- De: "Modeller Caretaker" modeller-care@salilab.org Para: "Bruno Cramer" bruno.cramer@gmail.com, "modeller usage" modeller_usage@salilab.org Enviadas: Quinta-feira, 30 de maio de 2019 18:48:16 Assunto: Re: [modeller_usage] python script error
On 5/30/19 2:13 PM, Bruno Cramer wrote: > bcramer@schrodinger:~/workdir-modeller9.1$ python runmodeller-test1.py > File "runmodeller-test1.py", line 13 > a = automodel(env, alnfile = ’alinha.pir’, knowns = ’4hpg’, > sequence = ’bgl’) > ^ > SyntaxError: invalid syntax
This isn't a Modeller issue. Python expects its scripts to be plain text. Use a regular quote character (' not ’) for your strings here (you use the right one when you set atom_files_directory above).
Ben Webb, Modeller Caretaker
participants (3)
-
Bruno Cramer
-
JOAO RICARDO MENDES DE OLIVEIRA
-
Modeller Caretaker