Skip to content

Commit

Permalink
updated testing and passing checks
Browse files Browse the repository at this point in the history
  • Loading branch information
rmflight committed Oct 30, 2024
1 parent f60bc7c commit 9e757df
Show file tree
Hide file tree
Showing 86 changed files with 96 additions and 343 deletions.
6 changes: 1 addition & 5 deletions .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,6 @@
^\.Rproj\.user$
^\.travis\.yml$
^\.push_gh_pages\.sh$
tests.R
test_data_gen.R
test_data.RData
test_table_data.rds
test_combine_filter.rda
^\.github\workflows\.yml$
^\.github$
^executable_related$
Expand All @@ -27,3 +22,4 @@ test_combine_filter.rda
^doc$
^docs$
^_pkgdown\.yml$
^examples_test_data$
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Package: categoryCompare2
Version: 0.100.25
Version: 0.100.26
Title: Meta-Analysis of High-Throughput Experiments Using Feature
Annotations
Authors@R: c(
Expand All @@ -18,7 +18,7 @@ Depends: R (>= 3.5.0)
Suggests: knitr, markdown, estrogen, org.Hs.eg.db, hgu95av2.db, limma,
affy, genefilter, testthat (>= 3.0.0), visNetwork, Cairo,
DiagrammeR, KEGGREST, docopt (>= 0.7.0), RCy3, hgu95av2cdf,
rmarkdown, fgsea
rmarkdown, fgsea, data.table, withr
Imports: Biobase, methods, AnnotationDbi, colorspace, graph, igraph,
jsonlite, base64enc, dplyr, purrr, rlang, GO.db, stats
LazyLoad: yes
Expand Down
4 changes: 4 additions & 0 deletions R/gsea.R
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ setClass("gsea_features",
#' @param min_features the minimum number of features for an annotation (default = 15)
#' @param max_features the maximum number of features for an annotation (default = 500)
#' @param return_type what type of object should be returned? ("cc2" or "fgsea")
#' @param ... other `fgsea` options
#'
#' @details The runtime is dependent on the maximum size of the provided annotation,
#' so the authors of `fgsea` recommend a maximum size of 500. In addition, to calculate
Expand Down Expand Up @@ -82,6 +83,9 @@ gsea_feature_enrichment = function(gsea_features,
#' @return data.table
enriched_to_fgsea = function(in_enriched)
{
if (!requireNamespace("data.table", quietly = TRUE)) {
stop("data.table must be installed!")
}
ranks = in_enriched@ranks
results = data.table::as.data.table(in_enriched@statistics@statistic_data)
rename_list = c(pval = "p", padj = "padjust", log2err = "log2err", ES = "es", NES = "nes", size = "size", leadingEdge = "leading_edge")
Expand Down
2 changes: 1 addition & 1 deletion docs/404.html

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

2 changes: 1 addition & 1 deletion docs/LICENSE-text.html

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

6 changes: 3 additions & 3 deletions docs/articles/command_line_interface.html

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

2 changes: 1 addition & 1 deletion docs/articles/index.html

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

4 changes: 2 additions & 2 deletions docs/articles/v2_guide.html

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

4 changes: 2 additions & 2 deletions docs/articles/v2_visnetwork_guide.html

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

2 changes: 1 addition & 1 deletion docs/authors.html

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

2 changes: 1 addition & 1 deletion docs/index.html

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

2 changes: 1 addition & 1 deletion docs/pkgdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ articles:
command_line_interface: command_line_interface.html
v2_guide: v2_guide.html
v2_visnetwork_guide: v2_visnetwork_guide.html
last_built: 2024-10-30T17:56Z
last_built: 2024-10-30T18:58Z
urls:
reference: https://moseleybioinformaticslab.github.io/categoryCompare2/reference
article: https://moseleybioinformaticslab.github.io/categoryCompare2/articles
2 changes: 1 addition & 1 deletion docs/reference/add_data_to_graph.html

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

2 changes: 1 addition & 1 deletion docs/reference/add_tooltip.html

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

2 changes: 1 addition & 1 deletion docs/reference/annotation.html

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

2 changes: 1 addition & 1 deletion docs/reference/annotation_2_json.html

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

2 changes: 1 addition & 1 deletion docs/reference/annotation_combinations.html

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

2 changes: 1 addition & 1 deletion docs/reference/annotation_gene_table.html

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

2 changes: 1 addition & 1 deletion docs/reference/assign_colors.html

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

2 changes: 1 addition & 1 deletion docs/reference/assign_communities.html

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

2 changes: 1 addition & 1 deletion docs/reference/binomial_basic.html

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

2 changes: 1 addition & 1 deletion docs/reference/binomial_feature_enrichment.html

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

2 changes: 1 addition & 1 deletion docs/reference/binomial_features-class.html

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

2 changes: 1 addition & 1 deletion docs/reference/binomial_result-class.html

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

2 changes: 1 addition & 1 deletion docs/reference/categoryCompare2.html

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

2 changes: 1 addition & 1 deletion docs/reference/cc_graph.html

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

2 changes: 1 addition & 1 deletion docs/reference/combine_annotation_features.html

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

2 changes: 1 addition & 1 deletion docs/reference/combine_annotations.html

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

2 changes: 1 addition & 1 deletion docs/reference/combine_enrichments.html

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

2 changes: 1 addition & 1 deletion docs/reference/combine_text.html

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

2 changes: 1 addition & 1 deletion docs/reference/combined_coefficient.html

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

2 changes: 1 addition & 1 deletion docs/reference/combined_enrichment.html

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

2 changes: 1 addition & 1 deletion docs/reference/combined_significant_calls.html

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

Loading

0 comments on commit 9e757df

Please sign in to comment.