Skip to content

Commit

Permalink
fixed upset plot
Browse files Browse the repository at this point in the history
  • Loading branch information
afust committed Sep 19, 2017
1 parent cd4d9ab commit 767ed42
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions utils/uropa_summary.R
Original file line number Diff line number Diff line change
Expand Up @@ -431,14 +431,14 @@ if (is.null(opt$besthits)) {
mtext("Chow Ruskey comparison of all peaks annotated with UROPA", side=3, line=0,outer=FALSE, cex=1)
}, error = function(e){
cat("\nChowRuskey plot was invalid do upsetR plot\n")
library(UpSetR,quietly = TRUE)
suppressPackageStartupMessages(library(UpSetR,quietly = TRUE))
upset(fromList(peaks.per.query), keep.order=TRUE,nintersects = NA,empty.intersections = "on",number.angles=35,mainbar.y.label = "Peak Intersections", sets.x.label = "Annotated Genes")
#nsets=(ncol(combn(num.queries,2))+num.queries)
})
}
} else {
library(UpSetR,quietly = TRUE)
upset(fromList(peaks.per.query), keep.order=TRUE, nintersects = NA,empty.intersections = "on",number.angles=35,mainbar.y.label = "Gene Intersections", sets.x.label = "Annotated Genes")
suppressPackageStartupMessages(library(UpSetR,quietly = TRUE))
upset(fromList(peaks.per.query), keep.order=TRUE,nintersects = NA,empty.intersections = "on",number.angles=35,mainbar.y.label = "Peak Intersections", sets.x.label = "Annotated Genes")

}
invisible(dev.off())
Expand Down

0 comments on commit 767ed42

Please sign in to comment.