def parse_hgnc_genes(lines):
header = []<EOL>logger.info("<STR_LIT>")<EOL>for index, line in enumerate(lines):<EOL><INDENT>if index == <NUM_LIT:0>:<EOL><INDENT>header = line.split('<STR_LIT:\t>')<EOL><DEDENT>elif len(line) > <NUM_LIT:1>:<EOL><INDENT>hgnc_gene = parse_hgnc_line(line=line, header=header)<EOL>if hgnc_gene:<EOL><INDENT>yield hgnc_gene<EOL><DEDENT><DEDENT><DEDENT>
Parse lines with hgnc formated genes

        This is designed to take a dump with genes from HGNC.
        This is downloaded from:
        ftp://ftp.ebi.ac.uk/pub/databases/genenames/new/tsv/hgnc_complete_set.txt

        Args:
            lines(iterable(str)): An iterable with HGNC formated genes
        Yields:
            hgnc_gene(dict): A dictionary with the relevant information