Skip to content

Commit

Permalink
Make HaplotypeCaller reblocking optional
Browse files Browse the repository at this point in the history
  • Loading branch information
bbimber committed Jul 25, 2024
1 parent 84e5bd3 commit 1abae01
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,8 @@ public void processFilesRemote(List<SequenceOutputFile> inputFiles, JobContext c
List<String> args = new ArrayList<>();
args.addAll(getClientCommandArgs(params));

wrapper.execute(so.getFile(), referenceGenome.getWorkingFastaFile(), outputFile, args);
boolean doReblock = params.optBoolean("doReblock", true);
wrapper.execute(so.getFile(), referenceGenome.getWorkingFastaFile(), outputFile, args, doReblock);

action.addOutput(outputFile, "gVCF File", false);
if (idxFile.exists())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,10 @@ public static List<ToolParameterDescriptor> getToolDescriptors()
ToolParameterDescriptor.createCommandLineParam(CommandLineParam.createSwitch("--dont-use-soft-clipped-bases"), "dontUseSoftClippedBases", "Don't Use Soft Clipped Bases", "If specified, we will not analyze soft clipped bases in the reads", "checkbox", null, false),
ToolParameterDescriptor.createCommandLineParam(CommandLineParam.createSwitch("--max-alternate-alleles"), "maxAlternateAlleles", "Max Alternate Alleles", "Passed to --max-alternate-alleles", "ldk-integerfield", new JSONObject(){{
put("minValue", 0);
}}, 6)
}}, 6),
ToolParameterDescriptor.create("doReblock", "Do Reblock", "If checked, this will run Reblock GVCFs", "checkbox", new JSONObject(){{
put("checked", true);
}}, true)
);
}

Expand All @@ -72,7 +75,8 @@ public Output performAnalysisPerSampleRemote(Readset rs, File inputBam, Referenc
List<String> args = new ArrayList<>();
args.addAll(getClientCommandArgs());

getWrapper().execute(inputBam, referenceGenome.getWorkingFastaFile(), outputFile, args);
boolean doReblock = getProvider().getParameterByName("doReblock").extractValue(getPipelineCtx().getJob(), getProvider(), getStepIdx(), Boolean.class, true);
getWrapper().execute(inputBam, referenceGenome.getWorkingFastaFile(), outputFile, args, doReblock);

output.addOutput(outputFile, "gVCF File");
output.addSequenceOutput(outputFile, outputFile.getName(), "gVCF File", rs.getReadsetId(), null, referenceGenome.getGenomeId(), "GATK Version: " + getWrapper().getVersionString());
Expand Down

0 comments on commit 1abae01

Please sign in to comment.