Skip to content

Commit bd7a366

Browse files
committed
Fix hashing validation
1 parent 6b42584 commit bd7a366

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

singlecell/src/org/labkey/singlecell/CellHashingServiceImpl.java

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -333,12 +333,16 @@ else if (distinctHTOs.size() == 1)
333333
}
334334
}
335335

336-
if (uniqueHashtagGroups.isEmpty())
336+
if (!distinctHTOs.isEmpty() && uniqueHashtagGroups.isEmpty())
337337
{
338+
338339
throw new PipelineJobException("No hashing groups found!");
339340
}
340341

341-
writeAllHashingBarcodes(uniqueHashtagGroups, job.getUser(), job.getContainer(), sourceDir);
342+
if (!uniqueHashtagGroups.isEmpty())
343+
{
344+
writeAllHashingBarcodes(uniqueHashtagGroups, job.getUser(), job.getContainer(), sourceDir);
345+
}
342346
}
343347
catch (IOException e)
344348
{

0 commit comments

Comments
 (0)