cafferychen777 / ggpicrust2

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

Error pathway_errorbar "`$<-.data.frame`(`*tmp*`, "group", value = c(2L, 2L, 2L, 2L, : replacement has 20 rows, data has 1" #111

Open raqxavier opened 3 days ago

raqxavier commented 3 days ago

Good morning

I have one differentially abundant pathway between two groups and wish to plot it using the "pathway_errorbar": p <- pathway_errorbar(abundance = kegg_abundance, daa_results_df = daa_annotated_sub_method_results_df, Group = metadata$state, p_values_threshold = 0.05, order = "pathway_class", select = NULL, ko_to_kegg = TRUE, p_value_bar = TRUE, colors = NULL, x_lab = "pathway_name")

ERROR Error in $<-.data.frame(*tmp*, "group", value = c(2L, 2L, 2L, 2L, : replacement has 20 rows, data has 1 In addition: Warning message: In cbind(sample = colnames(sub_relative_abundance_mat), group = Group, : number of rows of result is not a multiple of vector length (arg 2)

Environment Information: