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 parameters and random terms for local module DREAM_DIFFERENTIAL #416

Merged
merged 13 commits into from
Jan 7, 2025

Conversation

alanmmobbs93
Copy link

@alanmmobbs93 alanmmobbs93 commented Dec 31, 2024

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/differentialabundance 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).

Changed

  • Add parameters to control dream(), variancePartition::eBayes(), and variancePartition::topTable() functions within DREAM_DIFFERENTIAL module.
  • Add blocking factors as random effects to the formula.

Fixed

  • Fix bug with when getting blocking factors from the meta array.

Perspectives

  • Greate complex contrasts from yml file.

@nf-core-bot
Copy link
Member

Warning

Newer version of the nf-core template is available.

Your pipeline is using an old version of the nf-core template: 3.0.2.
Please update your pipeline to the latest version.

For more documentation on how to update your pipeline, please see the nf-core documentation and Synchronisation documentation.

Copy link

github-actions bot commented Dec 31, 2024

nf-core pipelines lint overall result: Passed ✅ ⚠️

Posted for pipeline commit 0436b97

+| ✅ 310 tests passed       |+
#| ❔   6 tests were ignored |#
!| ❗   4 tests had warnings |!

❗ Test warnings:

  • pipeline_todos - TODO string in main.nf: Optionally add in-text citation tools to this list.
  • pipeline_todos - TODO string in main.nf: Optionally add bibliographic entries to this list.
  • pipeline_todos - TODO string in main.nf: Only uncomment below if logic in toolCitationText/toolBibliographyText has been filled!
  • pipeline_todos - TODO string in base.config: Check the defaults for all processes

❔ Tests ignored:

✅ Tests passed:

Run details

  • nf-core/tools version 3.0.2
  • Run at 2025-01-07 18:15:06

@alanmmobbs93 alanmmobbs93 marked this pull request as ready for review December 31, 2024 23:15
################################################
################################################
## PARSE PARAMETERS FROM NEXTFLOW ##
################################################
################################################
library(optparse)
cat("Parsing arguments\n")

# Define the full list of options
option_list <- list(

Choose a reason for hiding this comment

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

These three options seem to be missing:
stdev.coef.lim
winsor.tail.p
p.value

Copy link
Author

@alanmmobbs93 alanmmobbs93 Jan 6, 2025

Choose a reason for hiding this comment

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

@nschcolnicov Thanks! They are, but with the dots replaced by underscores. Did you find the parameters as you wrote them somewhere else?

Choose a reason for hiding this comment

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

Ahh I see, I saw them written that way in the modules.config:
i.e:

"--p.value ${params.limma_p_value}",

Let me know if I'm making a mistake

Copy link

@nschcolnicov nschcolnicov left a comment

Choose a reason for hiding this comment

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

Please update the docs/usage.md and docs/output.md

modules/local/dream/differential/main.nf Show resolved Hide resolved
docs/usage.md Outdated Show resolved Hide resolved
@alanmmobbs93 alanmmobbs93 requested a review from atrigila January 7, 2025 13:51
Copy link

@atrigila atrigila left a comment

Choose a reason for hiding this comment

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

Makes sense to me from the module's perspective but I am not 100% familiar with the pipeline and method, so we can wait for Nico's feedback as well :)

Copy link

@nschcolnicov nschcolnicov left a comment

Choose a reason for hiding this comment

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

Thanks for addressing the comments!

@alanmmobbs93 alanmmobbs93 merged commit 98f5596 into nf-core:dev_tmp Jan 7, 2025
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.

4 participants