-
Notifications
You must be signed in to change notification settings - Fork 597
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 MAF become the output of Funcotator in M2 WDL and multiple transcript fix. #4941
Conversation
LeeTL1220
commented
Jun 22, 2018
•
edited
Loading
edited
- MAF is the output of Funcotator in M2 WDL. Closes When Funcotator is run in the mutect2.wdl, it should output MAF, not VCF (by default) #4935
- Updated mutect2.wdl manually tested locally and manually tested in FireCloud.
- Updated mutect2_nio.wdl manually tested in FireCloud.
- Updated automatic Cromwell WDL tests. Closes Enable running of Funcotator in the M2 WDL tests. #4807
- Empty MAFs will be devoid of variants, not a file of 0 bytes. Closes MAFOutputRenderer produces an empty file when the input VCF has no variants to render. #4937
- Fixed issue where multiple transcripts could be selected in edge cases, even when CANONICAL or BEST_EFFECT was selected. Closes Funcotator can select more than one transcript, even when CANONICAL or BEST_EFFECT is chosen. #4952
Codecov Report
@@ Coverage Diff @@
## master #4941 +/- ##
==============================================
+ Coverage 80.468% 80.47% +0.002%
- Complexity 17852 17856 +4
==============================================
Files 1093 1093
Lines 64295 64302 +7
Branches 10378 10377 -1
==============================================
+ Hits 51737 51744 +7
Misses 8504 8504
Partials 4054 4054
|
d4a9471
to
40341bb
Compare
…tputs have a header that includes custom fields.
9150721
to
5fa68f9
Compare
@davidbenjamin Can you review the WDL and autotest-WDL changes? This has been tested in FireCloud and looks good (minus an issue that I have already filed), though I had to manually review. The Method configuration in FireCloud still uses the GATK jar override for this. Just in case you wanted to run it. Otherwise, we should blank out that parameter. As a reminder, I tested:
Please review both WDL files. @jonn-smith Could you review the rest? I.e. the bug fixes. Apologies that I did not split these into two PRs. |
@davidbenjamin @jonn-smith The test failure is a false alarm. Please review as if the tests were passing. |
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'm satisfied.
scripts/mutect2_wdl/mutect2.wdl
Outdated
String annotation_over_arg = if defined(annotation_overrides) then " --annotation-override " else "" | ||
String filter_funcotations_args = if (filter_funcotations) then " --remove-filtered-variants " else "" | ||
String interval_list_arg = if defined(interval_list) then " -L " else "" | ||
String extra_args_arg = select_first([extra_args, ""]) |
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 the same as just $extra_args
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.
Done
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 mutect2_nio.wdl as well)
scripts/mutect2_wdl/mutect2.wdl
Outdated
String annotation_def_arg = if defined(annotation_defaults) then " --annotation-default " else "" | ||
String annotation_over_arg = if defined(annotation_overrides) then " --annotation-override " else "" | ||
String filter_funcotations_args = if (filter_funcotations) then " --remove-filtered-variants " else "" | ||
String interval_list_arg = if defined(interval_list) then " -L " else "" |
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 accomplishes the same as just ${"-L " intervals}
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.
${"-L " + interval_list}
Done
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 mutect2_nio.wdl as well)
scripts/mutect2_wdl/mutect2.wdl
Outdated
Boolean use_ssd = false | ||
|
||
# This should be updated when a new version of the data sources is released | ||
# TODO: Make this dynamically chosen in the command. |
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 about this TODO?
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 was out of date and has been eliminated in favor of a reasonable default. Also, we will probably remove the FTP download at some point, since it often breaks.
Done
@@ -27,7 +27,7 @@ | |||
*/ | |||
public class CustomMafFuncotationCreator { | |||
|
|||
final static List<String> COUNT_FIELD_NAMES = Arrays.asList( | |||
final public static List<String> COUNT_FIELD_NAMES = Arrays.asList( |
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.
public final
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.
Done
@@ -220,6 +220,10 @@ public MafOutputRenderer(final Path outputFilePath, | |||
|
|||
@Override | |||
public void close() { | |||
if (!hasWrittenHeader) { | |||
final LinkedHashMap<String, String> mafCompliantOutputMap = createMafCompliantOutputMap(Allele.create("AT"), Collections.emptyList()); |
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 is "AT"
?
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.
Put in some clarifying comments.
Done.