Code Monkey home page Code Monkey logo

Comments (8)

slambrechts avatar slambrechts commented on September 3, 2024

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.

franciscozorrilla avatar franciscozorrilla commented on September 3, 2024

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.

slambrechts avatar slambrechts commented on September 3, 2024

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.

franciscozorrilla avatar franciscozorrilla commented on September 3, 2024

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.

slambrechts avatar slambrechts commented on September 3, 2024

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.

franciscozorrilla avatar franciscozorrilla commented on September 3, 2024

Hey Sam,

If you are confident that those envs are functional and properly installed, then you can modify your config.yaml file like so:

  1. Open your config.yaml file and go to the envs section at the bottom:

    metaGEM/config.yaml

    Lines 79 to 82 in 98facf2

    envs:
    metagem: envs/metagem
    metawrap: envs/metawrap
    prokkaroary: envs/prokkaroary

  2. 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.

slambrechts avatar slambrechts commented on September 3, 2024

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.

franciscozorrilla avatar franciscozorrilla commented on September 3, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.