ChiLiubio / microeco

An R package for data analysis in microbial community ecology
GNU General Public License v3.0
198 stars 56 forks source link

cal_manova issue #74

Closed mtva0001 closed 2 years ago

mtva0001 commented 2 years ago

Hi,

I try to run PERMANOVA but it doesn't work. I could easily make an NMDS, even calculate calculate and plot group distances and betadisper, but the function of cal_manova results in this error message:

t1$cal_manova(cal_manova_all = TRUE) Error in colnames<-(*tmp*, value = colnames(lhs)) : attempt to set 'colnames' on an object with less than two dimensions

How could I fix this?

Thanks for your help in advance! (I'm using the newest version of your package)

ChiLiubio commented 2 years ago

Hi. Could you send me your t1 object? Thus, I can try to repeat this error. It can be saved like this example (https://chiliubio.github.io/microeco_tutorial/notes.html#save-function) and dragged here.

mtva0001 commented 2 years ago

Please find attached! Thanks for checking this for me! t1.RData.zip

ChiLiubio commented 2 years ago

Hi, @mtva0001

It is ok in my runing with the commands:

library(microeco) load("t1.RData") t1$cal_manova(cal_manova_all = TRUE) t1$res_manova

As I directly use t1 object, so the function performed in t1 is totally same with you use. So it should not be the issue of package version.

mtva0001 commented 2 years ago

Thanks for checking this! Unfortunately, it doesn't work for me :/

library(microeco) load("/Users/matevass/t1.RData") t1$cal_manova(cal_manova_all = TRUE) Error in colnames<-(*tmp*, value = colnames(lhs)) : attempt to set 'colnames' on an object with less than two dimensions t1$res_manova NULL (.packages()) [1] "ggplot2" "viridis" "viridisLite" "microeco" "grid" "stats" "graphics"
[8] "grDevices" "utils" "datasets" "methods" "base"