Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parallelization in Seurat with future #9385

Open
Motoufiq opened this issue Oct 10, 2024 · 1 comment
Open

Parallelization in Seurat with future #9385

Motoufiq opened this issue Oct 10, 2024 · 1 comment

Comments

@Motoufiq
Copy link

Hi,

I attempted to use the future framework for parallelization during the FindIntegrationAnchors step in Seurat while working in R Studio on my Mac, but it caused R Studio to freeze and close. I then moved the analysis to an HPC system of my institution, but the future framework still didn’t work.

library(future)
plan("multiprocess", workers = 4)
> plan("multiprocess", workers = 4)
Error: No such strategy for futures:multiprocess

On Mac, I switched to:

plan("multisession", workers = 4)

I also tried:

options(future.globals.maxSize = 50000 * 1024^2) # for 50 GB RAM

However, R Studio continues to close unexpectedly.

Best regards,
Toufiq

@LilingJiang
Copy link

Hi,

I attempted to use the future framework for parallelization during the FindIntegrationAnchors step in Seurat while working in R Studio on my Mac, but it caused R Studio to freeze and close. I then moved the analysis to an HPC system of my institution, but the future framework still didn’t work.

library(future)
plan("multiprocess", workers = 4)
> plan("multiprocess", workers = 4)
Error: No such strategy for futures:multiprocess

On Mac, I switched to:

plan("multisession", workers = 4)

I also tried:

options(future.globals.maxSize = 50000 * 1024^2) # for 50 GB RAM

However, R Studio continues to close unexpectedly.

Best regards, Toufiq

Hi there! I ran into the same issue and fixed it by using the multicore option on Linux. Starting from version 1.20.0 of the future package, the multiprocess strategy has been removed and replaced with multisession and multicore. Hope that helps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants