scout/parse/exac.py
def parse_exac_line(line, header):
    """Parse an exac formated line
    
        Args:
            line(list): A list with exac gene info
            header(list): A list with the header info
        
        Returns:
            exac_info(dict): A dictionary with the relevant info
    """
    exac_gene = {}
    splitted_line = line.rstrip().split('\t')
    exac_gene = dict(zip(header, splitted_line))
    exac_gene['hgnc_symbol'] = exac_gene['gene']
    exac_gene['pli_score'] = float(exac_gene['pLI'])
    exac_gene['raw'] = line
    
    return exac_gene
def parse_exac_line(line, header):
    """Parse an exac formated line
    
        Args:
            line(list): A list with exac gene info
            header(list): A list with the header info
        
        Returns:
            exac_info(dict): A dictionary with the relevant info
    """
    exac_gene = {}
    splitted_line = line.rstrip().split('\t')
    exac_gene = dict(zip(header, splitted_line))
    exac_gene['hgnc_symbol'] = exac_gene['gene']
    exac_gene['pli_score'] = float(exac_gene['pLI'])
    exac_gene['raw'] = line
    
    return exac_gene
Parse an exac formated line
    
        Args:
            line(list): A list with exac gene info
            header(list): A list with the header info
        
        Returns:
            exac_info(dict): A dictionary with the relevant info