Mercurial > repos > iuc > goseq
diff goseq.r @ 7:67c29afac85f draft
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/goseq commit 8e60c1cecc4561d61624799b0999e89687677ab1
author | iuc |
---|---|
date | Sun, 17 Mar 2019 10:27:17 -0400 |
parents | bbcf5f7f2af2 |
children | 8b3e3657034e |
line wrap: on
line diff
--- a/goseq.r Sat Feb 09 09:07:48 2019 -0500 +++ b/goseq.r Sun Mar 17 10:27:17 2019 -0400 @@ -159,12 +159,12 @@ top_n(10, wt=-over_represented_pvalue) %>% mutate(hitsPerc=numDEInCat*100/numInCat) %>% ggplot(aes(x=hitsPerc, - y=substr(term, 1, 40), # only use 1st 40 chars of terms otherwise squashes plot - colour=over_represented_pvalue, + y=reorder(substr(term, 1, 40), -over_represented_pvalue), # only use 1st 40 chars of terms otherwise squashes plot + colour=p.adjust.over_represented, size=numDEInCat)) + geom_point() + expand_limits(x=0) + - labs(x="% DE in category", y="Category", colour="P value", size="Count", title=paste("Top over-represented categories in", cats_title), subtitle=paste(m, " method")) + + labs(x="% DE in category", y="Category", colour="Adj P value", size="Count", title=paste("Top over-represented categories in", cats_title), subtitle=paste(m, " method")) + theme(plot.title = element_text(hjust = 0.5), plot.subtitle = element_text(hjust = 0.5)) print(p) }