@@ -77,15 +77,9 @@ output$downloadPDF <- downloadHandler(
7777 }
7878
7979 # # Geneset Heatmap
80- if (! is.null(saved_plots $ genesetheatmap )){
81- for (i in 1 : length(names(saved_plots $ genesetheatmap ))) {
82- p.name <- names(saved_plots $ genesetheatmap )[i ]
83- title_tmp <- paste(" Geneset Heatmap (" ,p.name ," )" ,sep = " " )
84- if (title_tmp %in% plots_checked ) {
85- draw(saved_plots $ genesetheatmap [[i ]], merge_legend = T ,auto_adjust = FALSE )
86- Np = Np + 1
87- }
88- }
80+ if (! is.null(saved_plots $ genesetheatmap ) & (" Geneset Heatmap" %in% plots_checked )){
81+ draw(saved_plots $ genesetheatmap , merge_legend = T ,auto_adjust = FALSE )
82+ Np = Np + 1
8983 }
9084
9185 # # Geneset KEGG View
@@ -212,11 +206,7 @@ observe({
212206
213207 # # Geneset Heatmap
214208 if (! is.null(saved_plots $ genesetheatmap )){
215- for (i in 1 : length(names(saved_plots $ genesetheatmap ))) {
216- p.name <- names(saved_plots $ genesetheatmap )[i ]
217- title_tmp <- paste(" Geneset Heatmap (" ,p.name ," )" ,sep = " " )
218- summary = c(summary , title_tmp )
219- }
209+ summary = c(summary , ' Geneset Heatmap' )
220210 }
221211
222212 # # Geneset KeggView
@@ -335,6 +325,28 @@ output$downloadSVG <- downloadHandler(
335325 replayPlot(saved_plots $ staticheatmap )
336326 Np = Np + 1
337327 }
328+
329+
330+ # # Geneset Heatmap
331+ if (Np == 0 & ! is.null(saved_plots $ genesetheatmap ) & (" Geneset Heatmap" %in% plots_checked )){
332+ draw(saved_plots $ genesetheatmap , merge_legend = T ,auto_adjust = FALSE )
333+ Np = Np + 1
334+ }
335+
336+ # # Geneset KEGG View
337+ if (Np == 0 &! is.null(saved_plots $ keggSave )){
338+ for (i in 1 : length(names(saved_plots $ keggSave ))) {
339+ p.name <- names(saved_plots $ keggSave )[i ]
340+ title_tmp <- paste(" KEGG View (" ,p.name ," )" ,sep = " " )
341+ if (title_tmp %in% plots_checked ) {
342+ par(mai = c(0 ,0 ,0 ,0 ))
343+ plot(c(0 ,1 ),c(0 ,1 ),type = " n" )
344+ rasterImage(saved_plots $ keggSave [[i ]],0 ,0 ,1 ,1 )
345+ Np = Np + 1
346+ }
347+ }
348+ }
349+
338350 # ## boxplot plot
339351 if (Np == 0 & ! is.null(saved_plots $ boxplot )){
340352 for (i in 1 : length(saved_plots $ boxplot )) {
0 commit comments