[Bioc-devel] progress with BiocParallel::bpiterate
Martin Morgan
mtmorg@n@b|oc @end|ng |rom gm@||@com
Wed Nov 27 19:16:48 CET 2019
The rationale is that bpiterate() is used when the number of iterations is unknown (hence the length of the progress bar indeterminate...), whereas bplapply() is a more natural candidate for iteration when the length of the iteration is known... is bpiterate() providing functionality (REDUCE, maybe? that bplapply() does not?
Martin
On 11/27/19, 1:11 PM, "Bioc-devel on behalf of Robert Castelo" <bioc-devel-bounces using r-project.org on behalf of robert.castelo using upf.edu> wrote:
hi,
the 'BiocParallel::bpiterate()' method shows progress through the
following call:
setMethod("bpiterate", c("ANY", "ANY", "SerialParam"),
function(ITER, FUN, ..., REDUCE, init, reduce.in.order = FALSE,
BPPARAM=bpparam())
{
[...]
progress <- .progress(active=bpprogressbar(BPPARAM), iterate=TRUE)
[...]
}
where the argument 'iterate=TRUE' when calling '.progress()' leads this
function to show progress by a message
"iteration: x"
where 'x' is a number from 0 to 'ntasks' within its code. i'd like to
know whether there is a particular reason why 'bpiterate' should show
progress in such a way and whether it would be possible to parametrize
it to show progress in the same way other 'BiocParallel' methods do,
such as 'bplapply()', 'bpvec()', etc..., i.e., doing
|========== | X%
thanks!!!
robert.
_______________________________________________
Bioc-devel using r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/bioc-devel
More information about the Bioc-devel
mailing list