Skip to content

Commit

Permalink
Fixed #4 #5
Browse files Browse the repository at this point in the history
  • Loading branch information
Raivo Kolde committed Mar 27, 2018
1 parent 796700a commit add48a7
Show file tree
Hide file tree
Showing 21 changed files with 317 additions and 316 deletions.
2 changes: 2 additions & 0 deletions .Rbuildignore
@@ -1,2 +1,4 @@
visual_test

^.*\.Rproj$
^\.Rproj\.user$
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -31,3 +31,4 @@ R/.DS_Store
*.pdf

data/.Rhistory
.Rproj.user
3 changes: 2 additions & 1 deletion DESCRIPTION
@@ -1,5 +1,5 @@
Package: GOsummaries
Version: 2.3.4
Version: 2.3.5
Date: 2016-03-08
License: GPL (>= 2)
Description: A package to visualise Gene Ontology (GO) enrichment analysis
Expand Down Expand Up @@ -28,3 +28,4 @@ biocViews: GeneExpression,
Clustering,
GO,
Visualization
RoxygenNote: 6.0.1
4 changes: 2 additions & 2 deletions NAMESPACE
@@ -1,4 +1,4 @@
# Generated by roxygen2 (4.1.1): do not edit by hand
# Generated by roxygen2: do not edit by hand

S3method("[",gosummaries)
S3method(gosummaries,MArrayLM)
Expand Down Expand Up @@ -45,4 +45,4 @@ importFrom(ggplot2,scale_x_continuous)
importFrom(ggplot2,scale_y_continuous)
importFrom(ggplot2,theme)
importFrom(ggplot2,theme_bw)
useDynLib(GOsummaries)
useDynLib(GOsummaries, .registration = TRUE)
2 changes: 1 addition & 1 deletion R/GOsummaries-package.R
Expand Up @@ -52,7 +52,7 @@
#' @importFrom ggplot2 position_identity
#' @importFrom ggplot2 scale_fill_brewer
#'
#' @useDynLib GOsummaries
#' @useDynLib GOsummaries, .registration = TRUE
#'
#' @aliases GOsummaries
NULL
5 changes: 3 additions & 2 deletions R/GOsummaries.R
Expand Up @@ -293,7 +293,7 @@ gosummaries = function(x = NULL, ...){
#' @param organism the organism that the gene lists correspond to. The format
#' should be as follows: "hsapiens", "mmusculus", "scerevisiae", etc.
#' @param go_branches GO tree branches and pathway databases as denoted in
#' g:Profiler (Possible values: BP, CC, MF, ke, re)
#' g:Profiler (Possible values: BP, CC, MF, keg, rea)
#' @param max_p_value threshold for p-values that have been corrected for
#' multiple testing
#' @param min_set_size minimal size of functional category to be considered
Expand All @@ -317,7 +317,7 @@ gosummaries = function(x = NULL, ...){
#' @rdname gosummaries
#' @method gosummaries default
#' @export
gosummaries.default = function(x = NULL, wc_data = NULL, organism = "hsapiens", go_branches = c("BP", "ke", "re"), max_p_value = 1e-2, min_set_size = 50, max_set_size = 1000, max_signif = 40, ordered_query = TRUE, hier_filtering = "moderate", score_type = "p-value", wc_algorithm = "middle", wordcloud_legend_title = NULL, ...){
gosummaries.default = function(x = NULL, wc_data = NULL, organism = "hsapiens", go_branches = c("BP", "keg", "rea"), max_p_value = 1e-2, min_set_size = 50, max_set_size = 1000, max_signif = 40, ordered_query = TRUE, hier_filtering = "moderate", score_type = "p-value", wc_algorithm = "middle", wordcloud_legend_title = NULL, ...){

# Create basic structure
res = gosummaries_base(gl = x,
Expand Down Expand Up @@ -474,6 +474,7 @@ annotate.gosummaries = function(gosummaries, organism, components = 1:length(gos
packageVersion("gProfileR"),
packageVersion("GOsummaries"))
gProfileR::set_user_agent(ua = user_agent, append = FALSE)
gProfileR::set_base_url("http://biit.cs.ut.ee/gprofiler")
# gProfileR::set_base_url(url = "http://biit.cs.ut.ee/gprofiler_archive/r1227_e72_eg19/web/")

gpr = gProfileR::gprofiler(query = gl, organism = organism,
Expand Down
33 changes: 16 additions & 17 deletions man/GOsummaries-package.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

23 changes: 11 additions & 12 deletions man/add_expression.gosummaries.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 10 additions & 10 deletions man/add_to_slot.gosummaries.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 8 additions & 8 deletions man/customize.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

51 changes: 26 additions & 25 deletions man/gosummaries.MArrayLM.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit add48a7

Please sign in to comment.