DerrickWood / kraken2

The second version of the Kraken taxonomic sequence classification system
MIT License
687 stars 267 forks source link

Kraken2 basic installation is broken #717

Open xapple opened 1 year ago

xapple commented 1 year ago

I followed the instructions in the manual to install kraken2. This did not work. It seems like this software is in a non-functional state, which is surprising given its popularity.

These commands were run for initial installation on a standard 64-bit linux.

KRAKEN2_DIR="/storage/shared/programs/kraken2"

mkdir KRAKEN2_DIR
cd KRAKEN2_DIR
git clone https://github.com/DerrickWood/kraken2.git
mv kraken2 repos
cd repos

./install_kraken2.sh $KRAKEN2_DIR

mkdir $KRAKEN2_DIR/bin
ln -s $KRAKEN2_DIR/kraken2         $KRAKEN2_DIR/bin
ln -s $KRAKEN2_DIR/kraken2-build   $KRAKEN2_DIR/bin
ln -s $KRAKEN2_DIR/kraken2-inspect $KRAKEN2_DIR/bin

export PATH="$KRAKEN2_DIR/bin":$PATH

This step worked. However, building the database with the following bash commands was unsuccessful:

KRAKEN2_DIR=-"/storage/shared/programs/kraken2"
KRAKEN2_DB="/storage/shared/databases/kraken2"

$KRAKEN2_DIR/bin/kraken2-build --standard --threads 24 --db $KRAKEN2_DB/standard

The standard output was empty and the standard error contained the following:

Downloading nucleotide gb accession to taxon map... done.
Downloading nucleotide wgs accession to taxon map... done.
Downloaded accession to taxon map(s)
Downloading taxonomy tree data... done.
Uncompressing taxonomy data... done.
Untarring taxonomy tree data... done.
rsync_from_ncbi.pl: unexpected FTP path (new server?) for https://ftp.ncbi.nlm.nih.gov/genomes/all/GCF/000/762/265/GCF_000762265.1_ASM76226v1

Could you please fix kraken2 so that the bioinformatics community can actually install and use it? Thanks.

Erythroxylum commented 1 year ago

Prebuilt databases can be accessed here: https://benlangmead.github.io/aws-indexes/k2

xapple commented 1 year ago

Was able to circumvent this issue by downloading a prebuilt database here:

https://hackmd.io/@AstrobioMike/kraken-standard-build-21-Jan-2022

Still I think it would be nice to fix this package so that the README instructions work.