Skip to content

POC Use of nfcore.utils for R templace#11933

Open
LouisLeNezet wants to merge 6 commits into
nf-core:masterfrom
LouisLeNezet:nfcore_utils
Open

POC Use of nfcore.utils for R templace#11933
LouisLeNezet wants to merge 6 commits into
nf-core:masterfrom
LouisLeNezet:nfcore_utils

Conversation

@LouisLeNezet

Copy link
Copy Markdown
Contributor

PR checklist

This PR is a Proof Of Concept for the use of the dedicated library nfcore.utils to manage input QC and versions creation.

  • 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.
  • Broadcast software version numbers to topic: versions - See version_topics
  • 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

@LouisLeNezet LouisLeNezet self-assigned this Jun 9, 2026
r-data.table: \$(Rscript -e "cat(as.character(packageVersion('data.table')))")
r-janitor: \$(Rscript -e "cat(as.character(packageVersion('janitor')))")
END_VERSIONS
Rscript -e "nfcore.utils::process_end(packages = list('r-data.table' = 'data.table', 'r-janitor' = 'janitor'), task_name = '${task.process}')"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I think the export file name "versions.yml" should also be added as an argument, to make it clearer what happens.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I could do that !
I will need to update the package.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

and instead of process_end it could be called export_versions or so

@LouisLeNezet LouisLeNezet Jun 9, 2026

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

process_end() also create the R_session.log

@LouisLeNezet LouisLeNezet requested a review from mashehu June 10, 2026 15:45
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.

3 participants