Question: Scan issue retrieving Drosophila Genes with biomaRt
gravatar for JD
9 months ago by
JD0 wrote:


My guess is I just don't know what I am doing...

The following code worked well prior to December release: 
  mart <- useMart(biomart = "ENSEMBL_MART_ENSEMBL", dataset = "dmelanogaster_gene_ensembl", host = '')
  t2g <- getBM(attributes = c("ensembl_transcript_id", "ensembl_gene_id", "external_gene_name", "transcript_biotype"), mart = mart)

But now I have the following error: 
 Error in scan(file = file, what = what, sep = sep, quote = quote, dec = dec,  :  line 1 did not have 3 elements

I have tried 'useEnsembl' and specifying version 90 but that didn't seem to help. mart@host is always "" unless I specify the host as "" in my useMart code above. But I still get the same error regardless.

Is there something simple I am doing wrong? 

ADD COMMENTlink modified 9 months ago by Mike Smith3.1k • written 9 months ago by JD0
gravatar for Mike Smith
9 months ago by
Mike Smith3.1k
EMBL Heidelberg / de.NBI
Mike Smith3.1k wrote:

This is the same issue seen in biomaRt getBM error in scan

For the host argument you need to explicitly put the 'www ', since there are many possible subdomains for e.g.

mart <- useMart(biomart = "ENSEMBL_MART_ENSEMBL", 
                           dataset = "dmelanogaster_gene_ensembl", 
                           host = "")

Both this and the problem you encountered with specifying versions in useEnsembl have been patched in the developmental version of biomaRt.

ADD COMMENTlink modified 9 months ago • written 9 months ago by Mike Smith3.1k
Please log in to add an answer.


Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.2.0
Traffic: 278 users visited in the last hour