DaliangNing / iCAMP1

Infer Community Assembly Mechanisms by Phylogenetic bin-based null model analysis (Version 1)
GNU General Public License v2.0
68 stars 25 forks source link

Error in h(simpleError(msg, call)) : when running icamp.big #27

Closed LuffyLuffy closed 1 year ago

LuffyLuffy commented 1 year ago

----bMPD bin i=1 in 1 ---- Wed Nov 23 22:31:43 2022 Now calculating observed betaMPD. Begin at Wed Nov 23 22:31:43 2022. Please wait... Now randomizing by parallel computing. Begin at Wed Nov 23 22:31:45 2022. Please wait... Now fixing special cases. Begin at Wed Nov 23 22:31:53 2022. Please wait... Error in h(simpleError(msg, call)) : error in evaluating the argument 'x' in selecting a method for function 'as.matrix': subscript out of bounds

when using icamp.out <- icamp.big(comm = comm, tree = tree, pd.wd = getwd(), ses.cut = 1.96, rc.cut = 0.95, bin.size.limit = 5, rand = 99, nworker = 4)

DaliangNing commented 1 year ago

Please send me (ningdaliang@ou.edu) your input files and R code to debug. BTW, for a real dataset, the bin.size.limit had better no less than 12 to get enough statistical power.

DaliangNing commented 1 year ago

I hope the problem has been solved. If no more questions, I will close this issue.

zombiebride226 commented 6 months ago

Hello, I am very happy to see your post, and I am facing the same error but when calculating the iCAMP::qpen, may I know how you solved this problem? Thank you very much!

zombiebride226 commented 6 months ago

Not exactly the same issue, it is shown in the following part:

qpout=iCAMP::qpen(comm=comm,pd=pd.big$pd.file,pd.big.wd=pd.big$pd.wd,

DaliangNing commented 1 month ago

@zombiebride226 this looks like a format issue. You may send me (ningdaliang@ou.edu) your R code and input files to debug.

zombiebride226 commented 1 month ago

@zombiebride226 this looks like a format issue. You may send me (ningdaliang@ou.edu) your R code and input files to debug.

Thanks a lot for your reply Prof. Ning! This has been solved after.