mgVolcano.Rd
Users can specify logFC and FDR thresholds for which the individual dots in the volcano are rather hexbins so that the browser doesn't have to handle a single point for each gene/dot.
mgVolcano(
input,
output,
session,
x,
stats = "dge",
xaxis = "logFC",
yaxis = "pval",
idx = "idx",
tools = c("box_select", "reset", "save"),
width = NULL,
height = NULL,
highlight = shiny::reactive(NULL),
default_xhex = 1,
default_yhex = 0.1,
webgl = FALSE,
...
)
mgVolcanoUI(
id,
x,
stats = "dge",
xaxis = "logFC",
yaxis = "padj",
idx = "idx",
hexbin = TRUE,
default_xhex = 1,
default_yhex = 0.1
)
shiny bits
A SparrowResult
object, or a data.frame
One of "dge"
or resultNames(x)
the column of the the provided (or extracted)
data.frame
to use for the xaxis and yaxis of the volcano
the column of the the provided (or extracted)
data.frame
to use for the xaxis and yaxis of the volcano
The column of the data.frame
to use as the identifier
for the element in the row. You probably don't want to mess with this
the plotly tools to include in the figures toolbar
the width and height of the output plotly plot
the width and height of the output plotly plot
a reactive vector of featureIds that indicate which points to highlight on the volcano, irresespective of their "hexbin" status.
default values to set the slider inputs to pass in for hex-ization
use webgl to make the plotly plot
pass through arguments (not used)
the shiny id of the output widget
boolean to indicate if the UI should show a wrench widget to configure the parameters for the hexbin drawing (default: `TRUE`)
A reactive data.frame that includes the information of the genes that are brushed in the volcano plot. If no genes have been selected, then `NULL`.
mgVolcanoUI
: the UI for the module
sres <- sparrow::exampleSparrowResult()
app <- shiny::shinyApp(
ui = shiny::shinyUI(shiny::fluidPage(
exampleUISetup(),
title = "Interactive volcano plot",
mgVolcanoUI("mod"))),
server = function(input, output, session) {
src <- shiny::reactive(SparrowResultContainer(sres))
shiny::callModule(mgVolcano, "mod", src, default_xhex = 2)
})
if (interactive()) {
shiny::runApp(app)
}