-
Notifications
You must be signed in to change notification settings - Fork 857
feat: add formula and contrasts to limma #8429
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
base: master
Are you sure you want to change the base?
Conversation
if (!is.null(opt\$formula)) { | ||
model <- opt\$formula | ||
} else { | ||
|
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.
Indents below please?
@@ -393,6 +415,9 @@ fit <- do.call(lmFit, lmfit_args) | |||
# Contrasts bit | |||
|
|||
# Create the contrast string for the specified comparison | |||
if (!is.null(opt\$contrast_string)) { | |||
contrast_string <- opt\$contrast_string | |||
} else { |
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.
Again, indents for conditional
file(params.modules_testdata_base_path + "genomics/homo_sapiens/array_expression/GSE38751.csv", checkIfExists: true) | ||
] | ||
) | ||
input[0] = Channel.of(['id': 'diagnosis_normal_uremia', 'variable': 'diagnosis', 'reference': 'normal', 'target': 'uremia', 'formula': '~ diagnosis', 'comparison': 'diagnosis.uremia']) |
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.
Should this test maybe have null target etc to ensure they're not being used?
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.
Indeed, this is a very good observation that led me to realise a few things about the current design.
@@ -72,6 +72,130 @@ nextflow_process { | |||
) | |||
} | |||
|
|||
} | |||
|
|||
test("test_limma_differential - null formula and null complex contrasts") { |
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.
Needs an indent fix. Sorry if I'm not seeing it, but isn't this the same as one of the tests above?
nf-core/differentialabundance#458
PR checklist
Closes #XXX
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