FindClusters - if clustering over multiple resolutions
但根据本人实测发现,SCTransform函数也能实现并行化,但官网貌似没有更新。
利用方法
Seurat的并行策略是基于future包的plan函数,只须要参加以下三行内容,此中workers设置进程数,这个根据个人现实环境填写即可.
library(future)plan("multiprocess", workers = 4)options(future.globals.maxSize = 100000 * 1024^5)future.globals.maxSize则是为了排除运行内存限定,否则会出现以下报错。
Error in getGlobalsAndPackages(expr, envir = envir, globals = TRUE) : The total size of the X globals that need to be exported for the future expression ('FUN()') is X GiB. This exceeds the maximum allowed size of 500.00 MiB (option 'future.globals.maxSize'). The X largest globals are 加速SCTransform速率