Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dev #35

Merged
merged 16 commits into from
Jun 28, 2024
Prev Previous commit
Next Next commit
sapply leading edge calc
derrik-gratz committed Jun 10, 2024
commit 4dcfbcc4de473ed5ba257f507c6247b87c2325ef
2 changes: 1 addition & 1 deletion R/gseaDotplot.R
Original file line number Diff line number Diff line change
@@ -185,7 +185,7 @@ gseaDotplot_single <- function(result,
}
result <- result %>%
arrange(.data[[p_val_col]], desc(.data$NES)) %>%
mutate(perc = 100 * length(strsplit(.data$leadingEdge, ', ')[[1]]) / .data$size) %>%
mutate(perc = 100 * sapply(str_split(leadingEdge, ', '), length) / .data$size) %>%
mutate(name = paste0(.wrap_underscore_strings_balance(.data$pathway, 36), "\nn=", .data$size)) %>%
filter(.data$size >= min_size)
if (!is.null(filter_source)) {