Question: KEGGREST -- gene list
gravatar for haiying.kong
18 months ago by
haiying.kong290 wrote:

> names(keggGet("map07049")[[1]])

I need to get gene list (hugo-symbol) in each pathway. How can I get this from KEGGREST?

> sessionInfo()
R version 3.3.3 (2017-03-06)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: openSUSE 13.1 (Bottle) (x86_64)

 [1] LC_CTYPE=en_GB.UTF-8       LC_NUMERIC=C
 [3] LC_TIME=en_GB.UTF-8        LC_COLLATE=en_GB.UTF-8
 [7] LC_PAPER=en_GB.UTF-8       LC_NAME=C
 [9] LC_ADDRESS=C               LC_TELEPHONE=C

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base

other attached packages:
[1] KEGGREST_1.14.1

loaded via a namespace (and not attached):
 [1] zlibbioc_1.20.0     httr_1.3.1          R6_2.2.2
 [4] IRanges_2.8.2       XVector_0.14.1      parallel_3.3.3
 [7] tools_3.3.3         curl_3.1            Biostrings_2.42.1
[10] S4Vectors_0.12.2    BiocGenerics_0.20.0 stats4_3.3.3
[13] png_0.1-7
bioconductor keggrest R • 1.5k views
ADD COMMENTlink modified 18 months ago by Damian Kao15k • written 18 months ago by haiying.kong290

This is a drug pathway, why don't you try the same with another pathway?

ADD REPLYlink written 18 months ago by h.mon27k

Hi haiying.kong, this is a drug 'pathway' at which you're looking (not a real pathway of genes/proteins); thus, this explains why there are no genes in the KEGGREST object that you've managed to download.

In the traditional KEGG pathways, genes can be easily obtained. Here is the infamous Pathways in Cancer:

[1] "1630"                                       
[2] "DCC; DCC netrin 1 receptor [KO:K06765]"     
[3] "836"                                        
[4] "CASP3; caspase 3 [KO:K02187] [EC:]"
[5] "842"                                        
[6] "CASP9; caspase 9 [KO:K04399] [EC:]"

There are some genes and gene families shown in the figure for your drug 'pathway' on KEGG: Perhaps just taking those (manually) from the figure would be sufficient.



ADD REPLYlink written 18 months ago by Kevin Blighe48k
gravatar for Damian Kao
18 months ago by
Damian Kao15k
Damian Kao15k wrote:

The pathway in your example is a drug pathway, so there are no HUGO gene names associated.

I am not very familiar with KEGGREST, but you could do this with the official kegg REST API. It is described in great detail with nice examples here:

The 3 main urls you'll need are:

  1. Map/Pathway to KO. This will give you a list of genes (in kegg ids, KO) corresponding to the map. Example:

  1. KO to gene. This will give you a list of genes by organism code corresponding to the KO. Example:

  1. gene id to metadata. This will give you detailed kegg entries for the gene id, including HUGO names. For example:

There may be easier REST endpoints you can use to get to the HUGO names. I recommend reading the API documentation.

You will probably need to write a script to parse/download all this info.

ADD COMMENTlink modified 18 months ago • written 18 months ago by Damian Kao15k
Please log in to add an answer.


Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 831 users visited in the last hour