Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when running vignette MetENP_vignette.rmd #4

Open
biodavidjm opened this issue Oct 18, 2023 · 2 comments
Open

Error when running vignette MetENP_vignette.rmd #4

biodavidjm opened this issue Oct 18, 2023 · 2 comments

Comments

@biodavidjm
Copy link

I get the following error when running the last chunk of the vignette:

Plot pathway network

The pathway network is such that it shows metabolites that are connected to different pathways and same metabolite in different pathway. Color of nodes of metabolites are according to the fold change of metabolites (low expression in green and high in red) and size of pathway nodes (square nodes) are according to the number of branches (meaning no of metabolites). All metabolite are written in blue

plot_pathway_networks(met_path,kegg_es, TRUE)

Error:

Error in `geom_edge_diagonal()` at MetENP/R/plot_pathway_networks.R:67:2:
! Problem while converting geom to grob.
ℹ Error occurred in the 1st layer.
Caused by error:
! Unknown colour name: Arachidonic acid metabolism
Backtrace:
  1. base (local) `<fn>`(x)
  2. ggplot2:::print.ggplot(x)
  4. ggplot2:::ggplot_gtable.ggplot_built(data)
  5. ggplot2:::by_layer(...)
 12. ggplot2 (local) f(l = layers[[i]], d = data[[i]])
     ...
 20. self$draw_panel(...)
 21. ggraph (local) draw_panel(..., self = self)
 25. scales::alpha(data$edge_colour, data$edge_alpha)
 26. farver::decode_colour(colour, alpha = TRUE)
 27. farver:::decode_c(...)

Error in geom_edge_diagonal(aes_(colour = ~category), alpha = 0.8, show.legend = FALSE) : 
  
ℹ Error occurred in the 1st layer.
Caused by error:
! Unknown colour name: Arachidonic acid metabolism
@mano-at-sdsc
Copy link
Collaborator

mano-at-sdsc commented Jan 11, 2024

I have fixed the issue in Jupyter notebooks by updating the source file plot_pathway_networks.R; will check if it is fixed in rmd as well.

@mano-at-sdsc
Copy link
Collaborator

The rmd file has been updated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants