def id_from_string(hpo_string: str) -> int:
    """
    Formats the HPO-type Term-ID into an integer id

    Parameters
    ----------
    hpo_string:
        HPO term ID.

        (e.g.: HP:000001)

    Returns
    -------
    int
        Integer representation of provided HPO ID

        (e.g.: 1)

    """
    idx = hpo_string.split('!')[0].strip()
    return int(idx.split(':')[1].strip())