Skip to content

Commit 1998182

Browse files
committed
Update defaults for velocyto/samtools threads
1 parent cf0e0ec commit 1998182

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

singlecell/src/org/labkey/singlecell/run/VelocytoAlignmentStep.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,10 +169,11 @@ public File runVelocytoFor10x(File localBam, File gtf, File outputFolder, @Nulla
169169
args.add(barcodeCSV.getPath());
170170

171171
Integer threads = SequencePipelineService.get().getMaxThreads(getLogger());
172-
if (threads != null && threads > 1)
172+
if (threads != null && threads >= 4)
173173
{
174174
args.add("--samtools-threads");
175-
args.add(String.valueOf(threads - 1));
175+
// Cap this at 4 due to memory
176+
args.add(String.valueOf(Math.min(threads - 2, 4)));
176177
}
177178

178179
if (samtoolsMem != null)

0 commit comments

Comments
 (0)