[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [modeller_usage] Modeling loop using template from PDB file



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
--
             https://salilab.org/modeller/
Modeller mail list: https://salilab.org/mailman/listinfo/modeller_usage