ggpicrust2 icon indicating copy to clipboard operation
ggpicrust2 copied to clipboard

# Perform pathway DAA using ALDEx2 method not working with example dataset

Open JayalalKJ opened this issue 6 months ago • 1 comments

Describe the Bug

Reproducible Example Please provide a minimal reproducible example using reprex::reprex(). This will help us understand and fix the issue faster. If possible, include a small sample of your data or use example data to demonstrate the error.

"error occurs on this command"

# Perform pathway DAA using ALDEx2 method
daa_results_df <- pathway_daa(abundance = ko_abundance %>% column_to_rownames("#NAME"), 
                              metadata = metadata, 
                              group = "Environment", 
                              daa_method = "ALDEx2", 
                              select = NULL, 
                              reference = NULL)

error

Error in Math.factor(c(1L, 1L, 1L, 2L, 2L, 2L, 1L, 1L, 1L, 1L, 2L, 1L, : ‘round’ not meaningful for factors

Environment Information:

  • Operating System: Windows
  • R Version: R version 4.3.3 (2024-02-29 ucrt)
  • Package Version: ggpicrust2 Version: 1.7.3
image

JayalalKJ avatar Aug 21 '24 09:08 JayalalKJ