Sends option changes to a JBrowseR() or JBrowseRApp() already on the page, without re-running its render expression. The changes are named the way the widget's own options are.

update_jbrowse(outputId, ..., domain = shiny_domain())

Arguments

outputId

The browser's output id. Inside a Shiny module, pass the bare id, as you would to output$.

...

Options to change, each named.

domain

The Shiny session, defaulting to the current one. Not named session, which is an option.

Value

outputId, invisibly.

Details

observeEvent(input$gene, update_jbrowse("browser", location = input$gene))

A JBrowseR() applies tracks and location in place and a JBrowseRApp() applies session in place; any other option builds a new browser from the rendered options plus the changes. A later re-render compares against what it rendered last, so a change sent here survives a re-render that does not restate that option.