Skip to content

Commit

Permalink
fixed error introduced by previous commit
Browse files Browse the repository at this point in the history
  • Loading branch information
pfgherardini committed Jul 21, 2018
1 parent e7a05fe commit f333552
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions inst/shinyGUI/server/tab_graph.R
Original file line number Diff line number Diff line change
Expand Up @@ -358,21 +358,22 @@ output$graphui_plot = renderPlot(width = 1200, height = 800, expr = {
return(p)
} else if(!is.null(igraph::V(G)$sample) && length(unique(igraph::V(G)$sample)) > 1) {
if(input$graphui_plot_type == "Scatterplot" &&
!input$graphui_pool_clusters_data)
!input$graphui_pool_clusters_data) {
showModal(modalDialog(
"This graph was derived from multiple independent clustering runs.",
"Scatterplots can only be displayed by pooling clusters data",
easyClose = TRUE
))
if(input$graphui_pool_samples_data)
return(p)
}
else if(input$graphui_pool_samples_data) {
showModal(modalDialog(
"This graph was derived from multiple independent clustering runs.",
"Data from different samples cannot be pooled",
easyClose = TRUE
))

#Add some sort of warning that it doesn't make sense to pool samples data for unsupervised clusters
return(p)
return(p)
}
}

samples.to.plot <- input$graphui_samples_to_plot
Expand Down

0 comments on commit f333552

Please sign in to comment.