Skip to content

Commit

Permalink
Export csv for batch gene expression
Browse files Browse the repository at this point in the history
Used xlsx::write.xlsx() at a single place (all other exports are csv). Removing this, also exporting csv for consistency. This also removes dependency on rJava
  • Loading branch information
AlexWeinreb committed Jun 4, 2024
1 parent f0344ae commit 7853319
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
8 changes: 3 additions & 5 deletions server.R
Original file line number Diff line number Diff line change
Expand Up @@ -215,17 +215,15 @@ server <- function(input, output) {
output$TGeneBatch <-
downloadHandler(
filename = function() {
paste(
paste0(
"GenesExpressing-BATCH",
"-thrs",
input$Tgene_cut_batch,
".xlsx",
sep = ""
".csv"
)
},
content = function(file) {
write.xlsx(tb, file, sheetName = "Sheet1",
col.names = TRUE, row.names = TRUE, append = FALSE)
write.csv(tb, file)
}
)

Expand Down
1 change: 0 additions & 1 deletion ui.R
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ library(plotly)
library(svglite)

library(expss)
library(xlsx)

library(BiocManager)
library(edgeR)
Expand Down

0 comments on commit 7853319

Please sign in to comment.