Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kraken breaks with missing output if 0 sequences #897

Closed
5 of 6 tasks
alexandregilardet opened this issue Jul 1, 2022 · 3 comments · Fixed by #898
Closed
5 of 6 tasks

Kraken breaks with missing output if 0 sequences #897

alexandregilardet opened this issue Jul 1, 2022 · 3 comments · Fixed by #898
Labels
bug Something isn't working edge-case

Comments

@alexandregilardet
Copy link
Contributor

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:

  • The command used to run the pipeline
  • The .nextflow.log file
  • The exact error

System

  • Hardware: HPC
  • Executor: slurm
  • OS: macOS
  • Version

Nextflow Installation

  • Version: 20.07.1

Container engine

  • Engine: Singularity
  • version: 3.4.2
  • Image tag: 2.3.3

Additional context

@jfy133
Copy link
Member

jfy133 commented Jul 1, 2022

@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
Copy link
Contributor Author

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

@jfy133
Copy link
Member

jfy133 commented Jul 8, 2022

Will be in the next patch release :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working edge-case
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants