-
Notifications
You must be signed in to change notification settings - Fork 870
Add formula based contrasts to deseq2
#8569
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
I am not sure why only the conda test is failing even after setting seed. Any ideas how to move forward? |
It's probably just floating point differences (IIRC there are rounding controls somewhere to help). If you can, run with Docker and conda and compare the files to be sure. |
@@ -112,7 +125,8 @@ opt <- list( | |||
cores = 1, | |||
vs_blind = TRUE, | |||
vst_nsub = 1000, | |||
round_digits = NULL | |||
round_digits = NULL, | |||
seed = 1 |
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.
I remember @pinin4fjords had a strong opinion on not setting a seed unless explicitly specified.
Can this default to NULL instead, and the set.seed
below is only triggered if the seed is not NULL?
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.
Yes, I will disagree strongly with folks who set seeds by default. The reason is that it gives unrealistic impressions of reproducibility. It's only valid in testing scenarios IMO
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.
Yes this had to be added for testing purposes only but I agree we can set this to NULL and then pass the arg in that test case.
@@ -281,22 +305,30 @@ if ((is_valid_string(opt\$exclude_samples_col)) && (is_valid_string(opt\$exclude | |||
# Now specify the model. Use cell-means style so we can be explicit with the | |||
# contrasts | |||
|
|||
model <- '~ 0' | |||
if (is_valid_string(opt\$formula)) { |
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.
pls fix indentation
) | ||
) | ||
} | ||
} else { | ||
comp.results <- |
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.
pls fix indentation / consider autoformatting with air
/styler
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.
I have the settings json file with
"[r]": {
"editor.formatOnSave": true
}
but it doesn't seem to work, neither running air format .
due to Failed to parse due to syntax errors.
which stems from all opt$
having the backlash opt\$
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.
ah, I see. That's correct, both formatters will only work on parsable syntax :/
…into formula_deseq2
nf-core/differentialabundance#459
Draft POC / work in progress
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