当我运行以下命令时;
from Bio.Blast import NCBIWWW
from Bio import Entrez, SeqIO
Entrez.email = "A.N.Other@example.com"
handle = Entrez.efetch(db="Protein", id= "75192198", rettype = "xml")
record = Entrez.read(handle)
我得到了一个很难搜索的“Bio.Entrez.Parser.DictionaryElement”。如果我想说获取氨基酸序列,我必须输入这样的内容;
record["Bioseq-set_seq-set"][0]["Seq-entry_seq"]["Bioseq"]["Bioseq_inst"]["Seq-inst"]["Seq-inst_seq-data"]["Seq-data"]["Seq-data_iupacaa"]["IUPACaa"]
我知道必须有一种更简单的方法来索引这些结果中的元素。如果有人可以帮我解决这个问题,我将非常感激。