Kraken 2.1.0

Tested on (Requirements)

  • OS base: CentOS (x86_64) \(\boldsymbol{\ge}\) 6
  • Compiler Perl 5.26.1 and GCC 7.4.0

Installation

  1. First of all, you must load the following modules for the compilation.

    $ module load gcc/7.4.0
    $ module load perl/5.26.1_gcc-4.4.7
    
  2. After that, download the source code from github and move into the directory generated.

    $ git clone https://github.com/DerrickWood/kraken2.git
    $ cd kraken2/
    
  3. Before to start the installation, you should make two directories, the first one is an installation directory acting as “prefix”, the second one is the bin directory, the last one is useful if you want to place the kraken2 scripts in you $PATH.

    $ mkdir -p $HOME/kraken/{instalation,bin}
    $ # This sets a temporal environment variable to set the "prefix path"
    $ KRAKEN_DIR="$HOME/kraken/instalation/"
    
  4. Then you can continue with the installation, after execute the install script you should copy three binary files from the “installation prefix” (install directory) to the binaries (bin directory), mentioned above.

    $ ./install_kraken2.sh $KRAKEN_DIR
    $ cd $KRAKEN_DIR/..
    $ cp instalation/kraken2{,-build,-inspect} bin/
    
  5. If the installation was successful then you should:

    $ cd bin/
    $ ./kraken2 --version
    
  6. Optional: If you want, you can add the $HOME/kraken/bin/ directory to your $PATH.

Authors

  • Laura Sanchez Cordoba
  • Samuel Palacios Bernate