现在我正试图为我的生物信息学论文制作一个用于对表进行后处理的python代码,为此,我创建了一个表,其中包含蛋白A,蛋白B和uniprot id。通过使用该uniprot id,我可以识别,蛋白质A和Bi的种类已经下载了代码,我运行了它,但是显示属性错误:
result=service.search(query)
AttributeError: module 'uniprot' has no attribute 'search'
以下是我使用的代码:
# Standard library packages
import io
# Import Seaborn for graphics and plotting
import seaborn as sns
# Import bioservices module, to run remote UniProt queries
from bioservices import UniProt
# Import Pandas, so we can use dataframes
import pandas as pd
# Make a link to the UniProt webservice
service = UniProt()
# Build a query string
query = "Q9AJE3"
# Send the query to UniProt, and catch the search result in a variable
result = service.search(query)
# Inspect the result
print(result)
我希望从查询中获得相应的信息作为输出