Jbrowse-shiny: Shiny bindings for TREW Jbrowse iframe

Description Usage Arguments Details Note Examples

Description

Output and render functions for using trewjb within Shiny applications and interactive Rmd documents.

Usage

1
2
3
JbrowseOutput(outputId, width = "100%", height = "400px")

renderJbrowse(expr, env = parent.frame(), quoted = FALSE)

Arguments

outputId

output variable to read from

width, height

Must be a valid CSS unit (like '100%', '400px', 'auto') or a number, which will be coerced to a string and have 'px' appended.

expr

An expression that generates a trewjb

env

The environment in which to evaluate expr.

quoted

Is expr a quoted expression (with quote())? This is useful if you want to save an expression in a variable.

Details

renderJbrowse should return with iframeJbrowse.

Note

It seems that the built-in RStudio viewer does not support iframe element, thus please consider using a web browser instead.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
if (interactive() && require(shiny))
shinyApp(
    ui = fluidPage(
        fluidRow(
            JbrowseOutput(outputId = 'test')
        )
    ),
    server = function(input, output) {
        output$test <- renderJbrowse(
            iframeJbrowse('http://www.example.org')
        )
    }
)

Marlin-Na/trewjb documentation built on May 7, 2019, 3:36 p.m.