Skip to content

Commit a4185d6

Browse files
committed
More accurate error
1 parent e05e484 commit a4185d6

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

singlecell/src/org/labkey/singlecell/pipeline/singlecell/CheckExpectations.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,15 @@ protected Chunk createParamChunk(SequenceOutputHandler.JobContext ctx, List<Seur
7272

7373
for (SeuratObjectWrapper so : inputObjects)
7474
{
75+
if (so.getSequenceOutputFile().getReadset() == null)
76+
{
77+
throw new PipelineJobException("Unable to find readset for outputfile: " + so.getSequenceOutputFileId() + ". This set requires single-dataset inputs. Removing this step may be a solution.");
78+
}
79+
7580
Readset parentReadset = ctx.getSequenceSupport().getCachedReadset(so.getSequenceOutputFile().getReadset());
7681
if (parentReadset == null)
7782
{
78-
throw new PipelineJobException("Unable to find readset for outputfile: " + so.getSequenceOutputFileId());
83+
throw new PipelineJobException("Unable to find readset for outputfile: " + so.getSequenceOutputFileId() + ". This set requires single-dataset inputs. Removing this step may be a solution.");
7984
}
8085

8186
Set<String> htosPerReadset = CellHashingServiceImpl.get().getHtosForParentReadset(parentReadset.getReadsetId(), ctx.getSourceDirectory(), ctx.getSequenceSupport(), false);

0 commit comments

Comments
 (0)