bug in block.plsda from mixOmics?
0
0
Entering edit mode
@lluis-revilla-sancho
Last seen 5 days ago
European Union

I am using mixOmics (6.22.0 from Bioconductor 3.16 on R 4.2.2) block.plsda but I'm hitting a bug with my data:

bp2 <- block.plsda(X = X, Y = MAE_cross$severity, ncomp = 5, design = design2, 
+                       near.zero.var = TRUE)
Design matrix has changed to include Y; each block will be
            linked to Y.
Error in !DA : invalid argument type

block.plsda uses internal_wrapper.mint.block, which has a DA argument set to NULL, which is later used internally as !DA & q ==indY which results in an error when DA is NULL:

DA <- NULL
!DA
## Error in !DA : invalid argument type
mixOmics • 646 views
ADD COMMENT
0
Entering edit mode

But block.plsda calls internal_wrapper.mint.block with DA = TRUE, so the default doesn't matter. You'll need to provide the output from both traceback() after the error and your sessionInfo().

ADD REPLY
0
Entering edit mode

Oh, sorry for the noise, I see that just after Bioconductor 3.16 the bug is fixed in both 3.17 and in devel. Thanks for checking.

ADD REPLY

Login before adding your answer.

Traffic: 806 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6