-
Notifications
You must be signed in to change notification settings - Fork 911
PRELOADKRAKENUNIQ: Minor fix following #8397 #8483
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
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
params.krakenuniq_ram_chunk_size. Pass ram_chunk_size to database preload call and each classify call.
Krakenuniq command-line option `--preload-size` is non-mandatory. When it is required, it should be passed in `ext.args`. Also, remove the associated process input, `ram_chunk_size`.
When `--preload-size` option is passed in `ext.args`, preloading the database is not necessary and may unnecessarily consume memory.
Remove input `ram_chunk_size`. Pass `--preload-size $ram_chunk_size` in `ext.args` to load database in chunks. Database will be loaded into memory prior to classification if and only if option `--preload-size` is not present in `ext.args`.
16 tasks
jfy133
approved these changes
May 16, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @muniheart
11 tasks
famosab
pushed a commit
to famosab/modules
that referenced
this pull request
Jun 3, 2025
* Pass task.ext.args last to give them precedence over params.krakenuniq_ram_chunk_size. Pass ram_chunk_size to database preload call and each classify call. * Remove krakenuniq command-line option `--preload-size`. Krakenuniq command-line option `--preload-size` is non-mandatory. When it is required, it should be passed in `ext.args`. Also, remove the associated process input, `ram_chunk_size`. * Preload database if and only if option `--preload-size` is not present. When `--preload-size` option is passed in `ext.args`, preloading the database is not necessary and may unnecessarily consume memory. * Fix bug in database preloading. Remove input `ram_chunk_size`. Remove input `ram_chunk_size`. Pass `--preload-size $ram_chunk_size` in `ext.args` to load database in chunks. Database will be loaded into memory prior to classification if and only if option `--preload-size` is not present in `ext.args`. * Reference `preload_cmd` in BASH script instead of concatenating scripts. * Use environment variable to control preloading of database. * Don't export variable. * Restructure preload insertion * Add test that preload works * Fix logic * Fix logic in stub block. --------- Co-authored-by: James A. Fellows Yates <jfy133@gmail.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
PR checklist
versions.yml
file.label
nf-core modules test <MODULE> --profile docker
nf-core modules test <MODULE> --profile singularity
nf-core modules test <MODULE> --profile conda
nf-core subworkflows test <SUBWORKFLOW> --profile docker
nf-core subworkflows test <SUBWORKFLOW> --profile singularity
nf-core subworkflows test <SUBWORKFLOW> --profile conda
This PR fixes minor problems in the stub block,
preload_cmd
definition:script
block.echo
.