Skip to content

Commit

Permalink
Fix seqLogoApp download (adapt to motifStack)
Browse files Browse the repository at this point in the history
  • Loading branch information
csoneson committed Dec 11, 2024
1 parent b763329 commit 53e9499
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions R/seqLogoApp.R
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,11 @@ seqLogoApp <- function(seqTableCsv,
plotfile <- paste0(exportName, "-seqlogo-", timestamp, ".pdf")
xlsxfile <- paste0(exportName, "-seqlogo-", timestamp, ".xlsx")
csvfile <- paste0(exportName, "-seqlogo-", timestamp, ".csv")
ggplot2::ggsave(seqlogo(), file = plotfile,
width = 8, height = 5)
pdf(plotfile, width = 8, height = 5)
motifStack::plotMotifLogo(seqlogo(), font = "sans", fontface = "plain")
dev.off()
# ggplot2::ggsave(seqlogo(), file = plotfile,
# width = 8, height = 5)
writexl::write_xlsx(df[input$seqtable_rows_all, ],
path = xlsxfile)
utils::write.table(df[input$seqtable_rows_all, ],
Expand Down

0 comments on commit 53e9499

Please sign in to comment.