Skip to content

Commit

Permalink
revised server.R and ui.R
Browse files Browse the repository at this point in the history
  • Loading branch information
trvinh committed May 5, 2019
1 parent 73673d8 commit f6d63e3
Show file tree
Hide file tree
Showing 3 changed files with 288 additions and 493 deletions.
41 changes: 19 additions & 22 deletions inst/PhyloProfile/R/groupComparison.R
Original file line number Diff line number Diff line change
Expand Up @@ -217,28 +217,25 @@ groupComparison <- function (
### List with possible features for the selected gene
output$featureTypeSelect.ui <- renderUI({
ns <- session$ns
doUpdate()
isolate({
if (is.null(featureDf())) {
selectInput(ns("featureTypeSelect"),
"Feature type(s) of interest:",
choices = "ALL",
selected = "ALL",
multiple = TRUE,
selectize = FALSE)
} else {
featureDf <- str_split_fixed(
as.character(featureDf()$Feature), "_", 2
)
featureList <- unique(featureDf[,1])
selectInput(ns("featureTypeSelect"),
"Feature type(s) of interest:",
choices = c("ALL", featureList),
selected = "ALL",
multiple = TRUE,
selectize = FALSE)
}
})
if (is.null(featureDf())) {
selectInput(ns("featureTypeSelect"),
"Feature type(s) of interest:",
choices = "ALL",
selected = "ALL",
multiple = TRUE,
selectize = FALSE)
} else {
featureDf <- str_split_fixed(
as.character(featureDf()$Feature), "_", 2
)
featureList <- unique(featureDf[,1])
selectInput(ns("featureTypeSelect"),
"Feature type(s) of interest:",
choices = c("ALL", featureList),
selected = "ALL",
multiple = TRUE,
selectize = FALSE)
}
})

### filter feature data based on selected type of features
Expand Down
Loading

0 comments on commit f6d63e3

Please sign in to comment.