Skip to content

Commit 1f45656

Browse files
committed
Improve nimble resume
1 parent 46bc04a commit 1f45656

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

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

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -529,16 +529,20 @@ public static File runNimbleReport(File alignResultsGz, int genomeId, PipelineSt
529529
reportArgs.add("-i");
530530
reportArgs.add(alignResultsGz.getPath());
531531

532+
String resumeString = "nimble.report." + genomeId;
533+
File doneFile = getNimbleDoneFile(ctx.getWorkingDirectory(), resumeString);
534+
532535
File reportResultsGz = new File(ctx.getWorkingDirectory(), "reportResults." + genomeId + ".txt.gz");
533-
if (reportResultsGz.exists())
536+
if (reportResultsGz.exists() && !doneFile.exists())
534537
{
538+
ctx.getLogger().debug("Deleting existing result file: " + reportResultsGz.getPath());
535539
reportResultsGz.delete();
536540
}
537541

538542
reportArgs.add("-o");
539543
reportArgs.add(reportResultsGz.getPath());
540544

541-
runUsingDocker(reportArgs, output, "nimble.report." + genomeId, ctx);
545+
runUsingDocker(reportArgs, output, resumeString, ctx);
542546

543547
if (!reportResultsGz.exists())
544548
{

0 commit comments

Comments
 (0)