Entering edit mode
I have been getting this error since yesterday and I was wondering if it was a general problem or just me. I have tried mirrors and changes of ports.
Error in listMarts(host = host, path = path, port = port, includeHosts = TRUE, : Unexpected format to the list of available marts. Please check the following URL manually, and try ?listMarts for advice. http://www.ensembl.org:80/biomart/martservice?type=registry&requestid=biomaRt
Can you provide a small reproducible example of the code you're running?
Basically I am trying to access a dataset over biomart and I heard this error is common when the servers of ensembl are under maintenance but it does not seem like it's the case
You could still try
useEnsembl
and choose the closest mirror.What do you see if you click on the link in the error message and open it in a web browser?
<marturllocation database="snp_mart_98" default="" displayname="Ensembl Variation 98" host="www.ensembl.org" includedatasets="" martuser="" name="ENSEMBL_MART_SNP" path="/biomart/martservice" port="80" servervirtualschema="default" visible="1"/> <marturllocation database="regulation_mart_98" default="" displayname="Ensembl Regulation 98" host="www.ensembl.org" includedatasets="" martuser="" name="ENSEMBL_MART_FUNCGEN" path="/biomart/martservice" port="80" servervirtualschema="default" visible="1"/> </martregistry>
Something odd is happening, because that's exactly what you should see. The "Unexpected format to the list of available marts" error is only thrown if it doesn't find a page that starts with
<MartRegistry>
. Since you do see that page, something different must be occurring when using R vs your browser.Could you provide the output of
sessionInfo()
so I can see which versions of R and biomaRt you're using. The formatting of that error message suggests to me it might be an old version.You could also try the following command, which is explicitly designed to work with Ensembl and removes some of the ambiguity in choosing what port and protocol to connect over. If you have some firewall / proxy issue or similar then this might help.
Thanks for the quick response, I tried with the useEnsembl function but it did not make any difference. I am trying to update my packages at the moment. Thanks for the help everyone.
So I just updated it and it did make any difference edit :did not*
Do you know if there is any european server for ensembl? that I could use as a Host
The standard server at www.ensembl.org is hosted in Cambridge, UK and so would typically be the best to use in Europe.
I would suggest updating your R to version 3.6 as the version you're using is now a couple of years old, and versions of Bioconductor packages are tied to R versions, so you end up with an old version of biomaRt etc too. (Note, I can't actually see that in your output, you need to run
library(biomaRt)
before runningsessionInfo()
as it only reports packages you've actually loaded).I would try updating R first, but if that still fails one other thing you can try to help me understand what might be happening is to run these two commands, which are how biomaRt tries to check the page that is failing:
You can report back what it prints out here. FYI, to make it look nice you can wrap the output in a code bock by putting three back ticks (
```
) around it e.g.Thanks for the tips for the layout, it does look better this way. The problem is that I don't have the accreditation to update my version of R I will need to talk to IT dep of my institute and they will report to the IT dep of the gvt. I probably got the only version that they were allowed to install in the gvt computers.
When I run those commands I get the following:
In your case it's either a timeout for the first version or error code 403 for the second. I think you might need to speak to your IT department about reasons why this might not be working, as it looks like the basic connection from R fails, which is more fundamental than something I can fix in the biomaRt package.
I am using a proxy to access biomaRt could it be the reason? It worked before so I don't know why it suddenly stopped working.
The certainly sounds like it could be behind the issue, and might explain why you see a difference between the browser and R session. I don't know what will have caused the difference, but I don't think I have made any changes in biomaRt that would have introduce a change like this. Local IT are probably the best people to ask for advice here.
Alternatively, depending what task you're trying to do, there are many other annotation resources in Bioconductor that might work for you e.g. ensembl