【问题标题】:cogent.db.ensembl cookbook's example of .getGeneByStableId() returns 'ProgrammingError'cogent.db.ensembl 食谱的 .getGeneByStableId() 示例返回“ProgrammingError”
【发布时间】: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

【问题讨论】:

标签: python database database-connection bioinformatics cookbook


【解决方案1】:

出现该错误是因为 Ensembl 从版本 70 开始删除了 flanking_seq 数据库。此问题已在 PyCogent github 存储库中修复。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2013-09-16
    • 2012-02-16
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-11-06
    • 2021-11-01
    相关资源
    最近更新 更多