Skip to content

Commit d53e456

Browse files
committed
Add check to ensure seurat prototypes submitted to same container as readset
1 parent 94c4345 commit d53e456

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,12 @@ public void init(SequenceOutputHandler.JobContext ctx, List<SequenceOutputFile>
9393
{
9494
throw new PipelineJobException("Expected seurat prototype step to use a single genome");
9595
}
96+
97+
Readset rs = ctx.getSequenceSupport().getCachedReadset(inputFiles.get(0).getReadset());
98+
if (!ctx.getJob().getContainer().getId().equalsIgnoreCase(rs.getContainer()))
99+
{
100+
throw new PipelineJobException("Seurat prototype jobs must be submitted to the same folder as the source readset");
101+
}
96102
}
97103

98104
@Override

0 commit comments

Comments
 (0)