def get_header(self, individual=-<NUM_LIT:1>):
type_map = dict([(val,key) for key,val in self.meta.type_map.iteritems()])<EOL>extra = '<STR_LIT:\n>'.join(['<STR_LIT>'.format(i) for i in self.meta.extra])<EOL>info = '<STR_LIT:\n>'.join(['<STR_LIT>'.format(key, val.get('<STR_LIT>','<STR_LIT:.>'), type_map.get(val.get('<STR_LIT:type>', '<STR_LIT>')), val.get('<STR_LIT:description>')) for key,val in self.meta.info.iteritems()])<EOL>filter = '<STR_LIT:\n>'.join(['<STR_LIT>'.format(key, val.get('<STR_LIT:description>','<STR_LIT:.>')) for key,val in self.meta.filter.iteritems()])<EOL>format = '<STR_LIT:\n>'.join(['<STR_LIT>'.format(key, val.get('<STR_LIT>','<STR_LIT:.>'), type_map.get(val.get('<STR_LIT:type>', '<STR_LIT>')), val.get('<STR_LIT:description>')) for key,val in self.meta.format.iteritems()])<EOL>alt = '<STR_LIT:\n>'.join(['<STR_LIT>'.format(key, val.get('<STR_LIT:description>','<STR_LIT:.>')) for key,val in self.meta.alt.iteritems()])<EOL>header = '<STR_LIT:\t>'.join(['<STR_LIT>','<STR_LIT>','<STR_LIT>','<STR_LIT>','<STR_LIT>','<STR_LIT>','<STR_LIT>','<STR_LIT>','<STR_LIT>'])<EOL>if individual is not None:<EOL><INDENT>if individual == -<NUM_LIT:1>:<EOL><INDENT>individual = '<STR_LIT:\t>'.join(self.individuals.keys())<EOL><DEDENT>else:<EOL><INDENT>if isinstance(individual, int):<EOL><INDENT>for i, v in self.individuals.iteritems():<EOL><INDENT>if v == individual:<EOL><INDENT>individual = i<EOL>break<EOL><DEDENT><DEDENT><DEDENT><DEDENT>header += '<STR_LIT:\t>'+individual<EOL><DEDENT>return '<STR_LIT:\n>'.join([extra, info, filter, format, alt, header])<EOL>
Returns the vcf header