GSVA 1.52.2 (new API) nb of workers?
1
0
Entering edit mode
@466b49a7
Last seen 5 months ago
France

Hello, thanks for the latest GSVA ! I was wondering how to be able to use all my PC cores (workers=8): in the older GSVA version there was a parallel.sz parameter for defining this, but in the new API I feel lost, as that parameter is no longer valid. Here my code with the new API:

gsvaPar <- gsvaParam(
    exprData=as.matrix(expression),
    geneSets=pathways_list,
    minSize = 5,
    kcdf = "Gaussian")

result <- GSVA::gsva(
  gsvaPar, verbose=TRUE)
parallelize workers GSVA • 418 views
ADD COMMENT
1
Entering edit mode
Axel Klenk ★ 1.0k
@axel-klenk-3224
Last seen 12 hours ago
UPF, Barcelona, Spain

Hello, and thanks for using GSVA!

For quite some time GSVA is supporting Bioconductor's own BiocParallel framework and argument parallel.sz has finally been discontinued to avoid duplication (and potential confusion). To execute gsva(.) in parallel, simply change your code to e.g.:

result <- gsva(gsvaPar, verbose=TRUE, BPPARAM=MulticoreParam(workers=8))

The example above is using MulticoreParam(.) for forked processes on multicore CPUs. Please see the BiocParallel documentation and vignette for more information.

ADD COMMENT

Login before adding your answer.

Traffic: 645 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6