def as_dict(self):
self_as_dict = dict()<EOL>self_as_dict['<STR_LIT>'] = self.sequence<EOL>if hasattr(self, '<STR_LIT>'):<EOL><INDENT>self_as_dict['<STR_LIT>'] = self.frequency<EOL><DEDENT>return self_as_dict<EOL>
Return Allele data as dict object.