-
Notifications
You must be signed in to change notification settings - Fork 719
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
Make --outdir mandatory, tin.py opt-in and fix #750 #771
Conversation
|
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 would un-nest the if's but the decision is yours.
conf/modules.config
Outdated
], | ||
[ | ||
path: { "${params.outdir}/${params.aligner}/rseqc/junction_annotation/rscript" }, | ||
if ('bam_stat' in rseqc_modules) { |
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 ('bam_stat' in rseqc_modules) { | |
if (!params.skip_rseqc && 'bam_stat' in rseqc_modules) { |
Perhaps combine this with above? I prefer anything we can do to get rid of these nested if's.
Also I'm realizing it's harder to review, because it's easy to mistake which level of nesting you're in.
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.
Changed in 3016c0b
Can you double-check it looks good for me please?
We really need to find a way to avoid this logic duplication....I will try and speak to our very own Yoda.
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.
The logic duplication can be avoided by a pipeline rewrite. The alternative is to use channel branching and ternary operators to select the correct input channels, along channel mixing and the when
. It's not a simple change though.
But it would be nicer to still be able to put process invocations in if
's. Maybe that's not what the data flow model was intended for though. 🤷🏽 Most people writing these workflows come from training using R or Python or what have you, and are not used to this data flow model.
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.
LGTM.
--outdir
a mandatory parameter