Skip to content

Instantly share code, notes, and snippets.

View davemcg's full-sized avatar

David McGaughey davemcg

View GitHub Profile
library(shiny)
library(tidyverse)
genes <- c('A','B','C')
expression <- cbind(rbind(10,100,50),genes) %>% data.frame()
colnames(expression) <- c('Expression','Gene')
shinyServer(function(input, output, session) {
updateSelectizeInput(session, 'Gene', choices = genes, selected=c('A','C'), server = TRUE)