-
Notifications
You must be signed in to change notification settings - Fork 859
Update RTN/TNI module #8500
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?
Update RTN/TNI module #8500
Conversation
Signed-off-by: Marcel Ribeiro-Dantas <mribeirodantas@seqera.io>
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.
Hi! I had a look at the PR and left a couple of comments…
@@ -0,0 +1,50 @@ | |||
process RTN_TNA { | |||
debug true |
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.
You probably need to remove this?
|
||
input: | ||
tuple val(meta), path(tni_object) | ||
tuple val(meta), path(degs) |
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 think that the best practice is to give a different name such as meta2
, meta3
, etc. because you can't guarantee that all metadata channels will be identical.
writeLines( | ||
c( | ||
'"${task.process}":', | ||
paste(' bioconductor-rtn:', rtn.version) |
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.
How about also outputting R's version?
def DEGs = file("${workDir}/degs.tsv") | ||
DEGs.text = content | ||
|
||
run("RTN_TNI") { |
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.
You can also save the output of the rtn/tni
package on https://github.com/nf-core/test-datasets/, to avoid running it twice (since it is already ran in its own test suite).
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.
Just add config './nextflow.config
next to e.g. the tags or just inside the when block next to the e.g. options
{ assert file(process.out.gsea1_plot[0][1]).exists() }, | ||
{ assert file(process.out.gsea2_object[0][1]).exists() }, | ||
{ assert file(process.out.gsea2_plot[0][1]).exists() }, | ||
{ assert file(process.out.versions[0]).exists() } |
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.
For this one and the other outputs that have no randomness inside, can you make stronger tests such as assert snapshot(process.out.versions).match()
?
################################################ | ||
################################################ | ||
|
||
tni_object <- readRDS('tni.rds') |
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.
What if tni_object
has a different name?
@@ -0,0 +1,5 @@ | |||
process { |
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 do not see this file (nor nextflow.config3
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.
Instead of using the nonstandard config{2,3,4}
notation, you could instead use Mahesh's clever system of params: https://nf-co.re/docs/guidelines/components/modules#configuration-of-extargs-in-tests
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.
Basically what Charles said, but I gave a couple of extra suggestions to solve those points
@@ -1,5 +1,5 @@ | |||
process { | |||
withName: RTN_TNI { | |||
ext.args = '--tfs ENSG00000125798,ENSG00000125816' | |||
ext.args = '--n_permutations 12' |
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.
See comment above
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