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

Can I use multithreaded computing? #7

Open
gqf520 opened this issue Jan 4, 2025 · 1 comment
Open

Can I use multithreaded computing? #7

gqf520 opened this issue Jan 4, 2025 · 1 comment
Labels
question Further information is requested

Comments

@gqf520
Copy link

gqf520 commented Jan 4, 2025

Hello, how can I save time by performing multi-threaded calculation.

@ShawnWx2019
Copy link
Owner

Of course! In fact, I’ve already set up multithreading in the script:

WGCNA::allowWGCNAThreads(nThreads = 5)

You can modify the number of threads in the script before launching the app.

If the issue you’re experiencing is related to long wait times during the sft test step or the module construction step, this is likely due to the computation of the TOM matrix. I suspect the problem arises because you are still using R's built-in BLAS library. The built-in BLAS in R has low efficiency for matrix computations. I recommend replacing it with OpenBLAS to improve performance.

You can refer to the following link for guidance on switching to OpenBLAS to accelerate matrix computations:

https://github.com/david-cortes/R-openblas-in-windows

@ShawnWx2019 ShawnWx2019 added the question Further information is requested label Jan 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants