scout/parse/hpo.py
def parse_hpo_phenotype(hpo_line):
    """Parse hpo phenotype
    
        Args:
            hpo_line(str): A iterable with hpo phenotype lines
    
        Yields:
            hpo_info(dict)
    """
    hpo_line = hpo_line.rstrip().split('\t')
    hpo_info = {}
    hpo_info['hpo_id'] = hpo_line[0]
    hpo_info['description'] = hpo_line[1]
    hpo_info['hgnc_symbol'] = hpo_line[3]
    
    return hpo_info
def parse_hpo_phenotype(hpo_line):
    """Parse hpo phenotype
    
        Args:
            hpo_line(str): A iterable with hpo phenotype lines
    
        Yields:
            hpo_info(dict)
    """
    hpo_line = hpo_line.rstrip().split('\t')
    hpo_info = {}
    hpo_info['hpo_id'] = hpo_line[0]
    hpo_info['description'] = hpo_line[1]
    hpo_info['hgnc_symbol'] = hpo_line[3]
    
    return hpo_info
def parse_hpo_phenotype ( hpo_line ) : hpo_line = hpo_line . rstrip ( ) . split ( '\t' ) hpo_info = { } hpo_info [ 'hpo_id' ] = hpo_line [ 0 ] hpo_info [ 'description' ] = hpo_line [ 1 ] hpo_info [ 'hgnc_symbol' ] = hpo_line [ 3 ] return hpo_info
Parse hpo phenotype
    
        Args:
            hpo_line(str): A iterable with hpo phenotype lines
    
        Yields:
            hpo_info(dict)
Parse hpo phenotype Args : hpo_line ( str ) : A iterable with hpo phenotype lines Yields : hpo_info ( dict )