I have just installed biomaRt and am having trouble with Task 11 in the User Guide (available on the web). The relevant piece of code is:
human = useMart("ensembl", dataset = "hsapiens_gene_ensembl") mouse = useMart("ensembl", dataset = "mmusculus_gene_ensembl") getLDS(attributes = c("hgnc_symbol","chromosome_name", "start_position"), filters = "hgnc_symbol", values = "TP53",mart = human, attributesL = c("refseq_mrna","chromosome_name","start_position"), martL = mouse)
When I copy and paste this code at the R command line, I get the following output and error:
[1] HGNC.symbol Chromosome.Name Gene.Start..bp. [4] RefSeq.mRNA..e.g..NM_001195597. Chromosome.Name.1 <0 rows> (or 0-length row.names) Error in getLDS(attributes = c("hgnc_symbol", "chromosome_name", "start_position"), : The query to the BioMart webservice returned an invalid result: the number of columns in the result table does not equal the number of attributes in the query. Please report this to the mailing list.
I searched for other cases where people got this error and found varying answers -- from "it's a server-side problem" to "you requested an attribute that doesn't exist" (which can't be the problem this time, unless the example itself is incorrect) to "install the newest version of biomaRt" (which shouldn't be the problem this time because I just installed it) to "this is a non-trivial bug". I now have absolutely no idea what the problem might be or how to start fixing it. Any help would be much appreciated!
I'm using RStudio Version 0.99.903, if that matters.
Here's my session info:
> sessionInfo() R version 3.3.0 (2016-05-03) Platform: x86_64-apple-darwin13.4.0 (64-bit) Running under: OS X 10.11.6 (El Capitan) locale: [1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8 attached base packages: [1] stats graphics grDevices utils datasets methods base other attached packages: [1] biomaRt_2.28.0 BiocInstaller_1.22.3 loaded via a namespace (and not attached): [1] IRanges_2.6.1 rsconnect_0.4.3 parallel_3.3.0 DBI_0.5-1 [5] tools_3.3.0 RCurl_1.95-4.8 Biobase_2.32.0 AnnotationDbi_1.34.4 [9] RSQLite_1.0.0 S4Vectors_0.10.3 BiocGenerics_0.18.0 stats4_3.3.0 [13] bitops_1.0-6 XML_3.98-1.4