Skip to main content

KEGG API client and parsers for pathway protein-protein interactions

Project description

keggstand

https://img.shields.io/pypi/v/keggstand.svg https://img.shields.io/travis/daniaki/keggstand.svg

KEGG API client and parsers for pathway protein-protein interactions

  • Free software: MIT license

Usage

To use the API client, instantiate a new instance:

client = Kegg(cache=True)

To list organism codes in KEGG:

client.organisms()

To list available pathway accessions and names for a given organism:

accessions = client.list_pathways(organism='hsa')

To parse a particular pathway into a dataframe of protein-protein interactions, pass a KEGG pathway accession to the method below:

pathway = client.get_pathway(pathway='path:hsa01521')

# Inspect individual protein/genes parsed from XML file
pathway.entries

# Inspect relations between entries parsed from XML file
pathway.relations

# Pandas DataFrame of interactions with annotated post-translational modifications
pathway.interactions

To make a call to the accession mapping service you can convert a source database to a destination database:

client.convert(source='hsa', destination='uniprot')

This will create a mapping from KEGG hsa identifiers to uniprot swissprot identifiers.

Credits

This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.

History

0.0.7 (2020-07-19)

  • First release on PyPI.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

keggstand-0.0.7.tar.gz (9.0 kB view hashes)

Uploaded Source

Built Distribution

keggstand-0.0.7-py2.py3-none-any.whl (6.5 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page