ChiLiubio / microeco

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

Error when running cal_mantel_corr #368

Open afmbafmb opened 4 months ago

afmbafmb commented 4 months ago

Hi, Thanks so much for developing such a useful package!

I followed the lines from your tutorial

t1 <- trans_nullmodel$new(dataset, filter_thres = 0.0005, add_data = env_data_16S)

followed by

t1$cal_mantel_corr(use_env = "pH")

and I get this error after that

Warning: no non-missing arguments to min; returning InfWarning: no non-missing arguments to min; returning InfWarning: no non-missing arguments to min; returning InfWarning: no non-missing arguments to min; returning InfWarning: no non-missing arguments to min; returning InfWarning: no non-missing arguments to min; returning InfWarning: no non-missing arguments to min; returning InfWarning: no non-missing arguments to min; returning InfWarning: no non-missing arguments to min; returning InfWarning: no non-missing arguments to min; returning InfWarning: no non-missing arguments to min; returning InfWarning: no non-missing arguments to min; returning InfWarning: no non-missing arguments to

I didn't have any problem with other functions like cal_ses_betamntd, cal_NTI, etc.

Thanks in advance for your help!

ChiLiubio commented 4 months ago

Hi. Is it the example data inside the package? Though I am not sure how the warning message happened, there may be an available result. Please first check the result, i.e. res_mantel_corr in the object. I will try to reproduce it.

afmbafmb commented 4 months ago

Hi Liu, Thanks for your reply! Yes it's from the example dataset inside the package. The error msg just keep running continuously till I stop it. There is no res_mantel_corr result generated.