Closed richelbilderbeek closed 4 years ago
Note that sometimes ...
UniprotR:::GetSequences("UP000464024")
you also get this error:
Error in curl::curl_fetch_memory(url, handle = handle) :
Timeout was reached: [www.uniprot.org] Resolving timed out after 10000 milliseconds
They are related, so I just put it here :+1:
What worked for me is to use RCurl
:
GetProteomeFasta <- function(ProteomeID, directorypath = NULL)
{
baseUrl <- "https://www.uniprot.org/uniprot/?query=proteome:"
fullUrl <- paste0(baseUrl , ProteomeID,"&format=fasta")
text <- RCurl::getURL(fullUrl)
filename <- paste0(ProteomeID, ".fasta")
if (!is.null(directorypath)) {
filename <- file.path(directorypath, ProteomeID, ".fasta")
}
writeLines(text, filename)
}
I submitted no Pull Request here, because there are not tests, not are these results consistent.
(note to self: one can do it from the command line using
wget --no-check-certificate --auth-no-challenge --output-document=UP000464024.fasta "https://www.uniprot.org/uniprot/?query=proteome:UP000464024&format=fasta"
)
Thanks for your great efforts we are going to change it, in the next version.
Thanks for accepting :+1:
Dear UniprotR maintainer,
When I try to download a reference proteome:
I get this error:
This error is -as far as I understand- caused by Uniprot using an outdated SSL system.
I suggest that either UniprotR should work around this, and/or mentions this problem (preferable with a fix of course :+1:).
This is my session info: