Skip to content

Commit fcc8b13

Browse files
committed
Set workDir for DeepVariant/GLNexus
1 parent 26471ac commit fcc8b13

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

SequenceAnalysis/src/org/labkey/sequenceanalysis/analysis/GLNexusHandler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,6 @@ public void execute(List<File> inputGvcfs, File outputVcf, PipelineOutputTracker
283283

284284
// Command will fail if this exists:
285285
File dbDir = new File (outputVcf.getParentFile(), "GLnexus.DB");
286-
287286
if (dbDir.exists())
288287
{
289288
FileUtils.deleteDirectory(dbDir);
@@ -294,6 +293,7 @@ public void execute(List<File> inputGvcfs, File outputVcf, PipelineOutputTracker
294293
throw new PipelineJobException(e);
295294
}
296295

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

299299
if (!outputVcf.exists())

SequenceAnalysis/src/org/labkey/sequenceanalysis/run/analysis/DeepVariantAnalysis.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,7 @@ public void execute(File inputBam, File refFasta, File outputGvcf, PipelineOutpu
284284
throw new PipelineJobException(e);
285285
}
286286

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

289290
if (!outputGvcf.exists())

0 commit comments

Comments
 (0)