Skip to content

Commit 72f1b74

Browse files
committed
fix for KEGGREST updates
1 parent 91c51e2 commit 72f1b74

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

‎DESCRIPTION‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: gatom
22
Title: Finding an Active Metabolic Module in Atom Transition Network
3-
Version: 1.11.2
3+
Version: 1.11.4
44
Authors@R:
55
c(
66
person("Anastasiia", "Gainullina", role = c("aut")),

‎R/annotation.R‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,8 @@ makeOrgGatomAnnotation <- function(org.db,
4242
meta <- AnnotationDbi::metadata(org.db)
4343
organismName <- meta$value[match("ORGANISM", meta$name)]
4444
genomeListRaw <- KEGGREST::keggList("genome")
45-
keggOrgCodes <- as.data.table(tstrsplit(genomeListRaw, split="; ", fixed=TRUE))
46-
setnames(keggOrgCodes, new=c("organism", "species"))
47-
keggOrgCode <- keggOrgCodes[grep(organismName, species), organism]
45+
keggOrgCodes <- as.data.table(genomeListRaw)
46+
keggOrgCode <- keggOrgCodes[grep(organismName, organism), genome]
4847
}
4948
}
5049

0 commit comments

Comments
 (0)