cafferychen777 / ggpicrust2

Make Picrust2 Output Analysis and Visualization Easier
https://cafferychen777.github.io/ggpicrust2/
Other
91 stars 11 forks source link

Issue with MetaCyc pathway annotation #71

Open etodd8 opened 7 months ago

etodd8 commented 7 months ago

Hi there,

I'm running the pathway annotation example for metacyc as below (but using my own data):

Annotate MetaCyc pathway results without KO to KEGG conversion

metacyc_daa_annotated_results_df <- pathway_annotation(pathway = "MetaCyc", daa_results_df = metacyc_daa_results_df, ko_to_kegg = FALSE)

But when I run it I get the following error message:

Starting pathway annotation...
DAA results data frame is not null. Proceeding...
KO to KEGG is set to FALSE. Proceeding with standard workflow...
Loading MetaCyc reference data...
Error in `$<-.data.frame`(`*tmp*`, "description", value = character(0)) : 
  replacement has 0 rows, data has 1

I also got the same error message when I ran the full ggpicrust2 command, and the resulting plot had some really weird labelling so perhaps that's related?

My input files had EC numbers as the column that was converted to row names if this helps?

Thanks!