Skip to content

Commit 5330687

Browse files
committed
Add validation to Cell Ranger steps
1 parent cb345c1 commit 5330687

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

singlecell/src/org/labkey/singlecell/run/CellRangerGexCountStep.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -483,6 +483,10 @@ public void complete(SequenceAnalysisJobSupport support, AnalysisModel model, Co
483483

484484
File outsDir = outputForData.getFile().getParentFile();
485485
Integer dataId = outputForData.getDataId();
486+
if (dataId == null)
487+
{
488+
throw new PipelineJobException("Unable to find dataId for output file");
489+
}
486490

487491
File metrics = new File(outsDir, "metrics_summary.csv");
488492
if (metrics.exists())

singlecell/src/org/labkey/singlecell/run/CellRangerVDJWrapper.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -788,6 +788,10 @@ public void complete(SequenceAnalysisJobSupport support, AnalysisModel model, Co
788788

789789
File outsDir = outputForData.getFile().getParentFile();
790790
Integer dataId = outputForData.getDataId();
791+
if (dataId == null)
792+
{
793+
throw new PipelineJobException("Unable to find dataId for output file");
794+
}
791795

792796
addMetrics(outsDir, model, dataId);
793797
}

0 commit comments

Comments
 (0)