Skip to content

Commit

Permalink
Add validation to Cell Ranger steps
Browse files Browse the repository at this point in the history
  • Loading branch information
bbimber committed Aug 26, 2024
1 parent cb345c1 commit 5330687
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -483,6 +483,10 @@ public void complete(SequenceAnalysisJobSupport support, AnalysisModel model, Co

File outsDir = outputForData.getFile().getParentFile();
Integer dataId = outputForData.getDataId();
if (dataId == null)
{
throw new PipelineJobException("Unable to find dataId for output file");
}

File metrics = new File(outsDir, "metrics_summary.csv");
if (metrics.exists())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -788,6 +788,10 @@ public void complete(SequenceAnalysisJobSupport support, AnalysisModel model, Co

File outsDir = outputForData.getFile().getParentFile();
Integer dataId = outputForData.getDataId();
if (dataId == null)
{
throw new PipelineJobException("Unable to find dataId for output file");
}

addMetrics(outsDir, model, dataId);
}
Expand Down

0 comments on commit 5330687

Please sign in to comment.