Closed rmcolq closed 7 months ago
Hi @rmcolq,
What nextflow workflow are you running? Is it our wf-metagenomics? Not that it matters necessarily, the kraken client shouldn't be failing that assertion. The assertion is a book keeping check that all reads have done a round trip between the client and the server. Either its true that that hasn't happened or there is a bug in the book keeping code itself.
I have never myself seen the assertion fail. Would it be possible for you to share your simulated input files and the database provided to the server?
It isn't wf-metagenomics
it's our own (scylla).
Fails with the PlusPF (massive) and Viral (much smaller) databases downloaded from https://benlangmead.github.io/aws-indexes/k2
Fails both run via docker and run directly with the conda install, and run outside of nextflow.
My file is too big, so going to check if a smaller version still fails
Failing that. Can you reproduce the error outside of the workflow manager using the kraken-client and kraken-server programs directly?
small.fastq.gz This one fails for the following bash command:
#!/bin/bash -euo pipefail
kraken2_client --port 8080 --host-ip localhost --report "Viral.kraken_report.txt" --sequence small.fastq.gz > "Viral.kraken_assignments.tsv"
with the server being generated using the following (local, not docker):
#!/bin/bash -euo pipefail
kraken2_server --max-requests 2 --thread-pool 2 --port 8080 --host-ip localhost --db ./database_dir/
Thanks, I'll take a look.
I've reproduced the error and know what to do to fix it.
This issue should be fixed in v0.1.8. Containers and conda packages should appear shortly.
I've been running kraken2_server/client within a nextflow pipeline and am repeatedly seeing the following error:
I started with 50 (simulated) read files, and of these 18 always fail with the above error, regardless of the amount of memory or the number of threads I give to the server or client process (I've tried with lots of threads and with very restricted threading). Same problem when I've tried a few of the latest conda images (from epi2melabs)
Versions: kraken2-server 0.1.7 h2bc3f7f_0 nanoporetech
Server details: