Created
August 31, 2024 15:43
-
-
Save vjcitn/81aafcb68fcdcc2139101a7bb7ef0497 to your computer and use it in GitHub Desktop.
interactive xenium exploration
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(shiny) | |
library(ParquetDataFrame) | |
library(XenSCE) | |
if (!exists("gbm")) load("gbm.rda") | |
ui = fluidPage( | |
sidebarLayout( | |
sidebarPanel( | |
helpText("view gbm"), | |
sliderInput("xstart", "xstart", min=0, max=10000, step=50, value=5600), | |
sliderInput("ystart", "ystart", min=0, max=10000, step=50, value=5000), | |
sliderInput("width", "width", min=200, max=2000, step=100, value=400), | |
actionButton("go", "go", class="btn-success") | |
), | |
mainPanel( | |
tabsetPanel( | |
tabPanel("cells", plotOutput("cells", height="600px", width="600px")) | |
) | |
) | |
) | |
) | |
server = function(input, output) { | |
output$cells = renderPlot({ | |
input$go | |
view_seg(gbm, c(input$xstart, input$xstart+input$width), c(input$ystart, input$ystart+input$width)) | |
}) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment