modeller error; " ValueError: too many arguments to unpack"
I am going to generate a monomer from one single Template (tseq1) by modeller. But there one problem is arised. I have a only one template. According to the basic tutorial of modeller.. I made alignment file like this, (where tseq1 is single template file)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)That time it was failed to run by showing the following error"ValueError:too many values to unpack" .can anyone tell me where is the problem? Thank you.Best Regards. Sourav Pal JRF
On 1/18/18 10:32 PM, Sourav Pal wrote: > "ValueError:too many values to unpack" .
You have a typo in your Python script - not a Modeller issue.
for (pdb, chain) in (('tseq1', 'A')):
should read
for (pdb, chain) in (('tseq1', 'A'),):
Ben Webb, Modeller Caretaker
participants (2)
-
Modeller Caretaker
-
Sourav Pal