Skip to content

Commit 187dd75

Browse files
committed
Debug singleR dual output issue
1 parent ce1cb10 commit 187dd75

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

singlecell/api-src/org/labkey/api/singlecell/pipeline/AbstractSingleCellPipelineStep.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,13 @@ public Output execute(SequenceOutputHandler.JobContext ctx, List<SeuratObjectWra
4646
{
4747
SingleCellOutput output = new SingleCellOutput();
4848

49+
File tracker = new File(ctx.getOutputDir(), "savedSeuratObjects.txt");
50+
if (tracker.exists())
51+
{
52+
ctx.getLogger().debug("deleting pre-existing file: " + tracker.getName());
53+
tracker.delete();
54+
}
55+
4956
File rmd = createRmd(output, ctx, inputObjects, outputPrefix);
5057
if (hasCompleted())
5158
{
@@ -74,7 +81,6 @@ public Output execute(SequenceOutputHandler.JobContext ctx, List<SeuratObjectWra
7481
output.setHtmlFile(htmlFile);
7582

7683
List<SeuratObjectWrapper> outputs = new ArrayList<>();
77-
File tracker = new File(ctx.getOutputDir(), "savedSeuratObjects.txt");
7884
if (!tracker.exists())
7985
{
8086
throw new PipelineJobException("File not found: " + tracker.getPath());

0 commit comments

Comments
 (0)