-
Notifications
You must be signed in to change notification settings - Fork 4
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
small refactor + adding intervals #34
Conversation
versions = versions.mix(GATK4_CREATESEQUENCEDICTIONARY.out.versions) | ||
} | ||
// the whole map -> null should be removed once I managed to make it work properly | ||
BWAMEM1_INDEX( |
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.
This is a really nice way to skip the repeated if statement.
On the other hand this will pollute the output nextflow log with empty processes...
Is it okay for you ?
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.
that's fine for now, I'll deal with this later if it's really an issue, but for now, I just want a code that is cleaner to read
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.
In phaseimpute we also have this issue with branching event, but nothing can be done.
|
||
if (tools && tools.split(',').contains('gffread')) { | ||
if (tools.contains('gffread')) { | ||
GFFREAD(input.gff, []) |
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.
Why didn't you continue with the simplification of the if statements ?
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 testing it out on some processes, I didn't want to modify everything in one go as I just wanted to tackle intervals on this PR.
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.
That does make sense.
Could you open an issue in this case in the repository to have a follow up for standardization ?
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
PR checklist
nf-core pipelines lint
).nextflow run . -profile test,docker --outdir <OUTDIR>
).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).