Interact with KEGG API
Project description
kegger
Interact with the KEGG API using Python and Pandas
Retrieve genes and KEGG pathway for your favorite organisms in the KEGG database
I developed this primarily for use in RNAseq analysis and organizing gene expression patterns by KEGG pathways
Here are some quick examples:
Get all pathways from E. coli
>>> import kegger as kg
>>> org = "eco"
>>> org_pathways = kg.list_all_pathways(org)
>>> org_pathways.head()
pathid description
0 eco01100 Metabolic pathways - Escherichia coli K-12 MG1655
1 eco01110 Biosynthesis of secondary metabolites - Escher...
2 eco01120 Microbial metabolism in diverse environments -...
3 eco01200 Carbon metabolism - Escherichia coli K-12 MG1655
4 eco01210 2-Oxocarboxylic acid metabolism - Escherichia ...
Get a specific pathway:
>>> import kegger as kg
>>> pathid = "eco00190" # Oxidative phosphorylation - Escherichia coli K-12 MG1655
>>> org = "eco"
>>> path_record = kg.get_path(pathid)
>>> path_dict = kg.kegg_parser(path_record)
>>> print(path_dict.keys())
dict_keys(['ENTRY', 'NAME', 'CLASS', 'PATHWAY_MAP', 'MODULE', 'ORGANISM', 'GENE', 'ORTHOLOG', 'COMPOUND',
'REFERENCE', 'AUTHORS', 'TITLE', 'JOURNAL', 'KO_PATHWAY'])
>>> path_dict.get("GENE")
['b0428', 'b0429', 'b0430', 'b0431', 'b0432', 'b0721', 'b0722', 'b0723', 'b0724', 'b0733', 'b0734', 'b0978',
'b0979', 'b1109', 'b2276', 'b2277', 'b2278', 'b2279', 'b2280', 'b2281', 'b2282', 'b2283', 'b2284', 'b2285',
'b2286', 'b2287', 'b2288', 'b2501', 'b3731', 'b3732', 'b3733', 'b3734', 'b3735', 'b3736', 'b3737', 'b3738',
'b4151', 'b4152', 'b4153', 'b4154', 'b4226', 'b4515', 'b4592']
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file kegger-0.1.6.tar.gz.
File metadata
- Download URL: kegger-0.1.6.tar.gz
- Upload date:
- Size: 40.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5c17bfcb34b19aa90cf9212a6bf022b561a068810e03be48fc05922278d5eb59
|
|
| MD5 |
de6992a70a0c5db1b6b2b5758024aeb7
|
|
| BLAKE2b-256 |
ae4cec48c6a7c931d3ed50758e13915d571d1e812b391b85392184d9c73f7aa3
|
Provenance
The following attestation bundles were made for kegger-0.1.6.tar.gz:
Publisher:
publish.yml on csaltikov/kegger
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
kegger-0.1.6.tar.gz -
Subject digest:
5c17bfcb34b19aa90cf9212a6bf022b561a068810e03be48fc05922278d5eb59 - Sigstore transparency entry: 899907325
- Sigstore integration time:
-
Permalink:
csaltikov/kegger@0d7994005eba8e3da703505b7cdbad1e13f82169 -
Branch / Tag:
refs/tags/v0.1.6 - Owner: https://github.com/csaltikov
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@0d7994005eba8e3da703505b7cdbad1e13f82169 -
Trigger Event:
release
-
Statement type:
File details
Details for the file kegger-0.1.6-py3-none-any.whl.
File metadata
- Download URL: kegger-0.1.6-py3-none-any.whl
- Upload date:
- Size: 6.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e199acfb108accbb274f9836a3e6e4c9880ce38c79b204cb8e076ddfb4b44fa4
|
|
| MD5 |
3d27ba88e3e1697620ed9a459a5fb6b7
|
|
| BLAKE2b-256 |
c451b6fe6c42e1caadabbddfa0ac6bd3a778ef50c1d81e3fdb4175333a3b7a15
|
Provenance
The following attestation bundles were made for kegger-0.1.6-py3-none-any.whl:
Publisher:
publish.yml on csaltikov/kegger
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
kegger-0.1.6-py3-none-any.whl -
Subject digest:
e199acfb108accbb274f9836a3e6e4c9880ce38c79b204cb8e076ddfb4b44fa4 - Sigstore transparency entry: 899907382
- Sigstore integration time:
-
Permalink:
csaltikov/kegger@0d7994005eba8e3da703505b7cdbad1e13f82169 -
Branch / Tag:
refs/tags/v0.1.6 - Owner: https://github.com/csaltikov
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@0d7994005eba8e3da703505b7cdbad1e13f82169 -
Trigger Event:
release
-
Statement type: