require("biomaRt")
human <- useMart(biomart = "ENSEMBL_MART_ENSEMBL", dataset = "hsapiens_gene_ensembl", host = "www.ensembl.org" )
# 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.
human <- useMart(biomart = "ENSEMBL_MART_ENSEMBL", host = "www.ensembl.org" )
#Space required after the Public Identifier SystemLiteral " or ' expected SYSTEM or PUBLIC, the URI is missing Entity 'nbsp' not defined Error: 1: Space required after the Public Identifier 2: SystemLiteral " or ' expected 3: SYSTEM or PUBLIC, the URI is missing 4: Entity 'nbsp' not defined
#[repeat 5 times with same error]
human <- useMart(biomart = "ENSEMBL_MART_ENSEMBL", host = "www.ensembl.org" )
human
#Object of class 'Mart': Using the ENSEMBL_MART_ENSEMBL BioMart database Using the dataset
datasets <- listDatasets(mart)
datasets[grep("hsapiens", datasets$dataset),]
#dataset description version
#32 hsapiens_gene_ensembl Homo sapiens genes (GRCh38.p5) GRCh38.p5
human <- useMart(biomart = "ENSEMBL_MART_ENSEMBL", dataset = "hsapiens_gene_ensembl", host = "www.ensembl.org" )
# 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.
# let's try the Asia mirror
human <- useMart(biomart = "ENSEMBL_MART_ENSEMBL", dataset = "hsapiens_gene_ensembl", host = "asia.ensembl.org" )
#Error in bmAttrFilt("filters", mart, verbose = verbose) : biomaRt error: looks like we're connecting to incompatible version of BioMart suite.
I am also having this problem with biomaRt. It seems like a hit and miss process as to whether you get a connection or not. Two days ago within the space of an hour I was getting connection some of the time and all worked as normal. But also within that hour there were many times when I just wasn't getting a connection and I was getting error messages. I was trying both the default ensembl site and the asian mirror.
I am not getting a connection now.
> library("biomaRt")
> mouse<-useMart(host="www.ensembl.org", "ENSEMBL_MART_ENSEMBL", dataset="mmusculus_gene_ensembl")
Error in useMart(host = "www.ensembl.org", "ENSEMBL_MART_ENSEMBL", dataset = "mmusculus_gene_ensembl") :
Incorrect BioMart name, use the listMarts function to see which BioMart databases are available
> mouse<-useMart(host="asia.ensembl.org", "ENSEMBL_MART_ENSEMBL", dataset="mmusculus_gene_ensembl")
Error in useMart(host = "asia.ensembl.org", "ENSEMBL_MART_ENSEMBL", dataset = "mmusculus_gene_ensembl") :
Incorrect BioMart name, use the listMarts function to see which BioMart databases are available
> listMarts(host="www.ensembl.org")
[1] biomart version
<0 rows> (or 0-length row.names)
> listMarts(host="asia.ensembl.org", verbose = TRUE)
Attempting web service request: http://asia.ensembl.org:80/biomart/martservice?type=registry&requestid=biomaRt
[1] biomart version
<0 rows> (or 0-length row.names)
It looks like our Asia biomart mirror is currently down. We'll look
into restarting this ASAP. Other problems may reflect excessive load on
the BioMart servers, particularly by queries using very large numbers of
regions or IDs. We're currently investigating how we might handle this.
Sorry for the terrible formatting...