gongx030 / ensemblemerge

0 stars 0 forks source link

Error while running ensemble merge using 'SeuratMerge' #40

Closed dsouz072 closed 2 years ago

dsouz072 commented 2 years ago

Running command:

# integration
params_merge <- new('SeuratMerge', normalize = params_normalize)
x_merged <- Merge(x, params_merge) # x_merged is a Seurat object

Error:


Error in getGlobalsAndPackages(expr, envir = envir, globals = globals): The total size of the 7 globals exported for future expression (‘FUN()’) is 2.35 GiB.. This exceeds the maximum allowed size of 500.00 MiB (option 'future.globals.maxSize'). The three largest globals are ‘object.list’ (2.35 GiB of class ‘list’), ‘anchor.features’ (125.67 KiB of class ‘character’) and ‘FUN’ (35.52 KiB of class ‘function’)
dsouz072 commented 2 years ago

If you run into the above error on Colab while integrating using Seurat, add

options(future.globals.maxSize = 8000 * 1024^2)

This solution is obtained from Seurat Issues