jenniferlu717 / Bracken

Bracken (Bayesian Reestimation of Abundance with KrakEN) is a highly accurate statistical method that computes the abundance of species in DNA sequences from a metagenomics sample.
http://ccb.jhu.edu/software/bracken/index.shtml
GNU General Public License v3.0
274 stars 50 forks source link

ERROR: database150mers.kmer_distrib does not exist #208

Open Sabrin2020 opened 1 year ago

Sabrin2020 commented 1 year ago

Okay , i ran braken-build but get error, anz hint please what is wrong?

bracken-build -d kraken.NCBI.nt -t 32 -l 150 -x kraken.NCBI.nt -y kraken2

bracken -d kraken.NCBI.nt -i kraken.report -o test.bracken -w OUTREPORT -r 150 -l S

****Note that this script will try to use kraken2 as default. If kraken2 is not installed, kraken will be used instead

Checking for Valid Options... ERROR: kraken.NCBI.nt/database150mers.kmer_distrib does not exist Run bracken-build to generate the kmer distribution file.**

Louis-MG commented 1 year ago

I got the same error. The location of the file was correct, the name of the file database150mers.kmer_distrib was correct. I could circumvent this by downloading the file bracken and changing the default r value. I also had to modify the $DIR variable (instead of detecting the path of installation, I wrote it directly) so the program still finds the python scripts.

The default value of the -r option is not changed, I can't see why.

System info:

NAME="Ubuntu"
VERSION="20.04.4 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04.4 LTS"
VERSION_ID="20.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal
bheimbu commented 1 year ago

Hi there,

I got the same error. I've downloaded the nt database from here https://benlangmead.github.io/aws-indexes/k2, but the file k2_nt_20230502.tar.gz does not include database150mers.kmer_distrib. Do I have to generate this file by myself?

Cheers Bastian