PEATDB/DNAtool/mutation.py
def parse_REBASE(self,lines):
        """Parse a REBASE restriction enzyme file"""
        count=1
        while 1:
            while (lines[count][:3]!='<1>' or lines[count][3]=='<') and count+1<len(lines):
                count=count+1
            if not count+1<len(lines):
                return
            #
            # At start of record
            #
            name=lines[count][3:].strip()
            rec_seq=lines[count+2][3:].strip()
            self.restriction_lines.append('%s %s' %(name,rec_seq))
            count=count+1
        return
Parse a REBASE restriction enzyme file
Parse a REBASE restriction enzyme file
Parse a REBASE restriction enzyme file
def parse_REBASE(self,lines):
        count=1
        while 1:
            while (lines[count][:3]!='<1>' or lines[count][3]=='<') and count+1<len(lines):
                count=count+1
            if not count+1<len(lines):
                return
             At start of record
            name=lines[count][3:].strip()
            rec_seq=lines[count+2][3:].strip()
            self.restriction_lines.append('%s %s' %(name,rec_seq))
            count=count+1
        return
def parse_REBASE ( self , lines ) : count = 1 while 1 : while ( lines [ count ] [ : 3 ] != '<1>' or lines [ count ] [ 3 ] == '<' ) and count + 1 < len ( lines ) : count = count + 1 if not count + 1 < len ( lines ) : return name = lines [ count ] [ 3 : ] . strip ( ) rec_seq = lines [ count + 2 ] [ 3 : ] . strip ( ) self . restriction_lines . append ( '%s %s' % ( name , rec_seq ) ) count = count + 1 return
Parse a REBASE restriction enzyme file
Parse a REBASE restriction enzyme file
"""Parse a REBASE restriction enzyme file""" # # At start of record #
self
lines