I'm using a protein structure modelling tool called "Modeller" that's based on Python and I keep getting this error
ValueError: too many values to unpack
When I try to run the following script:
from modeller import *
env = environ()
aln = alignment(env)
for (pdb, chain) in (('tseq1', 'A')):
m = model(env, file=pdb, model_segment=('FIRST:'+chain, 'LAST:'+chain))
aln.append_model(m, atom_files=pdb, align_codes=pdb+chain)
aln.malign()
aln.malign3d()
aln.compare_structures()
aln.id_table(matrix_file='family.mat')
env.dendrogram(matrix_file='family.mat', cluster_cut=-1.0)
I've tried changing 'tseq1' (template sequence), just in case I got the wrong file and it's supposed to be qseq1, which is my query sequence. But it doesn't make a difference and I keep getting the same error. I read somewhere that this error occurs when I try to unpack too many values into an object that's not got enough variables to unpack them to, but I can't see where 'tseq1' is going in this script. When I run this code in terminal I use the following command (just in case that has something to do with it, which I doubt):
mod9.14 script2.py
Can anyone help?