Skip to content

Commit a79c20b

Browse files
committed
1.1.18 dev
1 parent 08604ef commit a79c20b

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Package: ggkegg
22
Type: Package
33
Title: KEGG pathway visualization by ggplot2
4-
Version: 1.1.17
4+
Version: 1.1.18
55
Authors@R: person("Noriaki", "Sato", email = "[email protected]", role = c("cre", "aut"))
66
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.
77
License: MIT + file LICENSE

R/module_functions.R

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,9 +290,12 @@ module_completeness <- function(kmo, query, name="1") {
290290
names(present) <- kmo$definition_ko_in_block[[i]]
291291
bool <- gsub("\\+","&",
292292
gsub(" ", "&", gsub(",", "|", kmo$definition_block[i])))
293+
bool <- gsub("\\-", "+0*", bool)
294+
293295
for (j in names(present)) {
294296
bool <- gsub(j, present[j], bool)
295297
}
298+
296299
list(length(kmo$definition_ko_in_block[[i]]),
297300
eval(parse(text=bool)),
298301
sum(present),

0 commit comments

Comments
 (0)