PEATDB/DNAtool/DNAtool.py
def print_aa3_seq(self,sequence,y,position=0,frame=0,highlight_aa=None,font=None):
        """
        Write a single aa sequence in the sequence window
        """
        for aa_name in sequence:
            position=position+1
            x,y_junk=self.get_aa_pos_on_screen(position-1,frame+1)
            if position==highlight_aa:
                colour='red'
            else:
                colour='black'
            self.seq_win_objs[self.seqframe.create_text(x+2,y,text=aa_name,font=font,anchor='w',fill=colour)]=1
        return

        Write a single aa sequence in the sequence window
        
Write a single aa sequence in the sequence window
Write a single aa sequence in the sequence window
def print_aa3_seq(self,sequence,y,position=0,frame=0,highlight_aa=None,font=None):
        for aa_name in sequence:
            position=position+1
            x,y_junk=self.get_aa_pos_on_screen(position-1,frame+1)
            if position==highlight_aa:
                colour='red'
            else:
                colour='black'
            self.seq_win_objs[self.seqframe.create_text(x+2,y,text=aa_name,font=font,anchor='w',fill=colour)]=1
        return
def print_aa3_seq ( self , sequence , y , position = 0 , frame = 0 , highlight_aa = None , font = None ) : for aa_name in sequence : position = position + 1 x , y_junk = self . get_aa_pos_on_screen ( position - 1 , frame + 1 ) if position == highlight_aa : colour = 'red' else : colour = 'black' self . seq_win_objs [ self . seqframe . create_text ( x + 2 , y , text = aa_name , font = font , anchor = 'w' , fill = colour ) ] = 1 return
Write a single aa sequence in the sequence window
Write a single aa sequence in the sequence window
"""
        Write a single aa sequence in the sequence window
        """
self
sequence
y
position
frame
highlight_aa
font