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

Add batch-size option #586

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

nrhorner
Copy link

Hi Derrick,

I am interested in using kraken2 in a real-time server/client application where clients stream data from a single sample to a a long running kraken 2 server. Input sequences are read in via stdin and streamed back to the client, without having to reload the databases between each client connection.

This MR adds a --batch-size option, which forces the use of reader1.LoadBatch(batch_size) instead of reader.LoadBlock() for non-paired-end reads. This makes it easier to keep track of how may samples have been processed by the server and speeds things up quite a bit.

I hope you're able to include it.

Thanks,

Neil

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant