satijalab / seurat

R toolkit for single cell genomics
http://www.satijalab.org/seurat
Other
2.27k stars 910 forks source link

How to use parallel on RStudio? #3859

Closed rrchai closed 3 years ago

rrchai commented 3 years ago

Hi,

I am using Seurat 4.0. However, I am not able to enable the parallelization using future with seurat instruction. I found page saying that

Note that as of future version 1.14.0, forked processing is disabled when running in RStudio. To enable parallel computing in RStudio, you will need to select the “multisession” option.

So I tried to use plan("multisession")on RStudio on Mac, but it did not work out.

Can you please provide example of how to use parallel on RStudio for seurat function, e.g. FindIntegrationAnchors?

Thank you in advanced!

andrewwbutler commented 3 years ago

Hi,

What exactly do you mean by "did not work out" ? Setting plan("multisession") should enable it to work in Rstudio.