NCBI and pubmed data mining
1
0
Entering edit mode
7.3 years ago
1769mkc ★ 1.2k

So I'm using this "RISmed" library to do some query of my gene or protein of interest and the output comes with pubmed ID basically, but most of the times it consist of non-specific hits as well which are not my interest.As I can only see the pubmed ID so i have to manually put those returned ID and search them in NCBI to see if the paper is of my interest or not.

So my question : Is there a way to to return the abstract of the paper or summary sort of along with its pumed ID , which can be implemented in R?

If anyone can help it would be really great..

R • 2.6k views
ADD COMMENT
3
Entering edit mode
7.3 years ago

Use the getAbstracts() function from the PubMedWordCloud package. Assuming you got a list of PMIDs in the pmids variable, the following should do it:

   library(PubMedWordCloud)
   abstracts<-getAbstracts(pmids)

Note also that RISmed has an AbstractText method (example here) but it seems more complicated to use.

ADD COMMENT
0
Entering edit mode

thank you , i will try both of them

ADD REPLY
0
Entering edit mode

the error Im getting is this

"Unknown IO errorfailed to load external entity "http://eutils.ncbi.nlm.nih.gov/entrez/eutils/efetch.fcgi?db=pubmed&id=26018226&rettype=abstract"

ADD REPLY
2
Entering edit mode

NCBI now uses https-only connections. Perhaps that is a thing to check into.

ADD REPLY
0
Entering edit mode

okay so how do i include that in my R query ?any suggestion

ADD REPLY
2
Entering edit mode

Good point about https. I submitted a request to the package maintainer. An alternative could be to use the RefManageR package with something like:

refs <- ReadPubMed(query=pmids, database = "PubMed")
abstracts <- refs$abstract
ADD REPLY

Login before adding your answer.

Traffic: 1992 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