[Date Prev ][Date Next ][Thread Prev ][Thread Next ][Date Index ][Thread Index ]
Re: [modeller_usage] Modeling loop using template from PDB file
To : Markus Heller <mhellerATcdrd.ca >, "modeller_usageATsalilab.org " <modeller_usageATsalilab.org >
Subject : Re: [modeller_usage] Modeling loop using template from PDB file
From : Modeller Caretaker <modeller-careATsalilab.org >
Date : Wed, 7 Dec 2016 11:47:54 -0800
On 12/7/16 11:39 AM, Markus Heller wrote:
I can't get it to work for both chains.
...
return selection(self.residue_range('339:A', '372:A', '809:B', '842:B'))
As the error points out, you can only give two residue numbers (the
start and end) to residue_range() (the third implicit argument is the
class, self). But the selection object can take multiple objects, so
what you actually want is
return selection(self.residue_range('339:A', '372:A'),
self.residue_range('809:B', '842:B'))
Ben Webb, Modeller Caretaker
--
modeller-careATsalilab.org https://salilab.org/modeller/
Modeller mail list: https://salilab.org/mailman/listinfo/modeller_usage