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

Make files selected with random_preanalysis reproducible. #400

Merged
merged 7 commits into from
Aug 10, 2024

Conversation

wfondrie
Copy link
Contributor

@wfondrie wfondrie commented Aug 9, 2024

This PR adds a sorting step to the input channel prior to the random selection of files. It also adds a new parameter to control the random seed.

Fixes #399.

PR checklist

  • 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 pipeline conventions in the contribution docs
  • If necessary, also make a PR on the nf-core/quantms branch on the nf-core/test-datasets repository.
  • Make sure your code lints (nf-core lint).
  • Ensure the test suite passes (nf-test test main.nf.test -profile test,docker).
  • Check for unexpected warnings in debug mode (nextflow run . -profile debug,test,docker --outdir <OUTDIR>).
  • Usage Documentation in docs/usage.md is updated.
  • Output Documentation in docs/output.md is updated.
  • CHANGELOG.md is updated.
  • README.md is updated (including new tool citations and authors/contributors).

Copy link

github-actions bot commented Aug 9, 2024

nf-core lint overall result: Passed ✅ ⚠️

Posted for pipeline commit a69d08f

+| ✅ 293 tests passed       |+
#| ❔   4 tests were ignored |#
!| ❗   1 tests had warnings |!

❗ Test warnings:

  • nfcore_yml - nf-core version not set in .nf-core.yml

❔ Tests ignored:

✅ Tests passed:

Run details

  • nf-core/tools version 2.14.1
  • Run at 2024-08-09 23:13:36

@ypriverol
Copy link
Member

Thanks for this contribution @wfondrie !!!

@ypriverol ypriverol merged commit 70bdb1e into bigbio:dev Aug 10, 2024
16 checks passed
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.

Random subset of files selected for DIANN prenalaysis is irreproducible.
2 participants