scout/parse/hpo.py
def parse_hpo_gene(hpo_line):
    """Parse hpo gene information
    
        Args:
            hpo_line(str): A iterable with hpo phenotype lines
    
        Yields:
            hpo_info(dict)
    """
    if not len(hpo_line) > 3:
        return {}
    hpo_line = hpo_line.rstrip().split('\t')
    hpo_info = {}
    hpo_info['hgnc_symbol'] = hpo_line[1]
    hpo_info['description'] = hpo_line[2]
    hpo_info['hpo_id'] = hpo_line[3]
    
    return hpo_info
def parse_hpo_gene(hpo_line):
    """Parse hpo gene information
    
        Args:
            hpo_line(str): A iterable with hpo phenotype lines
    
        Yields:
            hpo_info(dict)
    """
    if not len(hpo_line) > 3:
        return {}
    hpo_line = hpo_line.rstrip().split('\t')
    hpo_info = {}
    hpo_info['hgnc_symbol'] = hpo_line[1]
    hpo_info['description'] = hpo_line[2]
    hpo_info['hpo_id'] = hpo_line[3]
    
    return hpo_info
def parse_hpo_gene ( hpo_line ) : if not len ( hpo_line ) > 3 : return { } hpo_line = hpo_line . rstrip ( ) . split ( '\t' ) hpo_info = { } hpo_info [ 'hgnc_symbol' ] = hpo_line [ 1 ] hpo_info [ 'description' ] = hpo_line [ 2 ] hpo_info [ 'hpo_id' ] = hpo_line [ 3 ] return hpo_info
Parse hpo gene information
    
        Args:
            hpo_line(str): A iterable with hpo phenotype lines
    
        Yields:
            hpo_info(dict)
Parse hpo gene information Args : hpo_line ( str ) : A iterable with hpo phenotype lines Yields : hpo_info ( dict )