def as_dict(self):
self_as_dict = {'<STR_LIT>': self.chrom,<EOL>'<STR_LIT:start>': self.start,<EOL>'<STR_LIT>': self.ref_allele,<EOL>'<STR_LIT>': self.alt_alleles,<EOL>'<STR_LIT>': [x.as_dict() for x in self.alleles]}<EOL>try:<EOL><INDENT>self_as_dict['<STR_LIT:info>'] = self.info<EOL><DEDENT>except AttributeError:<EOL><INDENT>pass<EOL><DEDENT>return self_as_dict<EOL>
Dict representation of parsed VCF data