def get_correct_ids(hgnc_symbol, alias_genes):
    """Try to get the correct gene based on hgnc_symbol
    
    The HGNC symbol is unfortunately not a persistent gene identifier.
    Many of the resources that are used by Scout only provides the hgnc symbol to 
    identify a gene. We need a way to guess what gene is pointed at.
    
    Args:
        hgnc_symbol(str): The symbol used by a resource
        alias_genes(dict): A dictionary with all the alias symbols (including the current symbol)
                           for all genes
    
    Returns:
        hgnc_ids(iterable(int)): Hopefully only one but a symbol could map to several ids
    """
    hgnc_ids = set()
    hgnc_symbol = hgnc_symbol.upper()
    if hgnc_symbol in alias_genes:
        hgnc_id_info = alias_genes[hgnc_symbol]
        if hgnc_id_info['true']:
            return set([hgnc_id_info['true']])
        else:
            return set(hgnc_id_info['ids'])
    return hgnc_ids
def get_correct_ids(hgnc_symbol, alias_genes):
    """Try to get the correct gene based on hgnc_symbol
    
    The HGNC symbol is unfortunately not a persistent gene identifier.
    Many of the resources that are used by Scout only provides the hgnc symbol to 
    identify a gene. We need a way to guess what gene is pointed at.
    
    Args:
        hgnc_symbol(str): The symbol used by a resource
        alias_genes(dict): A dictionary with all the alias symbols (including the current symbol)
                           for all genes
    
    Returns:
        hgnc_ids(iterable(int)): Hopefully only one but a symbol could map to several ids
    """
    hgnc_ids = set()
    hgnc_symbol = hgnc_symbol.upper()
    if hgnc_symbol in alias_genes:
        hgnc_id_info = alias_genes[hgnc_symbol]
        if hgnc_id_info['true']:
            return set([hgnc_id_info['true']])
        else:
            return set(hgnc_id_info['ids'])
    return hgnc_ids
def get_correct_ids ( hgnc_symbol , alias_genes ) : hgnc_ids = set ( ) hgnc_symbol = hgnc_symbol . upper ( ) if hgnc_symbol in alias_genes : hgnc_id_info = alias_genes [ hgnc_symbol ] if hgnc_id_info [ 'true' ] : return set ( [ hgnc_id_info [ 'true' ] ] ) else : return set ( hgnc_id_info [ 'ids' ] ) return hgnc_ids
Try to get the correct gene based on hgnc_symbol
    
    The HGNC symbol is unfortunately not a persistent gene identifier.
    Many of the resources that are used by Scout only provides the hgnc symbol to 
    identify a gene. We need a way to guess what gene is pointed at.
    
    Args:
        hgnc_symbol(str): The symbol used by a resource
        alias_genes(dict): A dictionary with all the alias symbols (including the current symbol)
                           for all genes
    
    Returns:
        hgnc_ids(iterable(int)): Hopefully only one but a symbol could map to several ids
Try to get the correct gene based on hgnc_symbol The HGNC symbol is unfortunately not a persistent gene identifier . Many of the resources that are used by Scout only provides the hgnc symbol to identify a gene . We need a way to guess what gene is pointed at . Args : hgnc_symbol ( str ) : The symbol used by a resource alias_genes ( dict ) : A dictionary with all the alias symbols ( including the current symbol ) for all genes Returns : hgnc_ids ( iterable ( int )) : Hopefully only one but a symbol could map to several ids