keggtools.resolver#
Resolve requests to KEGG data Api.
Classes#
KEGG pathway resolver class. |
Functions#
|
Resolve KEGG gene identifer to name using to KEGG database REST Api. |
Module Contents#
- class keggtools.resolver.Resolver(cache=None)#
KEGG pathway resolver class.
Request interface for KEGG API endpoint.
- Parameters:
cache (keggtools.storage.Storage | str | None)
- check_organism(organism)#
Check if organism code exist.
- get_compounds(**kwargs)#
Get dict of components. Request from KEGG API if not in cache.
- get_organism_list(**kwargs)#
Get organism codes from file or KEGG API.
- get_pathway(organism, code, **kwargs)#
Load and parse KGML pathway by identifier.
- get_pathway_list(organism, **kwargs)#
Request list of pathways linked to organism.
- storage: keggtools.storage.Storage = None#
- keggtools.resolver.get_gene_names(genes, max_genes=50)#
Resolve KEGG gene identifer to name using to KEGG database REST Api.
Function is implemented outside the resolver instance, because requests are not cached and only gene identifier are used.