Protool/Yasara_handler.py
def col_res(self,obj,residues,color):
        """Color a number of residues a color"""
        if type(residues) is type([]):
            for res in residues:
                self.yasara.ColorRes("%d Obj %d" %(res,obj),color)
        else:
            for res in residues.keys():
                #print "%d Obj %d" %(res,obj),int(180*residues[res])
                self.yasara.ColorRes("%d Obj %d" %(res,obj),int(120*residues[res]))
        return
Color a number of residues a color
Color a number of residues a color
Color a number of residues a color
def col_res(self,obj,residues,color):
        if type(residues) is type([]):
            for res in residues:
                self.yasara.ColorRes("%d Obj %d" %(res,obj),color)
        else:
            for res in residues.keys():
                self.yasara.ColorRes("%d Obj %d" %(res,obj),int(120*residues[res]))
        return
def col_res ( self , obj , residues , color ) : if type ( residues ) is type ( [ ] ) : for res in residues : self . yasara . ColorRes ( "%d Obj %d" % ( res , obj ) , color ) else : for res in residues . keys ( ) : self . yasara . ColorRes ( "%d Obj %d" % ( res , obj ) , int ( 120 * residues [ res ] ) ) return
Color a number of residues a color
Color a number of residues a color
"""Color a number of residues a color""" #print "%d Obj %d" %(res,obj),int(180*residues[res])
self
obj
residues
color