jinlian05@lzu.cn wrote: > return selection(self.residue_range('53:', '67:') > (self.residue_range('89:', '96:') > (self.residue_range('118:', '144:') > (self.residue_range('166:', '177:') > (self.residue_range('199:', '221:') > (self.residue_range('243:', '254:'))
This is invalid Python. Compare with the example at http://salilab.org/modeller/9v1/manual/node32.html
It should be return selection(self.residue_range('53:', '67:'), self.residue_range('89:', '96:'), self.residue_range('118:', '144:'), self.residue_range('166:', '177:'), self.residue_range('199:', '221:'), self.residue_range('243:', '254:'))
i.e. you need commas between each call to residue_range, and (as Pankaj already pointed out) you had extraneous parentheses.
Ben Webb, Modeller Caretaker