Skip to content

Commit

Permalink
Bugfix to DeepVariant docker command
Browse files Browse the repository at this point in the history
  • Loading branch information
bbimber committed Jan 22, 2024
1 parent 207b83e commit c522d20
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,9 @@ private File ensureLocalCopy(File input, File workingDirectory, PipelineOutputTr
public void execute(File inputBam, File refFasta, File outputGvcf, PipelineOutputTracker tracker, String binVersion, List<String> extraArgs) throws PipelineJobException
{
File workDir = outputGvcf.getParentFile();
File outputVcf = new File(outputGvcf.getPath().replaceAll(".g.vcf", ".vcf"));
tracker.addIntermediateFile(outputVcf);
tracker.addIntermediateFile(new File(outputVcf.getPath() + ".tbi"));

File inputBamLocal = ensureLocalCopy(inputBam, workDir, tracker);
ensureLocalCopy(SequenceUtil.getExpectedIndex(inputBam), workDir, tracker);
Expand All @@ -221,6 +224,7 @@ public void execute(File inputBam, File refFasta, File outputGvcf, PipelineOutpu
bashArgs.add("--ref=/work/" + refFastaLocal.getName());
bashArgs.add("--reads=/work/" + inputBamLocal.getName());
bashArgs.add("--output_gvcf=/work/" + outputGvcf.getName());
bashArgs.add("--output_vcf=/work/" + outputVcf.getName());
Integer maxThreads = SequencePipelineService.get().getMaxThreads(getLogger());
if (maxThreads != null)
{
Expand Down

0 comments on commit c522d20

Please sign in to comment.