scout/parse/exac.py
def parse_exac_genes(lines):
    """Parse lines with exac formated genes
        
        This is designed to take a dump with genes from exac.
        This is downloaded from: 
            ftp.broadinstitute.org/pub/ExAC_release//release0.3/functional_gene_constraint/
            fordist_cleaned_exac_r03_march16_z_pli_rec_null_data.txt
    
        Args:
            lines(iterable(str)): An iterable with ExAC formated genes
        Yields:
            exac_gene(dict): A dictionary with the relevant information
    """
    header = []
    logger.info("Parsing exac genes...")
    for index, line in enumerate(lines):
        if index == 0:
            header = line.rstrip().split('\t')
        elif len(line) > 0:
            exac_gene = parse_exac_line(line, header)
            
            yield exac_gene
def parse_exac_genes(lines):
    """Parse lines with exac formated genes
        
        This is designed to take a dump with genes from exac.
        This is downloaded from: 
            ftp.broadinstitute.org/pub/ExAC_release//release0.3/functional_gene_constraint/
            fordist_cleaned_exac_r03_march16_z_pli_rec_null_data.txt
    
        Args:
            lines(iterable(str)): An iterable with ExAC formated genes
        Yields:
            exac_gene(dict): A dictionary with the relevant information
    """
    header = []
    logger.info("Parsing exac genes...")
    for index, line in enumerate(lines):
        if index == 0:
            header = line.rstrip().split('\t')
        elif len(line) > 0:
            exac_gene = parse_exac_line(line, header)
            
            yield exac_gene
Parse lines with exac formated genes
        
        This is designed to take a dump with genes from exac.
        This is downloaded from: 
            ftp.broadinstitute.org/pub/ExAC_release//release0.3/functional_gene_constraint/
            fordist_cleaned_exac_r03_march16_z_pli_rec_null_data.txt
    
        Args:
            lines(iterable(str)): An iterable with ExAC formated genes
        Yields:
            exac_gene(dict): A dictionary with the relevant information