Skip to content

Commit

Permalink
fixed bug in kegg
Browse files Browse the repository at this point in the history
  • Loading branch information
noriakis committed Mar 22, 2024
1 parent 8ae1b44 commit faccb68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/plotKEGGPathway.R
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ plotKEGGPathway <- function(stana, species, pathway_id,
graphList <- list()
for (pid in pathway_id) {
g <- ggkegg::pathway(pid)
g <- g |> dplyr::mutate(Sum := ggkegg::node_numeric(lfcs[["Sum"]], name="name",how=kegg_name_match))
g <- g |> dplyr::mutate(Sum := ggkegg::node_numeric(lfcs[[sp]], name="name",how=kegg_name_match))
}
V(g)$space <- V(g)$width
nds <- g |> tidygraph::activate("nodes") |> data.frame()
Expand Down

0 comments on commit faccb68

Please sign in to comment.