-
Notifications
You must be signed in to change notification settings - Fork 7
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
change db and cache path #71
Comments
Hi @bergalu, thanks for raising this issue, this is not trivial. In |
Hi @stitam , many thanks for your prompt response. By default, the cache path in the workstation where I need to run taxizedb is:
I want the chace folder to be: I had a look at the hoardr documentation and I succeeded in changing the absolute path by executing:
Even so, when I exit R, I enter it later on and I load the taxizedb package again, the chace path is reset to the default one. Moreover, I tried to download the ncbi database with the db_download_ncbi command, but it fails:
I verified that I can connect to and download from (with wget): Anyway, I tried to work it around by downloading myself the file: but then, Many thanks in advance, |
@bergalu @stitam I've run into the same issue with the curl command timing out. So like Luca, I downloaded the NCBI taxonomy dump myself and hit the same problem with figuring out how to make taxizedb process the zip file. To solve the problem, I forked the repo and added a So you can do the following: taxizedb::db_download_ncbi(path="taxdmp.zip") Where "taxdmp.zip" is your locally downloaded file. The zip file will be processed into an sqlite database and managed under My fork is at https://github.com/arendsee/taxizedb. If this looks good, I can make a PR. |
Thanks @arendsee for working on this, I looked at your commit and it looks good. I was wondering if it is good practice to (optionally) eliminate the "download" part from functions what have "download" in their names, but it's probably fine. This is also good for reproducibility, if someone wants to store the downloaded raw files as well, they can. Can you please open the PR? |
Good afternoon to everybody,
I would need to change the location of the cache folder and I am wondering if there is a way to do that.
Moreover I have to place the different databases in folders outside the cache one, how can I realize it?
I have downloaded the database with another computer, put it in the workstation to be used, but then I am at a loss to tell taxizedb where to pick up the database when needed.
I'm newbie to R and taxizedb, so I apologise if my questions sound trivial.
Many thanks in advance,
Luca
The text was updated successfully, but these errors were encountered: