mixOmicsTeam / mixOmics

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

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

Open mfisher5 opened 9 months ago

mfisher5 commented 9 months 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