Skip to content

Commit ae1ec6d

Browse files
committed
Update ParagraphStep/docker execution
1 parent 881d11d commit ae1ec6d

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

SequenceAnalysis/api-src/org/labkey/api/sequenceanalysis/run/DockerWrapper.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
import java.io.File;
1212
import java.io.IOException;
1313
import java.io.PrintWriter;
14+
import java.util.Arrays;
1415
import java.util.List;
1516

1617
public class DockerWrapper extends AbstractCommandWrapper
@@ -29,7 +30,7 @@ public void setTmpDir(File tmpDir)
2930
_tmpDir = tmpDir;
3031
}
3132

32-
public void execute(List<String> containerArgs, File workDir, PipelineOutputTracker tracker) throws PipelineJobException
33+
public void executeWithDocker(List<String> containerArgs, File workDir, PipelineOutputTracker tracker) throws PipelineJobException
3334
{
3435
File localBashScript = new File(workDir, "docker.sh");
3536
File dockerBashScript = new File(workDir, "dockerRun.sh");
@@ -77,6 +78,8 @@ public void execute(List<String> containerArgs, File workDir, PipelineOutputTrac
7778
{
7879
throw new PipelineJobException(e);
7980
}
81+
82+
execute(Arrays.asList("/bin/bash", localBashScript.getPath()));
8083
}
8184

8285
public File ensureLocalCopy(File input, File workingDirectory, PipelineOutputTracker output) throws PipelineJobException

SequenceAnalysis/src/org/labkey/sequenceanalysis/run/alignment/ParagraphStep.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ else if (header.getReadGroups().size() > 1)
189189
paragraphArgs.add("--logfile");
190190
paragraphArgs.add(new File("/work/paragraph.log").getPath());
191191

192-
dockerWrapper.execute(paragraphArgs, ctx.getWorkingDirectory());
192+
dockerWrapper.executeWithDocker(paragraphArgs, ctx.getWorkingDirectory(), ctx.getFileManager());
193193

194194
File genotypes = new File(ctx.getWorkingDirectory(), "genotypes.vcf.gz");
195195
if (!genotypes.exists())

0 commit comments

Comments
 (0)