Skip to content

Commit 9d7c18c

Browse files
committed
Support native-pair-hmm-threads for HaplotypeCaller
1 parent bef32e4 commit 9d7c18c

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

SequenceAnalysis/src/org/labkey/sequenceanalysis/run/util/HaplotypeCallerWrapper.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import org.apache.logging.log4j.Logger;
55
import org.labkey.api.pipeline.PipelineJobException;
66
import org.labkey.api.sequenceanalysis.pipeline.SamtoolsIndexer;
7+
import org.labkey.api.sequenceanalysis.pipeline.SequencePipelineService;
78
import org.labkey.api.sequenceanalysis.run.AbstractGatk4Wrapper;
89
import org.labkey.sequenceanalysis.pipeline.ReblockGvcfHandler;
910
import org.labkey.sequenceanalysis.util.SequenceUtil;
@@ -58,6 +59,13 @@ public void execute(File inputBamOrCram, File referenceFasta, File outputFile, L
5859
args.addAll(options);
5960
}
6061

62+
Integer maxThreads = SequencePipelineService.get().getMaxThreads(getLogger());
63+
if (maxThreads != null)
64+
{
65+
args.add("--native-pair-hmm-threads");
66+
args.add(maxThreads.toString());
67+
}
68+
6169
args.add("-ERC");
6270
args.add("GVCF");
6371

0 commit comments

Comments
 (0)