mkt.databases.klifs.KinaseNames
- class mkt.databases.klifs.KinaseNames(species: str | None = 'Human')[source]
Bases:
KLIFSClass to get kinase names from KLIFS.
- __init__(species: str | None = 'Human') None[source]
Initialize KinaseNames Class object.
Upon initialization, KLIFS API is queried and kinase names are retrieved.
- Parameters:
species (str) – Species of the kinase; default “Human” but can also be “Mouse”
_kinase_names (dict[str, dict[str, str | int]] | None) – Llist of dictionaries of all kinase names info from KLIFS
- Variables:
_kinase_names (list[str]) – List of kinase names
Methods
__eq__(other)Return self==value.
__init__([species])Initialize KinaseNames Class object.
_stamp_from_response(res)Record query datetime + cache provenance from a requests-cache response.
_stamp_now()Record current UTC datetime; cache provenance unknown.
check_response(res)Check the response status code for errors.
Get kinase names from KLIFS query.
get_klifs()Get KLIFS API object.
get_url()Get KLIFS API URL.
query_api()Get KLIFS API as bravado.client.SwaggerClient object.
Get kinase names from KLIFS.
Attributes
__dataclass_fields____dataclass_params____match_args__from_cacheWhether the most recent response was served from requests-cache.
query_datetimeUTC datetime the underlying network query was made (cache creation time if served from cache).
- __init__(species: str | None = 'Human') None[source]
Initialize KinaseNames Class object.
Upon initialization, KLIFS API is queried and kinase names are retrieved.
- Parameters:
species (str) – Species of the kinase; default “Human” but can also be “Mouse”
_kinase_names (dict[str, dict[str, str | int]] | None) – Llist of dictionaries of all kinase names info from KLIFS
- Variables:
_kinase_names (list[str]) – List of kinase names