Skip to content

Commit

Permalink
Add memory argument to nimble
Browse files Browse the repository at this point in the history
  • Loading branch information
bbimber committed Dec 20, 2023
1 parent abfa28d commit 6382513
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions singlecell/src/org/labkey/singlecell/run/NimbleHelper.java
Original file line number Diff line number Diff line change
Expand Up @@ -451,6 +451,13 @@ private Map<NimbleGenome, File> doAlignment(List<NimbleGenome> genomes, List<Fil
alignArgs.add("--input");
alignArgs.add("/work/" + localBam.getName());

Integer maxRam = SequencePipelineService.get().getMaxRam();
if (maxRam != null)
{
alignArgs.add("-m");
alignArgs.add(maxRam + "000"); // in MB
}

boolean dockerRan = runUsingDocker(alignArgs, output, "align.all");
for (NimbleGenome genome : genomes)
{
Expand Down

0 comments on commit 6382513

Please sign in to comment.