Skip to content

Commit fd99e2a

Browse files
committed
Add --memory to deepvariant docker command
1 parent 9419bbf commit fd99e2a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,12 @@ public void execute(File inputBam, File refFasta, File outputGvcf, PipelineOutpu
251251
writer.println("\t-e USERID=$UID \\");
252252
writer.println("\t--entrypoint /bin/bash \\");
253253
writer.println("\t-w /work \\");
254+
Integer maxRam = SequencePipelineService.get().getMaxRam();
255+
if (maxRam != null)
256+
{
257+
writer.println("\t-e SEQUENCEANALYSIS_MAX_RAM=" + maxRam + " \\");
258+
writer.println("\t--memory='" + maxRam + "g' \\");
259+
}
254260
writer.println("\tgoogle/deepvariant:" + binVersion + " \\");
255261
writer.println("\t/work/" + dockerBashScript.getName());
256262
writer.println("EXIT_CODE=$?");

0 commit comments

Comments
 (0)