Question: Kegg Api Matlab Anomalies, How To Identify Pathways And Recruited Genes In An Organism?
gravatar for Dhruv Sakalley
7.6 years ago by
Dhruv Sakalley0 wrote:


I am trying to use MATLAB to identify from a set of KEGG genes (KO ids), which pathways they get recruited into, and for each of these pathways which KEGG genes (KO ids) are present. I need this to conduct a odds ratio calculation. So I create a kegg object, and create a string of tab separated ko ids in the format say: str ='ko:K02313 ko:K02338 ko:K03629 ko:K12972 ko:K13896'; and then use MATLAB to create a link to KEGG as per established protocol, and use the method

getpathwaysby_kos(kegg,str,'bov')%bov refering to organism name from which these ids are %derived I get null

when I use getpathwaysby_kos(kegg,{str},'bov') i still get null, however


ans =


This confuses me in more than one ways, first why a single entry produces results and combined string does not?

Also, the pathway returned does not correspond to regular pathway id usually beginning with a ko identifier. I might be asking a very basic question here, but I cannot find adequate documentation for any of this. Please advise.

pathway api mapping matlab kegg • 3.5k views
ADD COMMENTlink written 7.6 years ago by Dhruv Sakalley0
gravatar for Sven Mesecke
7.5 years ago by
Sven Mesecke0 wrote:

I cannot verify it right now, but I think you can only use get_pathways_by_kos with a single string 'ko:K02338' in MATLAB. If you want to apply the method to several pathway ids, you have to use a cell array and cellfun.

ADD COMMENTlink written 7.5 years ago by Sven Mesecke0
gravatar for Khader Shameer
7.2 years ago by
Manhattan, NY
Khader Shameer18k wrote:

KEGG was recently moved to a subscription model (See the plea here), but they promised to provide support for existing web service calls (See last paragraph). I am not a MatLab user, you may write to KEGG directly to see why you are not able to get response.

Also you may consider other open-access resources with APIs like WikiPathways or Pathway Commons for your genome-wide pathway analysis.

ADD COMMENTlink written 7.2 years ago by Khader Shameer18k
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: 676 users visited in the last hour