DNATool2/Base.py
def showAA3Seq(self, sequence=None):
        """Show 3 letter code amino acid sequence"""
        if sequence == None:
            return
        c = self.canvas
        seqfont = self.getCurrentFont()

        y = (self.baserow+self.orfoffset)*self.yscale
        frame = 0
        AAseqs3,AAseqs1 = Mutation.translate(sequence)
        aaseq = AAseqs3[frame]
        #print aaseq
        for i in range(len(aaseq)):
            pos = self.getAAPosition(i)#,frame+1)
            c.create_text(pos,y,
                            font=seqfont,text=aaseq[i],
                            fill='black',tag=('aasequence'))
        for i in range(len(aaseq)):
            if i%5!=0:
                continue
            pos = self.getAAPosition(i)
            c.create_text(pos,y+45,
                            font='Courier 11',text=i,
                            fill='black',tag=('aasequence'))
            c.create_line(pos,y+35,pos,y+20,fill='red',width=2)
        return
Show 3 letter code amino acid sequence
Show 3 letter code amino acid sequence
Show 3 letter code amino acid sequence
def showAA3Seq(self, sequence=None):
        if sequence == None:
            return
        c = self.canvas
        seqfont = self.getCurrentFont()
        y = (self.baserow+self.orfoffset)*self.yscale
        frame = 0
        AAseqs3,AAseqs1 = Mutation.translate(sequence)
        aaseq = AAseqs3[frame]
        for i in range(len(aaseq)):
            pos = self.getAAPosition(i)
            c.create_text(pos,y,
                            font=seqfont,text=aaseq[i],
                            fill='black',tag=('aasequence'))
        for i in range(len(aaseq)):
            if i%5!=0:
                continue
            pos = self.getAAPosition(i)
            c.create_text(pos,y+45,
                            font='Courier 11',text=i,
                            fill='black',tag=('aasequence'))
            c.create_line(pos,y+35,pos,y+20,fill='red',width=2)
        return
def showAA3Seq ( self , sequence = None ) : if sequence == None : return c = self . canvas seqfont = self . getCurrentFont ( ) y = ( self . baserow + self . orfoffset ) * self . yscale frame = 0 AAseqs3 , AAseqs1 = Mutation . translate ( sequence ) aaseq = AAseqs3 [ frame ] for i in range ( len ( aaseq ) ) : pos = self . getAAPosition ( i ) c . create_text ( pos , y , font = seqfont , text = aaseq [ i ] , fill = 'black' , tag = ( 'aasequence' ) ) for i in range ( len ( aaseq ) ) : if i % 5 != 0 : continue pos = self . getAAPosition ( i ) c . create_text ( pos , y + 45 , font = 'Courier 11' , text = i , fill = 'black' , tag = ( 'aasequence' ) ) c . create_line ( pos , y + 35 , pos , y + 20 , fill = 'red' , width = 2 ) return
Show 3 letter code amino acid sequence
Show 3 letter code amino acid sequence
"""Show 3 letter code amino acid sequence""" #print aaseq #,frame+1)
self
sequence