[Bioc-devel] progress with BiocParallel::bpiterate

Robert Castelo robert@c@@te|o @end|ng |rom up|@edu
Wed Nov 27 19:10:48 CET 2019


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.



More information about the Bioc-devel mailing list