def __init__(self, *args, **kwargs):
sequence = kwargs['<STR_LIT>']<EOL>if '<STR_LIT>' in kwargs:<EOL><INDENT>frequency = kwargs['<STR_LIT>']<EOL><DEDENT>else:<EOL><INDENT>frequency = '<STR_LIT>'<EOL><DEDENT>if not (re.match(r'<STR_LIT>', sequence) or<EOL>re.match(r'<STR_LIT>', sequence)):<EOL><INDENT>raise ValueError("<STR_LIT>")<EOL><DEDENT>self.sequence = sequence<EOL>if frequency:<EOL><INDENT>try:<EOL><INDENT>if (float(frequency) < <NUM_LIT:0.0> or<EOL>float(frequency) > <NUM_LIT:1.0>):<EOL><INDENT>raise ValueError('<STR_LIT>')<EOL><DEDENT><DEDENT>except ValueError:<EOL><INDENT>if not frequency == '<STR_LIT>':<EOL><INDENT>raise ValueError('<STR_LIT>' +<EOL>'<STR_LIT>' +<EOL>'<STR_LIT>')<EOL><DEDENT><DEDENT>self.frequency = frequency<EOL><DEDENT>
Initialize Allele object

Required arguments:
sequence:  Short string of DNA letters (ACGT) for the allele.
           May be empty (to represent a deletion).

Optional arguments:
frequency: a string representation of a float between 0 and 1