Skip to content

Commit

Permalink
directory param in highlight_entities
Browse files Browse the repository at this point in the history
  • Loading branch information
noriakis committed Aug 27, 2024
1 parent 40e161c commit 042b0f3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
5 changes: 3 additions & 2 deletions R/highlight_functions.R
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
#' @param use_cache use cache or not
#' @param return_graph return tbl_graph instead of plot
#' @param remove_dot remove the "..." in the graphics name column
#' @param directory directroy with XML files. ignore caching when specified.
#' @return overlaid map
#' @examples
#' highlight_entities("hsa04110", c("CDKN2A"), legend_name="interesting")
Expand All @@ -29,8 +30,8 @@
highlight_entities <- function(pathway, set, how="any",
num_combine=mean, name="graphics_name", sep=", ", no_sep=FALSE,
show_type="gene", fill_color="tomato", remove_dot=TRUE,
legend_name=NULL, use_cache=FALSE, return_graph=FALSE) {
graph <- pathway(pathway, use_cache=use_cache)
legend_name=NULL, use_cache=FALSE, return_graph=FALSE, directory=NULL) {
graph <- pathway(pathway, use_cache=use_cache, directory=directory)
x <- get.vertex.attribute(graph, name)

if (is.null(names(set))) {## Discrete
Expand Down
5 changes: 4 additions & 1 deletion man/highlight_entities.Rd

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

0 comments on commit 042b0f3

Please sign in to comment.