Function to apply either biocParallel or standard lapply
smartApply(parallel, x, FUN, ...)
| parallel | Logical, should parallel processing be used? |
|---|---|
| x | The main list object which the function will be applied to. |
| FUN | The function to be applied. |
| ... | Additional arguments for bplapply or lapply. |
results of lapply or bplapply