gene = Entrez.efetch(db="gene", id="54901", rettype="gb", retmode="text"
gene_record = SeqIO.read(gene,"gb")
ValueError:句柄
中找不到记录
我不明白为什么会发生这种情况,是来自有问题的基因,还是我做错了什么?
答案 0 :(得分:0)
我不知道你为什么会收到这个错误。这段代码效果很好。你是代理人吗?
看看这个:
>>> gene = Entrez.efetch(db="gene", id="54901", rettype="gb", retmode="text")
>>> data = gene.read()
>>> print(data)
1. CDKAL1
Official Symbol: CDKAL1 and Name: CDK5 regulatory subunit associated protein 1-like 1 [Homo sapiens (human)]
Other Designations: tRNA-t(6)A37 methylthiotransferase
Chromosome: 6; Location: 6p22.3
Annotation: Chromosome 6NC_000006.12 (20534457..21232404)
MIM: 611259
ID: 54901