简体   繁体   English

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

[英]Error message when using Biomart hsapiens_gene_ensembl dataset. Anyone know how to solve?

Here is my code that I used to try to connect to the hsapiens dataset:这是我用来尝试连接到 hsapiens 数据集的代码:

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

This is the error message that appears in the console:这是出现在控制台中的错误消息:

 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.

I am confused as to why I am getting this error because it is saying that this dataset is an invalid dataset but I checked and it is indeed valid.我很困惑为什么我会收到这个错误,因为它说这个数据集是一个无效的数据集,但我检查了它确实是有效的。

You need to use the host = "http://www.ensembl.org" argument:您需要使用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"
# ... 

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM