Functions for parallel execution of multi-omics analysis.
Sets up parallel processing using the future framework.
Usage
setup_parallel(workers = NULL, strategy = "multisession", verbose = TRUE)
Arguments
- workers
Number of worker processes (default: detectCores() - 1).
- strategy
Parallel strategy: "multisession", "multicore", or "sequential".
- verbose
Print configuration info (default: TRUE).
Value
Invisibly returns the previous plan.
Details
- "multisession": Works on all platforms (Windows, macOS, Linux)
- "multicore": Faster on Unix-like systems, not available on Windows
- "sequential": No parallelism (useful for debugging)
Author
Zaoqu Liu; Email: liuzaoqu@163.com