Is There An R Library Similar To Libraries Like Bioperl, Biopython Or Bioruby (Main Goal Is To For Retrieve Data From Pubmed'S Eutils)
4
5
Entering edit mode
12.8 years ago
User56 ▴ 100

I invested some time into learning R and would prefer not to learn Python or Ruby just for convenience of parsing XML.

I am not a pro R programmer so I need a higher level library then XML package of R. getNodeSet and XPath is very hard to use.

r pubmed • 6.4k views
ADD COMMENT
2
Entering edit mode

Try searching for "ncbi eutils" on RSeek: http://www.rseek.org – there seem to be a few useful hits.

ADD REPLY
2
Entering edit mode

If you just want to use the "XML" library and shake the tree by hand, check out my most recent blog post.

ADD REPLY
1
Entering edit mode

You could find at least dome resources here.

rseek.org is also a good resource

ADD REPLY
0
Entering edit mode

@jeremy: nice. I never got nice info on NodeSet class. pasting your code here:

nihUrl<-concat("http://eutils.ncbi.nlm.nih.gov/entrez/eutils/esearch.fcgi?db=pubmed&term=",term,"+",year,"[pdat]")
  #cleanurl<-gsub('\]','%5D',gsub('\[','%5B',x=url))
  #http://eutils.ncbi.nlm.nih.gov/entrez/eutils/esearch.fcgi?db=pubmed&term=microarray%5btitle%5d+2003%5bpdat%5d
  xml<-xmlTreeParse(URLencode(nihUrl),isURL=TRUE)
  #Data Mashups in R, pg17
  as.numeric(xmlValue(xml$doc$children$eSearchResult$children$Count$children$text))
ADD REPLY
0
Entering edit mode

Hi User - I'd be interested to know exactly what you'd like to do with the EUtils api. I have (some R code)['https://github.com/dwinter/rentrez'] for this stuff, and we are discussing possible developments to it ('http://groups.google.com/forum/#!topic/ropensci-discuss/bETWlEcrS4s')

ADD REPLY
0
Entering edit mode

Hi User56 - I'd be interested to know exactly what you'd like to do with the EUtils api. I have some R code for this stuff, and we are discussing possible developments to it here

ADD REPLY
7
Entering edit mode
12.8 years ago
Neilfws 49k

raygozak answered the first part of your question: Bioconductor is the nearest equivalent for R of the Bio* libraries. Unfortunately, it does not include a package to handle EUtils queries.

I appreciate your difficulties when using R to parse XML; compared with other languages it is not very intuitive and the documentation is poor (lots of it but rather technical). However, I think you may just have to bite the bullet and get to grips with the R XML library. There are a few good tutorials and blog posts around on the Web (see comments under your question).

There are also some good examples in Chapter 8 of the book Bioinformatics and computational biology solutions using R and Bioconductor, some of which you can read at Google Books.

ADD COMMENT
0
Entering edit mode

Please note that this answer is now very out of date. Rentrez is great for EUtils and XML handling/documentation are now much improved.

ADD REPLY
5
Entering edit mode
12.8 years ago
Recology_ ▴ 100

There are at least four packages (I haven't tried any of them) I found on crantastic.org:

ADD COMMENT
0
Entering edit mode

per link#2 - EUtilslibs has no user accessible libraries

ADD REPLY
3
Entering edit mode
12.8 years ago
Raygozak ★ 1.4k

As for biophyton and bioperl counterpart in R you can use Bioconductor, however it may not have all the functionality you find in those libraries, and bioconductor is the project, you would need to search in biconductor's website for specific packages.

ADD COMMENT
2
Entering edit mode

It's true that Bioconductor is, in a sense, the "Bio*" project for R. Unfortunately (and perplexingly) it lacks a good library for EUtils.

ADD REPLY
1
Entering edit mode

This comment now out of date; see answer by hnakhoul.

ADD REPLY
2
Entering edit mode
10.6 years ago
hnakhoul ▴ 20

One option is rentrez, from the rOpenSci family of packages.

ADD COMMENT

Login before adding your answer.

Traffic: 1544 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6