Hello all

I'm running the most up to date R and biomaRt.

I get the following error:
 >Error: ncol(result) == length(attributes) is not TRUE

for the following loop:
# 'ID' is a character vector of refseq IDs
#'gene', for the purposes of the argument here, is a list storing the output

 > ensembl <- useMart("ensembl", dataset="hsapiens_gene_ensembl")
 > for (i in 1:length(ID)) {
 >       gene[[i]] <- getGene(id=ID[i], type="refseq_dna", mart=ensembl)
 > }

The problem is not dependent on the get function used or the id type 
used. I didn't have this problem yesterday on the same script. The error 
also occurs randomly, breaking the loop at any particular point, 
sometimes allowing thousands of loops to run.

Could this be a problem with the server I'm pulling the information 
from? It just seems too random to be my coding - especially considering 
I didn't have this problem yesterday.

I've had this before, ages ago, and would like to get to the bottom of 
it. And wisdom? Thanks.
 

* *

* *

* *

*Quin Wills*
*DPhil candidate*

* *

*Department of Statistics*

*University** of Oxford***

*1 South Parks Road*
*Oxford***

*OX1 3TG
United Kingdom*

 

*01865 285 394*


	[[alternative HTML version deleted]]

