@@ -46,7 +46,6 @@ DEsummaryPanelUI <- function(id, metadata){
4646 selectInput(ns(" geneName" ), " Additional genes to include:" , multiple = TRUE , choices = character (0 )),
4747 div(" \n If no genes are selected in the DE panel or here then the top 50 DE genes are chosen.\n " ),
4848 div(style = " margin-bottom:10px" ),
49- actionButton(ns(' goHeatmap' ), label = ' Create heatmap' ),
5049 textInput(ns(' plotHeatmapFileName' ), ' File name for heatmap plot download' , value = ' HeatmapPlot.png' ),
5150 downloadButton(ns(' downloadHeatmapPlot' ), ' Download Heatmap Plot' ),
5251
@@ -128,15 +127,14 @@ DEsummaryPanelServer <- function(id, expression.matrix, metadata, DEresults, ann
128127 dplyr :: arrange(dplyr :: across(input [[' heatmap.annotations' ]]))
129128
130129 myplot <- expression_heatmap(
131- expression.matrix = subsetExpression [, meta [, 1 ]],
130+ expression.matrix = subsetExpression [, meta [, 1 ], drop = FALSE ],
132131 top.annotation.ids = match(input [[' heatmap.annotations' ]], colnames(meta )),
133132 metadata = meta ,
134133 type = input [[" heatmap.processing" ]],
135134 show.column.names = (nrow(meta ) < = 20 )
136135 )
137136 return (myplot )
138- }) %> %
139- bindEvent(DEresults(), input [[' goHeatmap' ]])
137+ })
140138 output [[' heatmap' ]] <- renderPlot(heatmap.plot(), height = 800 )
141139
142140 output [[' downloadHeatmapPlot' ]] <- downloadHandler(
0 commit comments