使用Biomart hsapiens_gene_ensembl数据集时出现错误消息。谁知道怎么解决?

时间:2017-12-29 19:17:58

标签: r bioinformatics bioconductor ensemble-learning biomart

以下是我用来尝试连接到hsapiens数据集的代码:

 Error in useDataset(mart = mart, dataset = dataset, verbose = verbose) : 
 The given dataset:  
 hsapiens_gene_ensembl , is not valid.  
 Correct dataset  names can be obtained with the listDatasets function.

这是控制台中显示的错误消息:

BEGIN

INSERT INTO top_question(MCO,PID)
SELECT ID,P_ID FROM `comment_tbl` GROUP BY P_ID order by COUNT(*) DESC LIMIT 10    

END

我很困惑为什么我收到此错误,因为它说这个数据集是一个无效的数据集,但我检查了它确实有效。

1 个答案:

答案 0 :(得分:1)

您需要使用host = "http://www.ensembl.org"参数:

mart <- biomaRt::useMart(biomart = "ENSEMBL_MART_ENSEMBL",
                         dataset = "hsapiens_gene_ensembl",
                         host = "http://www.ensembl.org")

str(mart)
#     Formal class 'Mart' [package "biomaRt"] with 8 slots
#   ..@ biomart   : chr "ENSEMBL_MART_ENSEMBL"
#   ..@ host      : chr "http://www.ensembl.org:80/biomart/martservice"
#   ..@ vschema   : chr "default"
#   ..@ version   : chr(0) 
#   ..@ dataset   : chr "hsapiens_gene_ensembl"
# ...