Skip to content
Prev 19063 / 21312 Next

[Bioc-devel] BiocParallel and Shiny

Hi.

If you use the DoparParam backend for BiocParallel with
doFuture::registerDoFuture(), then you have access to everything
available in the 'future' ecosystem.  This means you can use any of
the available future parallel backends, plus near-live progress
updates via the 'progressr' package. Progress signaled by 'progressr'
can be rendered in Shiny.

See https://progressr.futureverse.org/#biocparallelbplapply---parallel-lapply,
for an example how to use BiocParallel on top of the future framework
together with progress updates signaled by 'progressr'.

See https://progressr.futureverse.org/reference/withProgressShiny.html
for progressr::withProgressShiny(), which is a plug-in replacement for
shiny::withProgress().  Run example("withProgressShiny", package =
"progressr") for an example.

I gave a short presentation on progressr, with a focus on its use
together with future, at eRum 2020. The talk is available at
https://www.jottr.org/2020/07/04/progressr-erum2020-slides/.  It might
give some more insight on how it all works.

Hope this helps,

Henrik
On Thu, Jul 7, 2022 at 11:51 AM Giulia Pais <giuliapais1 at gmail.com> wrote:
Message-ID: <CAFDcVCTkys3S8voj0U0jV5T3d26r8QKa-iiK58PotvEaBFq24w@mail.gmail.com>
In-Reply-To: <DBAPR04MB726957A87648639292AE3342AA839@DBAPR04MB7269.eurprd04.prod.outlook.com>