Skip to content

Commit 40c39a7

Browse files
committed
Pass BCFTOOLS_PLUGINS to command line
1 parent c6a0869 commit 40c39a7

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

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

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,16 @@ public VariantProcessingStep.Output processVariants(File inputVCF, File outputDi
103103
options.add("-t");
104104
options.add(StringUtils.join(annotations, ","));
105105

106-
getWrapper().execute(options);
106+
BcftoolsRunner wrapper = getWrapper();
107+
108+
String bcfPluginDir = StringUtils.trimToNull(System.getenv("BCFTOOLS_PLUGINS"));
109+
if (bcfPluginDir != null)
110+
{
111+
getPipelineCtx().getLogger().debug("Setting BCFTOOLS_PLUGINS environment variable: " + bcfPluginDir);
112+
wrapper.addToEnvironment("BCFTOOLS_PLUGINS", bcfPluginDir);
113+
}
114+
115+
wrapper.execute(options);
107116
if (!outputVcf.exists())
108117
{
109118
throw new PipelineJobException("output not found: " + outputVcf);

0 commit comments

Comments
 (0)