I recently switched jobs and am installing biomaRt on my new windows machine. The package seems to download and install fine, but so far my commands to useMart() or even just listMarts() generate the same error:
> listMarts() AttValue: " or ' expected attributes construct error Couldn't find end of Start Tag IMG line 5 AttValue: " or ' expected attributes construct error Couldn't find end of Start Tag FONT line 6 Opening and ending tag mismatch: TD line 6 and FONT Opening and ending tag mismatch: TD line 6 and TR Opening and ending tag mismatch: TR line 4 and TABLE Opening and ending tag mismatch: P line 20 and BODY Opening and ending tag mismatch: P line 18 and HTML Premature end of data in tag P line 14 Premature end of data in tag BR line 11 Premature end of data in tag P line 9 Premature end of data in tag TABLE line 3 Premature end of data in tag BODY line 2 Premature end of data in tag HTML line 1 Error: 1: AttValue: " or ' expected 2: attributes construct error 3: Couldn't find end of Start Tag IMG line 5 4: AttValue: " or ' expected 5: attributes construct error 6: Couldn't find end of Start Tag FONT line 6 7: Opening and ending tag mismatch: TD line 6 and FONT 8: Opening and ending tag mismatch: TD line 6 and TR 9: Opening and ending tag mismatch: TR line 4 and TABLE 10: Opening and ending tag mismatch: P line 20 and BODY 11: Opening and ending tag mismatch: P line 18 and HTML 12: Premature end of data in tag P line 14 13: Premature end of data in tag BR line 11 14: Premature end of data in tag P line 9 15: Premature end of data in tag TABLE line 3 16: Premature end of data in tag BODY line 2 17: Premature end of data in tag HTML line 1
This generates the exact same error:
> ensembl <- useMart("ensembl", dataset="hsapiens_gene_ensembl")
I tried to make sure I had the most up to date biomaRt version for my R installation (R 3.1.2), but that has not seemed to resolved the issue. I have not encountered this before and am at a loss. Any advice?
Thanks,
Sean
> sessionInfo() R version 3.1.2 (2014-10-31) Platform: x86_64-w64-mingw32/x64 (64-bit) locale: [1] LC_COLLATE=English_United States.1252 LC_CTYPE=English_United States.1252 LC_MONETARY=English_United States.1252 [4] LC_NUMERIC=C LC_TIME=English_United States.1252 attached base packages: [1] stats graphics grDevices utils datasets methods base other attached packages: [1] biomaRt_2.22.0 loaded via a namespace (and not attached): [1] AnnotationDbi_1.28.2 Biobase_2.26.0 BiocGenerics_0.12.1 bitops_1.0-6 DBI_0.3.1 GenomeInfoDb_1.2.5 [7] IRanges_2.0.1 parallel_3.1.2 RCurl_1.95-4.5 RSQLite_1.0.0 S4Vectors_0.4.0 stats4_3.1.2 [13] tools_3.1.2 XML_3.98-1.1
Hi Steffan,
If I follow the link, I get a big html page. I will have to look through it to see if there is anything diagnostic in that, but at first blush I saw nothing obvious. I will check through the vignette as well.
Thanks,
Sean
(edited for formatting)
If the HTML page looks fine in your browser then maybe there is an issue in how your computer parses this data.
As I don't have access to Windows, I can't trouble shoot but I think you might be able to do some debugging on the xmlTreeParsing that is used inside biomaRt.
See if you can replicate the error by just doing:
And maybe you find a way to make this step work by adding:
Or change some other parameter of xmlTreeParse function.
Steffen
Could you also check if this solves the issue:
And lastly,
The following work around could get you connected:
I think you should be able to do queries using that ensembl object.
It seems to be the firewall. I explicitly set the proxy with
That seems to have done the trick.
Thanks for your help!
Sean