BioPython为PubMed查询编写程序

2024-10-02 22:27:08 发布

您现在位置:Python中文网/ 问答频道 /正文

我必须向用户请求一个查询,然后打印出匹配的数量,以及前5个返回结果的标题、第一作者姓名、最后一个作者姓名。在

到目前为止我所拥有的:

from Bio import Entrez
from Bio import Medline

pmquery = str(input("Enter the Pubmed query:"))
Entrez.email = "myemailadress@bdm.com"
handle = Entrez.esearch(db="pubmed", term=pmquery,retmax=5)
record = Entrez.read(handle)
handle.close()
print(record)

Tags: the用户fromimport标题input数量entrez