PEATDB/DNAtool/primer_database.py
def align_primer(self,this_primer):
        """Align the primer to the template DNA"""

        # Find out where the primer is aligned
        sites=self.find_primer_binding_sites(this_primer['sequence'],self.parent.data['DNAseq'])

        # Print the number of binding sites
        best_score=0
        best_position=None
        scores=[]
        first_neg=1
        for position,score in sites:
            scores.append(score)
            # Find the best position

            if score>best_score:
                best_score=score
                best_position=position
        return best_position
Align the primer to the template DNA
Align the primer to the template DNA
Align the primer to the template DNA
def align_primer(self,this_primer):
        sites=self.find_primer_binding_sites(this_primer['sequence'],self.parent.data['DNAseq'])
        best_score=0
        best_position=None
        scores=[]
        first_neg=1
        for position,score in sites:
            scores.append(score)
            if score>best_score:
                best_score=score
                best_position=position
        return best_position
def align_primer ( self , this_primer ) : sites = self . find_primer_binding_sites ( this_primer [ 'sequence' ] , self . parent . data [ 'DNAseq' ] ) best_score = 0 best_position = None scores = [ ] first_neg = 1 for position , score in sites : scores . append ( score ) if score > best_score : best_score = score best_position = position return best_position
Align the primer to the template DNA
Align the primer to the template DNA
"""Align the primer to the template DNA""" # Find out where the primer is aligned # Print the number of binding sites # Find the best position
self
this_primer