PEATDB/DNAtool/primer_database.py
def display_details(self,event=None):
        """Show all details on a selected primer. If we have a parent DNA sequence then
        show the alignment to that one"""

        # Figure out the selected primer and display in textbox
        tmp_selection = self.primers.curselection()
        selection=[]
        for num in tmp_selection:
            selection.append(int(num))

        # Display all of the primers
        primer_sites=[]
        first=1
        for primer_num in selection:
            site = self.display_single_primer(primer_num,focus=first,delete=first)
            first=None
            primer_sites.append(site)

        # Select the maximum length DNA sequence spanned by the primers
        if primer_sites!=[] and primer_sites != None:
            minstart=999
            maxend=-9999
            for start,end in primer_sites:
                minstart=min(start,minstart)
                maxend=max(end,maxend)

            # Highlight the sequence
            self.parent.clear_selection()
            self.parent.data['DNA_selection']={}
            self.parent.data['sel_objs']={}
            self.parent.data['DNA_selection']['start']=minstart
            self.parent.data['DNA_selection']['stop']=maxend
            self.parent.mark_base_selection(self.parent.data['DNA_selection']['start'],self.parent.data['DNA_selection']['stop'])
            self.parent.DNAfragment_counter.set(abs(self.parent.data['DNA_selection']['stop']-self.parent.data['DNA_selection']['start']))
            if getattr(self.parent,'routine_call_DNAselection',None):
                (self.parent.routine_call_DNAselection)()
        return
Show all details on a selected primer. If we have a parent DNA sequence then
        show the alignment to that one
Show all details on a selected primer. If we have a parent DNA sequence then
show the alignment to that one
Show all details on a selected primer . If we have a parent DNA sequence then show the alignment to that one
def display_details(self,event=None):
        tmp_selection = self.primers.curselection()
        selection=[]
        for num in tmp_selection:
            selection.append(int(num))
        primer_sites=[]
        first=1
        for primer_num in selection:
            site = self.display_single_primer(primer_num,focus=first,delete=first)
            first=None
            primer_sites.append(site)
        if primer_sites!=[] and primer_sites != None:
            minstart=999
            maxend=-9999
            for start,end in primer_sites:
                minstart=min(start,minstart)
                maxend=max(end,maxend)
            self.parent.clear_selection()
            self.parent.data['DNA_selection']={}
            self.parent.data['sel_objs']={}
            self.parent.data['DNA_selection']['start']=minstart
            self.parent.data['DNA_selection']['stop']=maxend
            self.parent.mark_base_selection(self.parent.data['DNA_selection']['start'],self.parent.data['DNA_selection']['stop'])
            self.parent.DNAfragment_counter.set(abs(self.parent.data['DNA_selection']['stop']-self.parent.data['DNA_selection']['start']))
            if getattr(self.parent,'routine_call_DNAselection',None):
                (self.parent.routine_call_DNAselection)()
        return
def display_details ( self , event = None ) : tmp_selection = self . primers . curselection ( ) selection = [ ] for num in tmp_selection : selection . append ( int ( num ) ) primer_sites = [ ] first = 1 for primer_num in selection : site = self . display_single_primer ( primer_num , focus = first , delete = first ) first = None primer_sites . append ( site ) if primer_sites != [ ] and primer_sites != None : minstart = 999 maxend = - 9999 for start , end in primer_sites : minstart = min ( start , minstart ) maxend = max ( end , maxend ) self . parent . clear_selection ( ) self . parent . data [ 'DNA_selection' ] = { } self . parent . data [ 'sel_objs' ] = { } self . parent . data [ 'DNA_selection' ] [ 'start' ] = minstart self . parent . data [ 'DNA_selection' ] [ 'stop' ] = maxend self . parent . mark_base_selection ( self . parent . data [ 'DNA_selection' ] [ 'start' ] , self . parent . data [ 'DNA_selection' ] [ 'stop' ] ) self . parent . DNAfragment_counter . set ( abs ( self . parent . data [ 'DNA_selection' ] [ 'stop' ] - self . parent . data [ 'DNA_selection' ] [ 'start' ] ) ) if getattr ( self . parent , 'routine_call_DNAselection' , None ) : ( self . parent . routine_call_DNAselection ) ( ) return
Show all details on a selected primer.
Show all details on a selected primer .
"""Show all details on a selected primer. If we have a parent DNA sequence then
        show the alignment to that one""" # Figure out the selected primer and display in textbox # Display all of the primers # Select the maximum length DNA sequence spanned by the primers # Highlight the sequence
self
event