DNATool2/Base.py
def highlightSequence(self, sequence):
        """Highlight section of sequence in different color"""
        self.colorSequence()
        c = self.canvas
        height = self.basescale/1.1
        y = self.baserow+height/2
        ignore = set(['seqbackground','seqselection'])
        for s in sequence:
            x = self.getBasePosition(s)
            items = c.find_overlapping(x-2, y-2, x, y+2)
            for i in items:
                if len(set(c.gettags(i)) & ignore) > 0:
                    continue
                c.itemconfig(i,fill='red')
                c.lift(i)
        return
Highlight section of sequence in different color
Highlight section of sequence in different color
Highlight section of sequence in different color
def highlightSequence(self, sequence):
        self.colorSequence()
        c = self.canvas
        height = self.basescale/1.1
        y = self.baserow+height/2
        ignore = set(['seqbackground','seqselection'])
        for s in sequence:
            x = self.getBasePosition(s)
            items = c.find_overlapping(x-2, y-2, x, y+2)
            for i in items:
                if len(set(c.gettags(i)) & ignore) > 0:
                    continue
                c.itemconfig(i,fill='red')
                c.lift(i)
        return
def highlightSequence ( self , sequence ) : self . colorSequence ( ) c = self . canvas height = self . basescale / 1.1 y = self . baserow + height / 2 ignore = set ( [ 'seqbackground' , 'seqselection' ] ) for s in sequence : x = self . getBasePosition ( s ) items = c . find_overlapping ( x - 2 , y - 2 , x , y + 2 ) for i in items : if len ( set ( c . gettags ( i ) ) & ignore ) > 0 : continue c . itemconfig ( i , fill = 'red' ) c . lift ( i ) return
Highlight section of sequence in different color
Highlight section of sequence in different color
"""Highlight section of sequence in different color"""
self
sequence