scout/parse/hpo.py
def get_incomplete_penetrance_genes(hpo_lines):
    """Get a set with all genes that have incomplete penetrance according to HPO
    
    Args:
        hpo_lines(iterable(str))
    
    Returns:
        incomplete_penetrance_genes(set): A set with the hgnc symbols of all 
                                          genes with incomplete penetrance
        
    """
    genes = parse_hpo_genes(hpo_lines)
    incomplete_penetrance_genes = set()
    for hgnc_symbol in genes:
        if genes[hgnc_symbol].get('incomplete_penetrance'):
            incomplete_penetrance_genes.add(hgnc_symbol)
    return incomplete_penetrance_genes
def get_incomplete_penetrance_genes(hpo_lines):
    """Get a set with all genes that have incomplete penetrance according to HPO
    
    Args:
        hpo_lines(iterable(str))
    
    Returns:
        incomplete_penetrance_genes(set): A set with the hgnc symbols of all 
                                          genes with incomplete penetrance
        
    """
    genes = parse_hpo_genes(hpo_lines)
    incomplete_penetrance_genes = set()
    for hgnc_symbol in genes:
        if genes[hgnc_symbol].get('incomplete_penetrance'):
            incomplete_penetrance_genes.add(hgnc_symbol)
    return incomplete_penetrance_genes
def get_incomplete_penetrance_genes ( hpo_lines ) : genes = parse_hpo_genes ( hpo_lines ) incomplete_penetrance_genes = set ( ) for hgnc_symbol in genes : if genes [ hgnc_symbol ] . get ( 'incomplete_penetrance' ) : incomplete_penetrance_genes . add ( hgnc_symbol ) return incomplete_penetrance_genes
Get a set with all genes that have incomplete penetrance according to HPO
    
    Args:
        hpo_lines(iterable(str))
    
    Returns:
        incomplete_penetrance_genes(set): A set with the hgnc symbols of all 
                                          genes with incomplete penetrance
Get a set with all genes that have incomplete penetrance according to HPO Args : hpo_lines ( iterable ( str )) Returns : incomplete_penetrance_genes ( set ) : A set with the hgnc symbols of all genes with incomplete penetrance