You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
phyloseq's export of the base R transpose method seems to do something weird that clashes with the transpose method of the Matrix package. In essence, if you load phyloseq, and try to transpose a sparse matrix with the transpose function from the Matrix package, it crashes R. As a consequence, Example:
library(phyloseq)
t(matrix(0)) # fine
Matrix::t(as(matrix(0),"TsparseMatrix")) # also crashes
My feeling is that this has to do with the way that phyloseq exports its transpose functionality; at present this is non-specific, whereas it would be great if it could -only- export it for phyloseq objects instead (i.e., define transpose.phyloseq instead). It would be great if this could be fixed, because presently it greatly frustrates any workflows that incorporate both phyloseq and sparse matrices of some kind..
I'm can submit a PR if that is appreciated.
The text was updated successfully, but these errors were encountered:
phyloseq's export of the base R transpose method seems to do something weird that clashes with the transpose method of the Matrix package. In essence, if you load phyloseq, and try to transpose a sparse matrix with the transpose function from the Matrix package, it crashes R. As a consequence, Example:
My feeling is that this has to do with the way that phyloseq exports its transpose functionality; at present this is non-specific, whereas it would be great if it could -only- export it for phyloseq objects instead (i.e., define transpose.phyloseq instead). It would be great if this could be fixed, because presently it greatly frustrates any workflows that incorporate both phyloseq and sparse matrices of some kind..
I'm can submit a PR if that is appreciated.
The text was updated successfully, but these errors were encountered: