KEGG API client and parsers for pathway protein-protein interactions
Project description
keggstand
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file keggstand-0.0.7.tar.gz
.
File metadata
- Download URL: keggstand-0.0.7.tar.gz
- Upload date:
- Size: 9.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.7.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d099f387691a35a303eee2a1a5f6ca9cac8049ee7300dc807091893e5d365ca3 |
|
MD5 | 36e5fdbf27a3694061abf203ec7a98d7 |
|
BLAKE2b-256 | 86a790d430e955302b178c432a78c42eda8eae4bf974808aa2398b2b23fae7fe |
File details
Details for the file keggstand-0.0.7-py2.py3-none-any.whl
.
File metadata
- Download URL: keggstand-0.0.7-py2.py3-none-any.whl
- Upload date:
- Size: 6.5 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.7.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 804dfd98ef02c8810d36a04d6433cc988c00ca9015939e231bc8e4098e531838 |
|
MD5 | c8a469148453f03d6b2ac76c748027f0 |
|
BLAKE2b-256 | 45c22dd96a9ea3f7e3360674ddf1ea58546c0d7bc3576920a9e511bdfcc43249 |