"""A client to OWL."""
from typing import Optional
from indra.databases.owl_client import OwlClient
_client = OwlClient('ido')
[docs]def get_ido_name_from_ido_id(ido_id: str) -> Optional[str]:
"""Return the HP name corresponding to the given HP ID.
Parameters
----------
ido_id :
The IDO identifier to be converted. Example: "0000403"
Returns
-------
:
The IDO name corresponding to the given IDO identifier.
"""
return _client.get_name_from_id(ido_id)
[docs]def get_ido_id_from_ido_name(ido_name: str) -> Optional[str]:
"""Return the HP identifier corresponding to the given IDO name.
Parameters
----------
ido_name :
The IDO name to be converted. Example: "parasite role"
Returns
-------
:
The IDO identifier corresponding to the given IDO name.
"""
return _client.get_id_from_name(ido_name)