Skip to content

Commit

Permalink
Reduce log level when BAM is discarded
Browse files Browse the repository at this point in the history
  • Loading branch information
bbimber committed Aug 26, 2024
1 parent 93ec686 commit 0365054
Showing 1 changed file with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -380,8 +380,15 @@ private void processAnalyses(AnalysisModelImpl analysisModel, int runId, List<Re
File bam = analysisModel.getAlignmentFile() == null ? null : ExperimentService.get().getExpData(analysisModel.getAlignmentFile()).getFile();
if (bam == null)
{
getJob().getLogger().error("unable to find BAM, skipping");
return;
if (discardBam)
{
getJob().getLogger().info("unable to find BAM, skipping");
return;
}
else
{
throw new PipelineJobException("Unable to find BAM");
}
}

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

0 comments on commit 0365054

Please sign in to comment.