Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a way with biopython to obtain the full abstract from a pubmed article?

I currently have the following code which queries pubmed:

from Bio import Entrez
Entrez.email = "[email protected]"     # Always tell NCBI who you are
handle = Entrez.esearch(db="pubmed", term="bacteria")
record = Entrez.read(handle)
list = record["IdList"]
print len(list)
for index in range(0, len(list)):
    listId = list[index]
    handle = Entrez.esummary(db="pubmed", id=listId)
    record = Entrez.read(handle)
    print index
    print record[0]["Title"]
    print record[0]["HasAbstract"]

This code is able to tell me if the article has an abstract but I can't find any documentation on how to actually return the abstract. Is it possible using biopython? if it isn't is there another way?

like image 698
Ryan Raten Kuhar Avatar asked Feb 09 '14 22:02

Ryan Raten Kuhar


People also ask

What is bio entrez?

Entrez (http://www.ncbi.nlm.nih.gov/Entrez) is a data retrieval system that provides users access to NCBI's databases such as PubMed, GenBank, GEO, and many others. You can access Entrez from a web browser to manually enter queries, or you can use Biopython's Bio. Entrez module for programmatic access to Entrez.


1 Answers

Yes, it's obviously possible using BioPython. If you follow exactly this section, you should be able to get the abstract from pubmed: http://www.biopython.org/DIST/docs/tutorial/Tutorial.html#sec142

If you don't find this link helpful, please let me know. I will get back to you soon.

like image 51
Sharif Mamun Avatar answered Sep 19 '22 16:09

Sharif Mamun