Skip to content

Commit

Permalink
use_cache in highlight_entities
Browse files Browse the repository at this point in the history
  • Loading branch information
noriakis committed Oct 23, 2023
1 parent 5206e66 commit 0cece6d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: ggkegg
Type: Package
Title: KEGG pathway visualization by ggplot2
Version: 0.99.3
Version: 0.99.4
Authors@R: person("Noriaki", "Sato", email = "[email protected]", role = c("cre", "aut"))
Description: This package aims to import, parse, and analyze KEGG data such as KEGG PATHWAY and KEGG MODULE. The package supports visualizing KEGG information using ggplot2 and ggraph through using the grammar of graphics. The package enables the direct visualization of the results from various omics analysis packages.
License: MIT + file LICENSE
Expand Down
5 changes: 3 additions & 2 deletions R/highlight_functions.R
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
#' @param show_type entitie type, default to 'gene'
#' @param fill_color highlight color, default to 'tomato'
#' @param legend_name legend name, NULL to suppress
#' @param use_cache use cache or not
#' @return overlaid map
#' @examples
#' highlight_entities("hsa04110", c("CDKN2A"), legend_name="interesting")
Expand All @@ -23,8 +24,8 @@
highlight_entities <- function(pathway, set, how="any",
name="graphics_name", sep=",", no_sep=FALSE,
show_type="gene", fill_color="tomato",
legend_name=NULL) {
graph <- pathway(pathway, use_cache=TRUE)
legend_name=NULL, use_cache=FALSE) {
graph <- pathway(pathway, use_cache=use_cache)
x <- get.vertex.attribute(graph, name)
vec <- vapply(seq_along(x), function(xn) {
if (no_sep) {
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 0cece6d

Please sign in to comment.