Skip to content

Commit b5d7698

Browse files
committed
Improve behavior on restart of single-cell processing jobs
1 parent d37d6fa commit b5d7698

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

singlecell/resources/chunks/Functions.R

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,9 @@ printName <- function(datasetId) {
6161
}
6262

6363
savedFiles <- data.frame(datasetId = character(), datasetName = character(), filename = character(), outputFileId = character(), readsetId = character())
64-
write.table(savedFiles, file = 'savedSeuratObjects.txt', quote = FALSE, sep = '\t', row.names = FALSE, col.names = FALSE)
64+
if (file.exists('/work/savedSeuratObjects.txt')) {
65+
unlink('/work/savedSeuratObjects.txt')
66+
}
6567

6668
saveData <- function(seuratObj, datasetId) {
6769
print(paste0('Saving dataset: ', datasetId))

0 commit comments

Comments
 (0)