Skip to content

Commit 65fac23

Browse files
committed
Preemptive gc() for all seurat
1 parent 522f992 commit 65fac23

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

singlecell/resources/chunks/Functions.R

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,6 @@ print('Updating future.globals.maxSize')
2525
options(future.globals.maxSize = Inf)
2626

2727
print(paste0('R memory: ', memory.limit()))
28-
print(paste0('R_MAX_VSIZE: ', Sys.getenv('R_MAX_VSIZE')))
28+
print(paste0('R_MAX_VSIZE: ', Sys.getenv('R_MAX_VSIZE')))
29+
30+
options('Seurat.memsafe' = TRUE)

singlecell/resources/chunks/NormalizeAndScale.R

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
for (datasetId in names(seuratObjects)) {
2-
options('Seurat.memsafe' = TRUE)
3-
42
# Preemptively cleanup:
53
seuratObj <- seuratObjects[[datasetId]]
64
seuratObjects[[datasetId]] <- NULL

0 commit comments

Comments
 (0)