Skip to content

Commit d555d96

Browse files
committed
Improve behavior for job resume for CellRangerVDJ
1 parent ded6e3a commit d555d96

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

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

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -606,8 +606,17 @@ else if (token.endsWith("d"))
606606
getPipelineCtx().getLogger().info("\tTotal TRB->TRD changes: " + totalD);
607607
}
608608

609-
//TODO: ultimately remove this and delete file
610-
FileUtils.moveFile(csv, new File(csv.getPath() + ".orig"));
609+
File orig = new File(csv.getPath() + ".orig");
610+
if (orig.exists())
611+
{
612+
getPipelineCtx().getLogger().debug("Original copy of CSV exists, will not copy over it");
613+
csv.delete();
614+
}
615+
else
616+
{
617+
FileUtils.moveFile(csv, new File(csv.getPath() + ".orig"));
618+
}
619+
611620
FileUtils.moveFile(csv2, csv);
612621
}
613622
}

0 commit comments

Comments
 (0)