【发布时间】:2014-12-01 10:07:25
【问题描述】:
我在使用 PyCogent 查询 EnsEMBl 的数据库时遇到错误 - 这个错误可能是由 EnsEMBL 或 PyCogent 中的更新引起的吗?
当尝试重现 PyCogent Cookbook 的 Querying Ensembl 文档页面(“选择基因”部分)的代码时,我得到 “ProgrammingError”。
这是失败的食谱代码(我指出发生错误的行):
#!/usr/bin/python
import os
#----------------------------------------------------------
# Interrogating a Genome
#----------------------------------------------------------
from cogent.db.ensembl import HostAccount, Genome
human = Genome(Species='human', Release=Release, account=account)
#----------------------------------------------------------
# Selecting Genes
#----------------------------------------------------------
brca1 = human.getGeneByStableId(StableId='ENSG00000012048') #<--- ERRORS OUT HERE
print brca1.Description
错误如下:
ProgrammingError: (ProgrammingError) (1146, "Table 'homo_sapiens_variation_74_37.flanking_sequence' doesn't exist") 'DESCRIBE flanking_sequence' ()
额外信息:
- Python 2.7.3
- PyCogent 1.5.1-2
- Ubuntu 12.04
- Ensmbl 版本 74
【问题讨论】:
-
在 biostars 上发帖:biostars.org/p/90804
标签: python database database-connection bioinformatics cookbook