app <- ShinyDriver$new("../../", loadTimeout = 100000, seed = 1234)
app$snapshotInit("gating_plot_reset")
brush1 <- list(xmin = 0.5,
xmax = 1.5,
ymin = 12,
ymax = 34,
mapping = list(x = "sample",
y = "CD99"),
direction = "xy",
brushId = "plot_brush1",
outputId = "scatter1")
brush2 <- list(xmin = 0.5,
xmax = 1.5,
ymin = 0,
ymax = 3,
mapping = list(x = "sample",
y = "CD8a"),
direction = "xy",
brushId = "plot_brush2",
outputId = "scatter2")
brush3 <- list(xmin = 0.5,
xmax = 1.5,
ymin = 10,
ymax = 20,
mapping = list(x = "sample",
y = "CDH"),
direction = "xy",
brushId = "plot_brush3",
outputId = "scatter3")
app$setInputs(assay = "counts")
app$setInputs(plotCount = 2)
app$setInputs(plotCount = 3)
app$setInputs(Marker_1 = "CD99")
app$setInputs(Marker_3 = "CD8a")
app$setInputs(Marker_5 = "CDH")
app$setInputs(plot_brush1 = brush1, allowInputNoBinding_ = TRUE)
app$setInputs(plot_brush2 = brush2, allowInputNoBinding_ = TRUE)
app$setInputs(plot_brush3 = brush3, allowInputNoBinding_ = TRUE)
app$snapshot()
app$setInputs(plotCount = 2)
app$snapshot()
app$setInputs(Marker_1 = "CD99")
app$setInputs(Marker_3 = "CD8a")
app$setInputs(plot_brush1 = brush1, allowInputNoBinding_ = TRUE)
app$setInputs(plot_brush2 = brush2, allowInputNoBinding_ = TRUE)
app$snapshot()
app$setInputs(plotCount = 1)
app$snapshot()
p <- app$.__enclos_env__$private$shinyProcess
p$interrupt()
p$wait()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.