-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refseq download error #76
Comments
I am also unsure why it says there is more than one entry. When I look manually, there is only one entry per organism:
|
for what it is worth, this did work:
|
OK -- I think I have a solution to this. Here is my environment:
When I use the 'custom_downloader' script directly like so:
Then I get this error:
Which corresponds to these lines in the downloader::download() function
So, there is an issue with setting method in the custom_downloader script. I don't have a good explanation of why. However, if I simply remove that line such that the Linux download function looks like this:
It works just fine. |
Re: Issue ropensci#76, remove the 'method' argument from custom_download. When this is included, the following error occurs: Error in download.file(url, method = method, ...) : formal argument "method" matched by multiple actual arguments
hm. that does work. But if I try to download the annotation files and genomes to the same directory, then there is a problem with the attempt to unzip: this occurs if I call getGenomeSet after getGffSet tot the same output directory:
I could disable this by turning off the unzip function, but it is probably better to keep a list of the input files and unzip those rather than (I suspect) calling list.files and unzipping all files. Also, I disagree that it is a good practice to rename the files to the species name. I suggest at least keeping the accession number in the filename, eg GCF_12345_scervisiae.gff.gz. Further, my suggested fix above of removing the 'method' argument works in terms of getting the files to download. However, I am still getting this error message:
which is occurring due to some error handling try/catch statement that is apparently catching an error unrelated to the success of the download. |
Hi @cmatKhan Thank you so much for this amazing trouble-shooting and for finding the solutions! I now removed the Does this work for you? Regarding the unzip function when you download annotation into the same folder: I will look into this is detail. Once again, thank you very much for this excellent work! Best wishes, |
I can confirm this fixes the issue. This issue can now be closed. |
I am trying to download a handful of yeast genomes from ref seq with the following script:
using either refseq or genbank, I get the following error:
When I paste the FTP link into my browser, it downloads just fine.
Any suggestions?
The text was updated successfully, but these errors were encountered: