Skip to content

Commit

Permalink
Fix Metabolite mapping for WikiPathways (#58)
Browse files Browse the repository at this point in the history
  • Loading branch information
iblacksand authored Oct 15, 2024
1 parent cec3285 commit fe2a299
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/linkModification.R
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ keggMetaboliteLinkModification <- function(enrichPathwayLink, geneList, interest
wikiMetaboliteLinkModification <- function(enrichMethod, enrichPathwayLink, geneList, interestingGeneMap, hostName) {
geneMap <- interestingGeneMap$mapped
hmdbGeneList <- simple_mapping(unlist(strsplit(geneList, ";")), "hsapiens", "rampc", "hmdb", "rampc", hostName, no_dups = TRUE)
# hmdbGeneList <- sapply(hmdbGeneList, function(x) x <- gsub("hmdb:", "HMDB_", x, ignore.case = TRUE))
hmdbGeneList <- sapply(hmdbGeneList, function(x) x <- gsub("hmdb:", "HMDB_", x, ignore.case = TRUE))
geneMap <- filter(geneMap, .data$rampc %in% geneList)
geneList <- unlist(strsplit(geneList, ";"))
if (grepl("PathwayWidget", enrichPathwayLink, fixed = FALSE)) {
Expand Down

0 comments on commit fe2a299

Please sign in to comment.