+
Skip to content

Conversation

muniheart
Copy link
Contributor

PR checklist

  • [x ] This comment contains a description of changes (with reason).
  • If you've fixed a bug or added code that should be tested, add tests!
  • If you've added a new tool - have you followed the module conventions in the contribution docs
  • If necessary, include test data in your PR.
  • Remove all TODO statements.
  • Emit the versions.yml file.
  • Follow the naming conventions.
  • Follow the parameters requirements.
  • Follow the input/output options guidelines.
  • Add a resource label
  • Use BioConda and BioContainers if possible to fulfil software requirements.
  • Ensure that the test works with either Docker / Singularity. Conda CI tests can be quite flaky:
    • For modules:
      • nf-core modules test <MODULE> --profile docker
      • nf-core modules test <MODULE> --profile singularity
      • nf-core modules test <MODULE> --profile conda
    • For subworkflows:
      • 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:

  • Change logic to match that in script block.
  • Prefix command with echo.

muniheart and others added 15 commits May 5, 2025 16:36
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`.
Copy link
Member

@jfy133 jfy133 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @muniheart

@jfy133 jfy133 added this pull request to the merge queue May 16, 2025
Merged via the queue into nf-core:master with commit 4f6fe89 May 16, 2025
34 checks passed
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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载