-
Notifications
You must be signed in to change notification settings - Fork 36
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
move pathway related logic out of differential and correlation subworkflows #318
base: dev-ratio
Are you sure you want to change the base?
Conversation
|
// 2) clean up meta data by removing tool arguments and adding pathway name | ||
return ch_results | ||
.combine(ch_tools_args) | ||
.filter{ meta, data, pathway, arg_map -> meta.subMap(arg_map.keySet()) == arg_map } |
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.
if meta has some more elements than 'diff_method' and 'args_diff' (eg. data id, etc), would this matching work?
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, the additional elements are ignored, because the match is only done on the submap that contains 'diff_method' and 'args_diff' (or 'enr_method' and 'args_enr', etc)
// TODO: add ch_gm when provided by user, etc. | ||
|
||
main: | ||
|
||
// initialize empty results channels | ||
ch_enriched = Channel.empty() | ||
ch_gmt = Channel.empty() | ||
|
||
ch_adjacency |
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.
ch_adjacency can only used for GREA, no need to branch for GREA
|
||
// ---------------------------------------------------- | ||
// Construct gene set database | ||
// ---------------------------------------------------- | ||
|
||
// TODO this should be optional, only run when there is no gene set data provided by user | ||
|
||
// empty counts channel of ch_adjacency is empty to skip unnecessary MYGENE computations |
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.
MYGENE is always needed as far as the user does not provide a gmt file, and that a enrichment module is called
PR checklist
nf-core lint
).nf-test test main.nf.test -profile test,docker
).nextflow run . -profile debug,test,docker --outdir <OUTDIR>
).docs/usage.md
is updated.docs/output.md
is updated.CHANGELOG.md
is updated.README.md
is updated (including new tool citations and authors/contributors).