Hello ! does anybody failed to convert id using getBM in biomaRt package?
1
0
Entering edit mode
YinCY ▴ 20
@yincy-17934
Last seen 4.8 years ago
HangZhou, zhejaing

when i do id convertion using getBM() function from biomaRt bioconductor package, from time to time this problem comes up, sometimes decrease the attributes can solve, but sometimes not. is there are any solutions?

> gencode.1 <- getBM(
+     attributes = c("ensembl_gene_id", "ensembl_transcript_id", "entrezgene"),
+     filters = "ensembl_transcript_id",
+     values = gencode$ensembl,
+     mart = mmart
+ )

Batch submitting query [=======>----------------------------------------------------------------------------]  10% eta:  1hError in getBM(attributes = c("ensembl_gene_id", "ensembl_transcript_id",  : 
  The query to the BioMart webservice returned an invalid result: biomaRt expected a character string of length 1. 
Please report this on the support site at http://support.bioconductor.org
biomaRt getBM • 820 views
ADD COMMENT
0
Entering edit mode

my method is split the values into small pieces and do loop. once it stopped retry it again from the stopped pieces.

ADD REPLY
0
Entering edit mode
Mike Smith ★ 6.5k
@mike-smith
Last seen 3 hours ago
EMBL Heidelberg

It might be that the main Ensembl site is being a bit slow today. You can try querying one of the mirror sites e.g.

mart <- useEnsembl(biomart = "ensembl", 
                   dataset = "hsapiens_gene_ensembl", 
                   mirror = "asia")

Values for the mirror argument are: useast, uswest, asia. You'll need to modified the dataset argument if you're not accessing human genes.

ADD COMMENT
0
Entering edit mode

thanks Mike!! this is very helpful and the speed is improved much more.

ADD REPLY

Login before adding your answer.

Traffic: 718 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6