Skip to content

Commit 85e9156

Browse files
committed
Support INFO logging for pbsv
1 parent afb61ad commit 85e9156

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

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

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
import org.labkey.api.sequenceanalysis.SequenceAnalysisService;
1010
import org.labkey.api.sequenceanalysis.SequenceOutputFile;
1111
import org.labkey.api.sequenceanalysis.pipeline.AbstractParameterizedOutputHandler;
12+
import org.labkey.api.sequenceanalysis.pipeline.CommandLineParam;
1213
import org.labkey.api.sequenceanalysis.pipeline.ReferenceGenome;
1314
import org.labkey.api.sequenceanalysis.pipeline.SequenceAnalysisJobSupport;
1415
import org.labkey.api.sequenceanalysis.pipeline.SequenceOutputHandler;
@@ -36,6 +37,10 @@ public PbsvJointCallingHandler()
3637
put("allowBlank", false);
3738
put("doNotIncludeInTemplates", true);
3839
}}, null),
40+
ToolParameterDescriptor.createCommandLineParam(CommandLineParam.create("--log-level"), "logLevel", "Log Level", "Controls logging", "ldk-simplecombo", new JSONObject(){{
41+
put("storeValues", "DEBUG;INFO;WARN");
42+
put("multiSelect", false);
43+
}}, "INFO"),
3944
ToolParameterDescriptor.create("doCopyLocal", "Copy Inputs Locally", "If checked, the input file(s) willbe copied to the job working directory.", "checkbox", new JSONObject(){{
4045
put("checked", true);
4146
}}, true)
@@ -66,7 +71,7 @@ public SequenceOutputProcessor getProcessor()
6671
return new Processor();
6772
}
6873

69-
public static class Processor implements SequenceOutputProcessor
74+
public class Processor implements SequenceOutputProcessor
7075
{
7176
@Override
7277
public void processFilesOnWebserver(PipelineJob job, SequenceAnalysisJobSupport support, List<SequenceOutputFile> inputFiles, JSONObject params, File outputDir, List<RecordedAction> actions, List<SequenceOutputFile> outputsToCreate) throws UnsupportedOperationException, PipelineJobException
@@ -122,6 +127,8 @@ public void processFilesRemote(List<SequenceOutputFile> inputFiles, JobContext c
122127
args.add(String.valueOf(maxThreads));
123128
}
124129

130+
args.addAll(getClientCommandArgs(ctx.getParams()));
131+
125132
ReferenceGenome genome = ctx.getSequenceSupport().getCachedGenomes().iterator().next();
126133
args.add(genome.getWorkingFastaFile().getPath());
127134

0 commit comments

Comments
 (0)