Comments (8)
I tried to solve it by adding
export -f conda
export -f __conda_activate
export -f __conda_reactivate
export -f __conda_hashr
to my bashrc file
This allowed conda to continue and install mamba. However, when the script enters the next step and tries to download and set up the metaGEM conda environment, I get:
bash: line 1: mamba: command not found
from metagem.
Hi Sam,
Thanks for reporting the bug, I have not encountered this problem before. Are you setting up metaGEM
on the cluster or on your local machine?
From what you are telling me it sounds like the script is having trouble finding your mamba installation. Can you verify that there is indeed a mamba conda env installed on your system by running conda --info envs
? If there is an environment called mamba, can you then run source activate mamba && mamba --version
? If mamba is properly installed you should get an output like:
mamba 0.10.0
conda 4.10.1
from metagem.
Hi Francisco,
Thank you for your reply. I'm trying to set up metaGEM on a local machine with 40 threads and 500 GB RAM.
There is indeed a mamba conda env now, and when I run source activate mamba && mamba --version
I get:
mamba 0.13.0
conda 4.10.1
I don't think it is the first time conda gets called from a bash script, I think that has happened before when installing MG-atlas, so I'm not sure what is causing this. Maybe I should try the manual setup?
from metagem.
Hey Sam,
I am curious, what happens if you activate the mamba env and then run bash env_setup.sh
?
In any case, if you want to skip the script and set up manually then could you please try activating the mamba env, moving into your metaGEM
folder, and running:
mamba env create --quiet --prefix ./envs/metagem -f envs/metaGEM_env.yml
This should set up a conda environment and install most of the core packages.
Also, just in case you haven't already seen it, I recommend you check out the google colab notebook. In section 2) you can see how to finish manually setting up metaGEM
.
Please let me know if you have any further issues with the env_setup.sh
script or with manual setup.
Best wishes,
Francisco
from metagem.
Hi Francisco,
Ok, I did not yet see the google colab notebook. Very usefull, thanks! In the meantime I started following the Manual setup, but by doing so, I now realize the metagem, metawrap and prokkaroary environments are located in:
/home/slambrecht/miniconda2/envs/
and not in metaGEM/envs/
I assume I can not just copy the env directories to metaGEM/envs/
. Would it be best to remove them, and start anew, following the advice you gave me above?
Kind regards,
Sam
from metagem.
Hey Sam,
If you are confident that those envs are functional and properly installed, then you can modify your config.yaml
file like so:
-
Open your
config.yaml
file and go to theenvs
section at the bottom:
Lines 79 to 82 in 98facf2
-
Append path prefix to the envs, in your case:
envs:
metagem: /home/slambrecht/miniconda2/envs/metagem
metawrap: /home/slambrecht/miniconda2/envs/metawrap
prokkaroary: /home/slambrecht/miniconda2/envs/prokkaroary
Now snakemake should be able to identify and activate envs within jobs.
If you think your envs may have been corrupted/incompletely installed then you can simply remove them and re-install them up in your envs
folder.
conda env remove -n ENV_NAME
Let me know if this works out for you.
Best,
Francisco
from metagem.
Hi Francisco,
Great, thank you! Regarding CPLEX
, you write
install this dependency manually within the metagem conda environment.
Does that mean I have to specify /home/slambrecht/miniconda2/envs/metagem/bin
, when InstallAnywhere prompt asks me where I would like to install CPLEX Optimization Studio 20.1.0.?
Or how should I install CPLEX
manually within the metagem conda environment?
from metagem.
Hi Sam,
Thanks for pointing that out, I should clarify: I mean activate the metagem env and then run the installer. I believe you can install CPLEX anywhere, but it does not hurt to put it in that path. Let me know if you have trouble setting up CPLEX.
from metagem.
Related Issues (20)
- CompositionVis & modelVis output HOT 7
- Job submission with qsub HOT 2
- [Bug]: 'BiGG_gene' is both an index level and a column label, which is ambiguous. HOT 4
- [Usage]: running workflow on workstation with local flag HOT 17
- Questions about media, gapfilling, and predicting interactions HOT 11
- Getting the following error while running the bash metaGEM.sh -t check
- Getting the following error while running the bash metaGEM.sh -t check HOT 8
- refined_bins output remains empty after successful binRefine step HOT 2
- [Question]: How to define and construct a custom culture medium component that can be recognized by CarveMe? HOT 2
- [Question]:Why, when I use CarveMe for gap-filling, does it show that my custom medium does not exist in the database? HOT 1
- [Question]: I meet some errors when I use CarveMe for gap-filling? HOT 3
- [Question]: How to use the GEM output of CarveMe to generate these two files? HOT 1
- [Bug]: Metawrap Installation failure HOT 5
- ERROR when using GTDBTK HOT 2
- maintenance: check bonus tool implementation in Snakefile and wrapper
- crossmap with multiple threads HOT 2
- Implementation of EukRep in the Snakemake pipeline HOT 4
- How to set media to interpret and compare the metabolic interactions at different habitats? HOT 5
- abundance | samtools view: failed to add PG line to the header HOT 2
- dir_util.py AttributeError: 'dict' object has no attribute 'add' HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from metagem.