Ghost/make_figs.py
def structure_size_error(self):
        """Plot the size of the erors on the structure"""
        #
        # Let Yasara show the structure and color it according to the size of the error
        #
        raise Exception('function not completed')
        import Yasara
        Y=Yasara.yasara_handler()
        obj=Y.load_mol('2LZT.pdb')
        Y.yasara.run('HideAtom Sidechain')
        tgnum=int(tg.split(':')[1])
        Y.yasara.ColorRes('%d' %tgnum,'magenta')
        Y.yasara.run('ShowRes %s' %tgnum)
        for residue in sorted(rescolor.keys()):
            resnum=int(residue[1:])
            if rescolor.has_key(residue):
                color=rescolor[residue]
            else: 
                color=1059
            Y.yasara.ColorRes('%d' %(resnum),'%d' %color)
        print sorted(wrong_sign)
        raw_input('is this ok?')
        return
Plot the size of the erors on the structure
Plot the size of the erors on the structure
Plot the size of the erors on the structure
def structure_size_error(self):
         Let Yasara show the structure and color it according to the size of the error
        raise Exception('function not completed')
        import Yasara
        Y=Yasara.yasara_handler()
        obj=Y.load_mol('2LZT.pdb')
        Y.yasara.run('HideAtom Sidechain')
        tgnum=int(tg.split(':')[1])
        Y.yasara.ColorRes('%d' %tgnum,'magenta')
        Y.yasara.run('ShowRes %s' %tgnum)
        for residue in sorted(rescolor.keys()):
            resnum=int(residue[1:])
            if rescolor.has_key(residue):
                color=rescolor[residue]
            else: 
                color=1059
            Y.yasara.ColorRes('%d' %(resnum),'%d' %color)
        print sorted(wrong_sign)
        raw_input('is this ok?')
        return
def structure_size_error ( self ) : raise Exception ( 'function not completed' ) import Yasara Y = Yasara . yasara_handler ( ) obj = Y . load_mol ( '2LZT.pdb' ) Y . yasara . run ( 'HideAtom Sidechain' ) tgnum = int ( tg . split ( ':' ) [ 1 ] ) Y . yasara . ColorRes ( '%d' % tgnum , 'magenta' ) Y . yasara . run ( 'ShowRes %s' % tgnum ) for residue in sorted ( rescolor . keys ( ) ) : resnum = int ( residue [ 1 : ] ) if rescolor . has_key ( residue ) : color = rescolor [ residue ] else : color = 1059 Y . yasara . ColorRes ( '%d' % ( resnum ) , '%d' % color ) print sorted ( wrong_sign ) raw_input ( 'is this ok?' ) return
Plot the size of the erors on the structure
Plot the size of the erors on the structure
"""Plot the size of the erors on the structure""" # # Let Yasara show the structure and color it according to the size of the error #
self