Convert/Coerce DCCM .cij to basic matrix
Issue #428
resolved
Hi Grant Lab,
I am trying to find a way to compute the similarities of various cross-correlation matrices computed from Bio3D. For instance, I am trying to use the "dist2" function from the FlexClust package to compute the euclidean distance between two matrices but because the .cij matrix is of class "dccm" and "matrix" the following error is thrown;
Error in as(x, "matrix") : internal problem in as(): “dccm” is(object, "matrix") is TRUE, but the metadata asserts that the 'is' relation is FALSE
Do you all have another way to compute the similarites between matrices generated from trajectories? Simply trying to coerce the .cij to (as.matrix) doesn't get rid of the "dccm" class.
Comments (2)
-
-
- changed status to resolved
- Log in to comment
Sorry, I found a workaround for this! It can be removed :) Thanks.