Take the 2-minute tour ×
Biology Stack Exchange is a question and answer site for biology researchers, academics, and students. It's 100% free, no registration required.

I would like to download all the gene pathways and genes of each pathway. Preferably, gene length of each gene as well. It would be a lot more convenient if there is an R package.

share|improve this question
1  
in what format do you want the pathways? You can bulk download the SBML files. Also, please clarify what you mean by "download the genes of each pathway". –  WYSIWYG Apr 21 at 9:22
1  
What pathways? From which database? What species? –  terdon Apr 21 at 10:58
add comment

2 Answers 2

up vote 1 down vote accepted

Try using KEGG REST.

http://rest.kegg.jp/link/pathway/hsa ## list of all genes and pathways in Humans

share|improve this answer
    
Do you mind showing me how you got this file? –  user258682 May 4 at 17:03
    
You can find it in the rest page. –  Prakki Rama May 9 at 6:42
add comment

If you're working with BioCyc pathways you can use their REST-API for batch-downloading all genes for their pathways. You can run a wide range of queries including BioVelo-queries for all genes/compounds in a specified pathway, all pathways in organism etc. A query for all the pathways in B. subtilis would look like:

http://biocyc.org/xmlquery?[x:x%3C-bsub^^pathways]

Where you get an XML with the Cyc-IDs for the pathways which can be used to search for the genes. A query for all genes in the Arginine synthesis pathway in B. subtilis would then look like:

http://biocyc.org/xmlquery?[x:y:=bsub~argsyn-pwy,x%3C-%28genes-of-pathway%20y%29]&detail=full

Which returns an XML with information regarding the genes, start and end positions including (i.e. gene length). Since I don't work very much in R I don't know if there exists an R-package. But it is very straightforward to write Python scripts for downloading and XML-parsing.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.