I want to use MEGAHIT (git: https://github.com/voutcn/megahit) to assemble metagenome shotgun sequencing reads (illumina).

I install the package with the command conda install -c bioconda megahit as described in on the github page which yields:

Solving environment: done

## Package Plan ##

environment location: /home/datura-workstation/miniconda3

- megahit

The following NEW packages will be INSTALLED:

megahit            bioconda/linux-64::megahit-1.2.9-h8b12597_0

Proceed ([y]/n)?


Where I click yes and the packages is installed. However, after installation I am not able to use the command megahit as this results in the error: megahit: command not found.

I use Ubuntu 18.04.3 LTS and have installed miniconda3.

I reproduced the installation of megahit on a windows computer with a virtual machine using the same Ubuntu version. On my virtual Ubuntu I CAN use the megahit command.

Could anyone please help me solve this problem? I searched the internet but cannot find a good solution on the issue (also not on the github issue page of this package).

• Why not just install Anaconda3? – M__ Apr 27 '20 at 13:26
• Did you install conda without any custom modifications? Check the bin folder of the miniconda root folder for presence of the executable. If it is there then add the bin to PATH. – ATpoint Apr 27 '20 at 14:10
• /home/datura-workstation/miniconda3/bin/megahit ? it should be there – StupidWolf Apr 27 '20 at 16:32
• Did you run make install after building? – Jose Fernando Lopez Fernandez Apr 28 '20 at 5:35
• @JoseFernandoLopezFernandez Anaconda is a package manager that replaces compilation. Therefore this is not necessary. This must be a PATH or environment problem – ATpoint Apr 28 '20 at 7:39

type conda info --envs. Look at your list of environments. Say it's base that has megahit in it, do conda activate base, then just do megahit.
• even in the base environment, the command megahit is not found. – Robvh Apr 28 '20 at 8:16
• I re-installed megahit and now when I activate conda activate base, megahit does work. Thank you!! – Robvh Apr 28 '20 at 8:39