Skip to content

Commit 0365054

Browse files
committed
Reduce log level when BAM is discarded
1 parent 93ec686 commit 0365054

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

SequenceAnalysis/src/org/labkey/sequenceanalysis/pipeline/SequenceAnalysisTask.java

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -380,8 +380,15 @@ private void processAnalyses(AnalysisModelImpl analysisModel, int runId, List<Re
380380
File bam = analysisModel.getAlignmentFile() == null ? null : ExperimentService.get().getExpData(analysisModel.getAlignmentFile()).getFile();
381381
if (bam == null)
382382
{
383-
getJob().getLogger().error("unable to find BAM, skipping");
384-
return;
383+
if (discardBam)
384+
{
385+
getJob().getLogger().info("unable to find BAM, skipping");
386+
return;
387+
}
388+
else
389+
{
390+
throw new PipelineJobException("Unable to find BAM");
391+
}
385392
}
386393

387394
File refDB = ExperimentService.get().getExpData(analysisModel.getReferenceLibrary()).getFile();

0 commit comments

Comments
 (0)