It looks qiime2-2023.5 was installed in directory "/home/hsbae" while, now, I'd like to install qiime in the other directory "/blue/hsbae". How do I remove qiime2 from /home/hsbae and install it in the directory "/blue/hsbae"?
Hello @baehsung, do you have a particular reason for wanting to remove the environment from its current location and put it in a new one? Our install instructions have you create a named conda environment with the name being qiime2-<version>. Conda installs these environments under /home/<user>/..., but you should be able to activate the environment from anywhere on your system by running conda activate <env-name>.
If this is an issue due to the configuration of your HPC or something, you can install a conda prefix environment at any location you want on your system then activate it by running conda activate <path-to-env>. You do not need to remove the environment under home before you do this, but if you want to the command for that is conda env remove -n <env-name>.
I would not recommend doing this unless a conda named environment in your home directory does not work on your system for some reason.
Thank you so much for your quick replay, with kind explanation.
The reason for trying to move qiime2 into new directory is that my /home// has very little space to run qiime analyses. And, then, we purchased more CUPs and storage, with creating a new directory (/blue//).
Now, I'm trying to install qiime2 using conda that was already setup in HPC system as suggested by IT staff. I think I successfully installed qiime2 in the /blue/. using following commands provided by IT man.
Directory '/tmp/qiime2' already exists without proper permissions '0o41777' set. Current permissions are '0o41757.' This most likely means something other than QIIME 2 created the directory '/tmp/qiime2' or QIIME 2 failed between creating '/tmp/qiime2' and setting permissions on it.
Do you think I need to reinstall qiime2 in /home/<user/ (even it looks installed somewhere) and run the qiime in the new dir (/blue//) after installing conda prefix as suggested by you under HPC-installed conda? Is it no problem to use HPC-conda in running Qiime?
Can you look at the contents of the /tmp/qiime2/ directory? We use that directory for temporary storage, but it sounds like in your case maybe someone else created it. You should see something that looks like the following:
A directory with your username with the contents shown in the screenshot. There may also be other directories for other usernames if there are other people on your system using QIIME 2.
This looks like a qiime2 cache, assumedly as @Oddant1 was expecting. Others seem to be using the cache fine, which is strange because apparently improper permissions are set on it.
Next steps are to reach out to your HPC admins to ask why or how the permissions were changed.
In the mean time you can set the appropriate temp dir environment variable (probably one of $TMP, $TEMP, $TMPDIR) to something other than /tmp. Qiime will then make a new cache there with the correct permissions set. You'll likely have to set this environment variable in any job script you submit, or just in your terminal if run things from there.
Would you mind giving me details to set temp dir (e.g., commands)?
I can make a new dir name TEMP within tmp, but not successful in outside of /tmp in the screenshot of MobaXterm.