Skip to content

Commit

Permalink
Set workDir for DeepVariant/GLNexus
Browse files Browse the repository at this point in the history
  • Loading branch information
bbimber committed Feb 1, 2024
1 parent 26471ac commit fcc8b13
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,6 @@ public void execute(List<File> inputGvcfs, File outputVcf, PipelineOutputTracker

// Command will fail if this exists:
File dbDir = new File (outputVcf.getParentFile(), "GLnexus.DB");

if (dbDir.exists())
{
FileUtils.deleteDirectory(dbDir);
Expand All @@ -294,6 +293,7 @@ public void execute(List<File> inputGvcfs, File outputVcf, PipelineOutputTracker
throw new PipelineJobException(e);
}

setWorkingDir(workDir);
execute(Arrays.asList("/bin/bash", localBashScript.getPath()));

if (!outputVcf.exists())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,7 @@ public void execute(File inputBam, File refFasta, File outputGvcf, PipelineOutpu
throw new PipelineJobException(e);
}

setWorkingDir(workDir);
execute(Arrays.asList("/bin/bash", localBashScript.getPath()));

if (!outputGvcf.exists())
Expand Down

0 comments on commit fcc8b13

Please sign in to comment.