bbglab / bbgwiki

Website with info of all the tools and data used in the bbglab
2 stars 2 forks source link

Add function to convert from HUGO gene symbol into its HGNC id #96

Open CarlosLopezElorduy opened 7 months ago

CarlosLopezElorduy commented 7 months ago

Since HUGO symbols have the problem of being mutable over time, meaning that they could have synonyms at some point, it is ideal to be able to obtain a unique identifier from the gene under study. One option is to use the HGNC id, as it doesn't change over the years so far.

def hugo_to_hgnc(hugo_symbol: str) -> str:
    """
    This function receives as input a gene symbol with the HUGO nomenclature (e.g. ABL1, BRAF, KRAS, etc), and returns it's corresponding HGNC id.
    """
    # TODO: Implement function

    return hgnc_id