mixOmicsTeam / mixOmics

Development repository for the Bioconductor package 'mixOmics '
http://mixomics.org/
161 stars 52 forks source link

Revisiting "non-conformable arguments" error from perf #298

Open mfisher5 opened 1 year ago

mfisher5 commented 1 year ago
          I am encountering the same error from perf, using the code below:
 > cw.lgtax.pls4 <- pls(Y = cw.lg.mat, X = index.lg.mat,  ncomp=4, mode = 'regression') ## runs
 > set.seed(33)  
 > Q2.lgtax.pls4 <- perf(cw.lgtax.pls4, validation = 'Mfold', 
                      folds = 10, nrepeat = 5)

Error in X.test %*% a.cv : non-conformable arguments

I'm happy to share data over email to resolve it; I attached histograms to give an overview of the data values in each matrix. The "X" matrix contains a relative abundance index based on DNA metabarcoding (COI) data, consists of 153 rows (samples) and 112 columns (taxa), the "Y" matrix contains 153 rows (samples and 1 column (continuous biological variable).

test_spls_histX test_spls_cw

Originally posted by @mfisher5 in https://github.com/mixOmicsTeam/mixOmics/issues/273#issuecomment-1726620746

evaham1 commented 3 weeks ago

Hi @mfisher5, sorry for the delay in getting back to you, mixOmics has been without a maintainer for the past few months. If you are still experiencing this issue please could you share your data with me so I can try to reproduce the issue eva.hamrud@unimelb.edu.au