Skip to content

Commit

Permalink
fixes some issues seen with GSEA actual use
Browse files Browse the repository at this point in the history
and creates the vignette for GSEA
  • Loading branch information
rmflight committed Oct 31, 2024
1 parent 9e757df commit 1c10647
Show file tree
Hide file tree
Showing 87 changed files with 657 additions and 91 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Package: categoryCompare2
Version: 0.100.26
Version: 0.100.27
Title: Meta-Analysis of High-Throughput Experiments Using Feature
Annotations
Authors@R: c(
Expand Down
14 changes: 13 additions & 1 deletion R/combine_enrichments.R
Original file line number Diff line number Diff line change
Expand Up @@ -104,11 +104,15 @@ setMethod("generate_annotation_graph", signature = list(comb_enrichment = "combi
#'
#' @return graphNEL
add_data_to_graph <- function(graph, data){

type_convert <- c('STRING','INTEGER','FLOATING','STRING')
type_defaults <- list(character = "NA", integer = -100, numeric = -100, logical = "NA")
names(type_convert) <- c('character','integer','numeric','logical')

data_types <- lapply(data, class)
keep_types <- vapply(data_types, function(x){x %in% names(type_convert)}, logical(1))
data <- data[, keep_types]
data_types <- data_types[keep_types]

graph_entries <- graph::nodes(graph)
data_entries <- rownames(data)
Expand Down Expand Up @@ -469,7 +473,15 @@ setMethod("extract_statistics", signature = list(in_results = "statistical_resul
function(in_results) .extract_statistics_statistical_results(in_results))

.extract_statistics_statistical_results <- function(in_results){
out_data <- as.data.frame(in_results@statistic_data)
tmp_stats = in_results@statistic_data
if ("leading_edge" %in% names(tmp_stats)) {
tmp_stats$leading_edge <- NULL
out_data <- as.data.frame(tmp_stats)
out_data$leading_edge <- in_results@statistic_data$leading_edge
} else {
out_data <- as.data.frame(tmp_stats)
}

row.names(out_data) <- in_results@annotation_id

out_data
Expand Down
Empty file removed R/graph_table_annotation.R
Empty file.
3 changes: 2 additions & 1 deletion docs/404.html

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

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

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

9 changes: 5 additions & 4 deletions docs/articles/command_line_interface.html

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

Loading

0 comments on commit 1c10647

Please sign in to comment.