Bracken
Bracken copied to clipboard
Kraken2 classification errors
I am using Kraken2 for classification, but I get some errors: would you mind helping me out. Thank you very much.
The code:KRAKEN_DB="/home/lbhuang/ref/kraken/ABFPV/"
#note ABFPV is a database built using kraken2 just has three files after clean step:hash.k2d: Contains the minimizer to taxon mappingsopts.k2d: Contains information about the options used to build the databasetaxo.k2d: Contains taxonomy information used to build the databasecd /home/lbhuang/Moore/results/trimmed/
for i in *_R1_trimmed.fastq.gz
do
filename=$(basename "$i") #do not add \ after this#
fname="${filename%_R1_trimmed.fastq.gz}" #do not add \ after this#
kraken2 --db ${KRAKEN_DB}
--confidence 0.01
--threads 32
--use-names
--use-mpa-style
--output /home/lbhuang/Moore/results/K2/k2_outputs/${fname}_output.txt
--report /home/lbhuang/Moore/results/K2/k2_reports/${fname}_report.txt
--paired $fname_R1_trimmed.fastq.gz $fname_R2_trimmed.fastq.gz
done
What errors are you getting? Also if you have a kraken2 issue, please use the kraken2 github account