nf-core / eager

A fully reproducible and state-of-the-art ancient DNA analysis pipeline
https://nf-co.re/eager
MIT License
140 stars 80 forks source link

Kraken breaks with missing output if 0 sequences #897

Closed alexandregilardet closed 2 years ago

alexandregilardet commented 2 years ago

Check Documentation

I have checked the following places for your error:

Description of the bug

When having eg. a negative control, Kraken will break because of a missing output since no sequences were found. No complexity filtering applied. The unmapped FASTQ is basically empty.

Steps to reproduce

Steps to reproduce the behaviour:

nextflow run nf-core/eager -r 2.3.3 -profile production,crick -params-file nf-params.json -c $alexandre/bin/custom.config

Missing output file(s) *.kraken.out expected by process `kraken ...

Loading database information... done. 0 sequences (0.00 Mbp) processed in 0.009s (0.0 Kseq/m, 0.00 Mbp/m). 0 sequences classified (-nan%) 0 sequences unclassified (-nan%)

Expected behaviour

Pipeline shouldn't break because of missing Kraken output.

Log files

Have you provided the following extra information/files:

System

Nextflow Installation

Container engine

Additional context

jfy133 commented 2 years ago

@alexandregilardet could you try with -r kraken2-emptyfastq-fix and see if that works?

TODO: update docuemntation to say you may not always get kraken2 output

alexandregilardet commented 2 years ago

Tested and works, thanks! Sorry didn't spot that fix.

jfy133 commented 2 years ago

Will be in the next patch release :)