Skip to content

Commit

Permalink
set min version for ggkegg
Browse files Browse the repository at this point in the history
  • Loading branch information
egeulgen committed Feb 15, 2025
1 parent ac9eba4 commit 8959267
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 49 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ Imports:
ggraph,
ggupset,
fpc,
ggkegg,
ggkegg (>= 1.4.1),
grDevices,
httr,
igraph,
Expand Down
5 changes: 4 additions & 1 deletion R/visualization.R
Original file line number Diff line number Diff line change
Expand Up @@ -371,8 +371,11 @@ color_kegg_pathway <- function(pw_id, change_vec, scale_vals = TRUE, node_cols =

############ Assign the input change values to any corresponding pathway gene nodes
# create pathway graph object and collect all pathway genes
ggkegg_temp_dir <- file.path(tempdir(check = TRUE), "ggkegg")
dir.create(ggkegg_temp_dir, showWarnings = FALSE)

g <- tryCatch({
ggkegg::pathway(pid = pw_id, use_cache = TRUE)
ggkegg::pathway(pid = pw_id, directory = ggkegg_temp_dir)
}, error = function(e) {
message(paste("Cannot parse KEGG pathway for:", pw_id))
message("Here's the original error message:")
Expand Down
55 changes: 8 additions & 47 deletions renv.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,23 @@
"Repositories": [
{
"Name": "BioCsoft",
"URL": "https://bioconductor.org/packages/3.19/bioc"
"URL": "https://bioconductor.org/packages/3.20/bioc"
},
{
"Name": "BioCann",
"URL": "https://bioconductor.org/packages/3.19/data/annotation"
"URL": "https://bioconductor.org/packages/3.20/data/annotation"
},
{
"Name": "BioCexp",
"URL": "https://bioconductor.org/packages/3.19/data/experiment"
"URL": "https://bioconductor.org/packages/3.20/data/experiment"
},
{
"Name": "BioCworkflows",
"URL": "https://bioconductor.org/packages/3.19/workflows"
"URL": "https://bioconductor.org/packages/3.20/workflows"
},
{
"Name": "BioCbooks",
"URL": "https://bioconductor.org/packages/3.19/books"
"URL": "https://bioconductor.org/packages/3.20/books"
},
{
"Name": "CRAN",
Expand Down Expand Up @@ -188,32 +188,6 @@
],
"Hash": "c3c792a7b7f2677be56e8632c5b7543d"
},
"GetoptLong": {
"Package": "GetoptLong",
"Version": "1.0.5",
"Source": "Repository",
"Repository": "CRAN",
"Requirements": [
"GlobalOptions",
"R",
"crayon",
"methods",
"rjson"
],
"Hash": "61fac01c73abf03ac72e88dc3952c1e3"
},
"GlobalOptions": {
"Package": "GlobalOptions",
"Version": "0.1.2",
"Source": "Repository",
"Repository": "CRAN",
"Requirements": [
"R",
"methods",
"utils"
],
"Hash": "c3f7b221e60c28f5f3533d74c6fef024"
},
"IRanges": {
"Package": "IRanges",
"Version": "2.38.0",
Expand Down Expand Up @@ -913,13 +887,11 @@
},
"ggkegg": {
"Package": "ggkegg",
"Version": "1.2.3",
"Version": "1.4.1",
"Source": "Bioconductor",
"Repository": "Bioconductor 3.19",
"Repository": "Bioconductor 3.20",
"Requirements": [
"AnnotationDbi",
"BiocFileCache",
"GetoptLong",
"R",
"XML",
"data.table",
Expand All @@ -931,7 +903,6 @@
"igraph",
"magick",
"methods",
"org.Hs.eg.db",
"patchwork",
"shadowtext",
"stats",
Expand All @@ -940,7 +911,7 @@
"tidygraph",
"utils"
],
"Hash": "2a22b530a009c9533ecef6e85038068c"
"Hash": "db4d84b130a2b35a884318c9c06d78f0"
},
"ggplot2": {
"Package": "ggplot2",
Expand Down Expand Up @@ -1547,16 +1518,6 @@
],
"Hash": "397b7b2a265bc5a7a06852524dabae20"
},
"rjson": {
"Package": "rjson",
"Version": "0.2.21",
"Source": "Repository",
"Repository": "CRAN",
"Requirements": [
"R"
],
"Hash": "f9da75e6444e95a1baf8ca24909d63b9"
},
"rlang": {
"Package": "rlang",
"Version": "1.1.3",
Expand Down

0 comments on commit 8959267

Please sign in to comment.