Skip to content

Commit d67529c

Browse files
authored
Merge pull request #7 from computproteomics/devel
Devel
2 parents 43c132b + 8817a1f commit d67529c

3 files changed

Lines changed: 9 additions & 3 deletions

File tree

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Package: PolySTest
22
Title: PolySTest: Detection of differentially regulated features. Combined
33
statistical testing for data with few replicates and missing values
4-
Version: 1.7.1
4+
Version: 1.7.2
55
Authors@R:
66
person("Veit", "Schwämmle", , "[email protected]", role = c("aut", "cre"),
77
comment = c(ORCID = "0000-0002-9708-6722"))

R/Visualizations.R

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -517,6 +517,12 @@ plotUpset <- function(fulldata, qlim = 0.05, fclim = c(0, 0)) {
517517
names(tcols) <- rep(paste("A", seq_len(NumComps)), 1)
518518

519519
if (length(WhereRegs) > 0) {
520+
# Reduce to first comparison when too many comparisons
521+
if (ncol(WhereRegs) > 18) {
522+
WhereRegs <- WhereRegs[, seq_len(18), drop = FALSE]
523+
tcolnames <- tcolnames[seq_len(18)]
524+
tcols <- tcols[seq_len(18)]
525+
}
520526
message("Plotting upset plots")
521527
upset_plot <- UpSetR::upset(as.data.frame(WhereRegs),
522528
nsets = ncol(WhereRegs),

inst/shiny/server.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -747,7 +747,7 @@ shinyServer(function(input, output, clientData, session) {
747747
paste("VolcanoPlots", Sys.Date(), ".pdf", sep="");
748748
},
749749
content = function(file) {
750-
pdf(file,height=12,width=20)
750+
pdf(file,height=4*Comps$num,width=20)
751751
plotVolcano(fulldata, compNames, testNames2, sel_prots, qlim, fclim)
752752
dev.off()
753753
}
@@ -917,7 +917,7 @@ shinyServer(function(input, output, clientData, session) {
917917
paste("PvalueDistrPlots", Sys.Date(), ".pdf", sep="");
918918
},
919919
content = function(file) {
920-
pdf(file,height=12,width=20)
920+
pdf(file,height=4*Comps$num,width=20)
921921
plotPvalueDistr(fulldata, compNames, testNames)
922922
dev.off()
923923
}

0 commit comments

Comments
 (0)