mkt.databases.klifs.KinaseInfo
- class mkt.databases.klifs.KinaseInfo(search_term: str | None = None, search_field: str | None = None, species: str = 'Human')[source]
Bases:
KLIFSClass to get information about a kinase from KLIFS.
- __init__(search_term: str | None = None, search_field: str | None = None, species: str = 'Human') None[source]
Initialize KinaseInfo Class object.
Upon initialization, KLIFS API is queried and kinase information for specificied kinase is retrieved.
- Parameters:
search_term (str) – Search term used to query KLIFS API; if None will return all kinases
search_field (str | None) – Search field (optional; default: None); only used to post-hoc annotate column with search term in case of missing data
species (str) – Species of the kinase; default “Human” but can also be “Mouse”
- Variables:
search_term (str) – Search term used to query KLIFS API
search_field (str | None) – Search field (optional; default: None); only used to post-hoc annotate column with search term in case of missing data
species (str) – Species of the kinase
status_code (int | None) – Status code of the query; None if query fails
_kinase_info (list[dict[str, str | int | None]] | None) – List of KLIFS API object for search term
Methods
__eq__(other)Return self==value.
__init__([search_term, search_field, species])Initialize KinaseInfo 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 which bravado.client.CallableOperation to use.
check_response(res)Check the response status code for errors.
Check if species is supported.
Get information about the kinase from KLIFS query.
get_klifs()Get KLIFS API object.
Get search field used for query.
Get search term used for query.
Get species used for query.
Get status code of the query.
get_url()Get KLIFS API URL.
Handle page not found error.
query_api()Get KLIFS API as bravado.client.SwaggerClient object.
Get information about a kinase 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__(search_term: str | None = None, search_field: str | None = None, species: str = 'Human') None[source]
Initialize KinaseInfo Class object.
Upon initialization, KLIFS API is queried and kinase information for specificied kinase is retrieved.
- Parameters:
search_term (str) – Search term used to query KLIFS API; if None will return all kinases
search_field (str | None) – Search field (optional; default: None); only used to post-hoc annotate column with search term in case of missing data
species (str) – Species of the kinase; default “Human” but can also be “Mouse”
- Variables:
search_term (str) – Search term used to query KLIFS API
search_field (str | None) – Search field (optional; default: None); only used to post-hoc annotate column with search term in case of missing data
species (str) – Species of the kinase
status_code (int | None) – Status code of the query; None if query fails
_kinase_info (list[dict[str, str | int | None]] | None) – List of KLIFS API object for search term