-
Notifications
You must be signed in to change notification settings - Fork 596
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
Making OB filtering default to true #5019
Conversation
Codecov Report
@@ Coverage Diff @@
## master #5019 +/- ##
================================================
+ Coverage 60.162% 86.335% +26.174%
- Complexity 12772 28501 +15729
================================================
Files 1095 1779 +684
Lines 64616 132167 +67551
Branches 10394 14721 +4327
================================================
+ Hits 38874 114107 +75233
+ Misses 21504 12750 -8754
- Partials 4238 5310 +1072
|
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.
It looks like the default (i.e. neither run_orientation_bias_filter
nor artifact_modes
specified) leads to a faulty command line of -AM [nothing]
in the FilterByOrientationBias
task. Perhaps you could do something like Array[String] artifact_modes_to_use = if defined(artifact_modes) artifact_modes else ["C/T", "G/T"]
.
I am curious why the WDL auto tests did not catch this.. |
@davidbenjamin Back at you.... |
@LeeTL1220 In
whereas the probable bug I foresaw would only occur if these lines were omitted. |
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.
Looks good but a thought on solving #5025 in this PR.
scripts/mutect2_wdl/mutect2.wdl
Outdated
@@ -797,6 +797,9 @@ task FilterByOrientationBias { | |||
File pre_adapter_metrics | |||
Array[String]? artifact_modes | |||
|
|||
# TODO: Do not pass artifact_modes as an empty array []. https://github.com/broadinstitute/gatk/issues/5025 |
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.
Could you solve this via (I didn't test this syntax)
Boolean run_ob_filter = select_first([run_orientation_bias_filter, true]) && length(final_artifact_modes) > 0
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 would solve it in the workflow. Not necessarily the task if used in another workflow.
Done.
Back to @LeeTL1220 |
@davidbenjamin Back to 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.
Looks good.
FilterByOrientationBias
) turned on. Closes Set default to use theFilterByOrientationBias
tool in the WDL #5016FilterByOrientationBias
. Instead the taskFilterByOrientationBias
will not run. Closes M2 WDL will fail FilterByOrientationBias if artifact_modes is defined as empty and run_orientation_bias_filter is true #5025