biomaRt error message
1
0
Entering edit mode
Didi ▴ 10
@didi-10905
Last seen 2.7 years ago
Spain

Hi,

I downloaded the latest version of biomaRt and tried to run:

m1 <- useMart("plants_mart", "osativa_eg_gene", host = "archive.plants.ensembl.org")
go <- getBM(attributes=c("go_accession", "tigr_locus", "entrezgene","go_namespace_1003"),mart=m1)

Since the "tigr_locus" attribute name changed or it's missing in the latest version of biomaRt I used host="archive.plants.ensembl.org".

I got this error.

Error in scan(file = file, what = what, sep = sep, quote = quote, dec = dec,  :
  line 1 did not have 3 elements

Can you tell me how to fix it?

How to get the "tigr_locus" attribute in the latest version? any other name?

Thanks a lot.

D.

biomart bioconductor rice • 905 views
ADD COMMENT
0
Entering edit mode
Mike Smith ★ 6.6k
@mike-smith
Last seen 3 hours ago
EMBL Heidelberg

I think this error is because when you go to archive.plants.ensembl.org you are actually redirected to mar2016-plants.ensembl.org and biomaRt doesn't cope with this redirection.

However if you use the correct URL in your R query you currently encounter a different error. I get this same error when using the Ensembl BioMart web interface, suggesting this is a problem at Ensembl's end, rather than something I can address in biomaRt.

There is a more recent archive at oct2017-plants.ensembl.org although I can't find any documentation about this, so it may not be permanent. You can query this via:

library(biomaRt)
m1 <- useMart("plants_mart", "osativa_eg_gene", host = "oct2017-plants.ensembl.org")
go <- getBM(attributes=c("go_id", "tigr_locus", "entrezgene","namespace_1003"), mart=m1)

Bear in mind with this that all of the information you retrieve from here will be potentially out of date, and it might be worth finding out why the tigr_locus attribute was removed from the current Ensembl release. That's something that you will have to contact Ensembl about.

ADD COMMENT

Login before adding your answer.

Traffic: 555 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