Description Usage Arguments Details Value Author(s) References Examples
KEGG Database API - Convert IDs between KEGG databases and outside databases
1 | convKEGG(targetDB, sourceEntry, convertType = "database", n = 1)
|
targetDB |
"targetDB" and "convertType" are set correspondingly. "convertType" –> "database" For gene convert from KEGG to outside databases. "sourceEntry" –> KEGG organism code, or T number. "targetDB" –> "ncbi-gi", "ncbi-geneid", or "uniprot". For gene convert from outside databases to KEGG. "sourceEntry" –> "ncbi-gi", "ncbi-geneid", or "uniprot". "targetDB" –> KEGG organism code, or T number. For chemical substance convert from KEGG to outside databases. "sourceEntry" –> "drug", "compound", or "glycan". "targetDB" –> "pubchem", or "chebi". For chemical substance convert from outside databases to KEGG. "sourceEntry" –> "pubchem", or "chebi". "targetDB" –> "drug", "compound", or "glycan". "convertType" –> "identity" For gene convert "sourceEntry" –> KEGG organism code, T number, "genes", "ncbi-gi", "ncbi-geneid", or "uniprot". "genes" is set to convert outside identities to KEGG when the organism code is not known. "targetDB" –> A vector (length can be bigger than 1) of identities. For chemical substance convert "sourceEntry" –> "drug", "compound", "glycan", "pubchem", or "chebi". "targetDB" –> A vector (length can be bigger than 1) of identities. |
sourceEntry |
see "targetDB" |
convertType |
set to be "database" or "identity". |
n |
The number of CPUs or processors, and the default value is 1. |
Convert gene identifiers or chemical substance identifiers between KEGG databases and oursite outside databases. For gene identifiers, this API provides functions to convert IDs/databases between KEGG databases and ncbi-gi/ncbi-geneid/uniprot. For chemical substance identifiers, it converts IDs/databases between drug/compound/glycan and pubchem/chebi. This API doesn't convert IDs between outside database. For example, the convert between pubchem and chebi IDs is not allowed. Try to use mutiple CPUs when conver large number of IDs.
The IDs and database convert is controlled by the argument "convertType".
A matrix that the first column is "targetDB"
Yulong Niu niuylscu@gmail.com
http://www.kegg.jp/kegg/rest/keggapi.html
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | ## convert database from KEGG to outside databases.
convKEGG('ncbi-geneid', 'eco')
convKEGG('pubchem', 'drug')
## Not run:
## convert database from outside databases to KEGG.
convKEGG('smu', 'uniprot')
convKEGG('glycan', 'chebi')
## End(Not run)
## convert identities from KEGG to outside database.
## mutiple organism convert.
convKEGG('ncbi-gi', c('hsa:10458', 'ece:Z5100'), convertType = 'identity', n = 2)
convKEGG('pubchem', 'cpd:C00004', convertType = 'identity', n = 2)
## convert identities from outside databases to KEGG.
## the organism code is unknown.
convKEGG('genes', 'ncbi-geneid:3113320', convertType = 'identity', n = 2)
convKEGG('genes', 'ncbi-gi:54293358', convertType = 'identity', n = 2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.