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
I have two adjacency matrices created with CellOracle, and I wanted to compare them directly using manifolAlignment() followed by dRegulation(). My range of values inside the matrix is smaller than (1, -1), as they do not represent strict correlations between entries. Nevertheless, I normalize and symmetrize the matrices as done by scTenifoldNet before using its functions. The issue I am encountering is that when I compare one matrix to itself, the output shows around 10 significant distances between elements, when there should not be any significant difference as it is the same matrix.
Here you have everything I am doing with the matrix:
# Set diagonal values to zero
diag(adj_matrix_wt) <- 0
# Normalize the matrix by dividing by the maximum absolute value
adj_matrix_wt <- adj_matrix_wt / max(abs(adj_matrix_wt))
# Symmetrize matrix
adj_matrix_wt <- (adj_matrix_wt + t(adj_matrix_wt)) / 2
# Align matrices
maOutput <- manifoldAlignment(adj_matrix_wt, adj_matrix_wt)
# Evaluate the difference in regulation
dcOutput <- dRegulation(maOutput)
And I also attach my matrix in a tab separated txt file so you can test what I am dealing with: adj_matrix_wt.txt
Am I misusing these functions? Is there a reason why this is happening?
Thank you for your help!
The text was updated successfully, but these errors were encountered:
I have two adjacency matrices created with CellOracle, and I wanted to compare them directly using manifolAlignment() followed by dRegulation(). My range of values inside the matrix is smaller than (1, -1), as they do not represent strict correlations between entries. Nevertheless, I normalize and symmetrize the matrices as done by scTenifoldNet before using its functions. The issue I am encountering is that when I compare one matrix to itself, the output shows around 10 significant distances between elements, when there should not be any significant difference as it is the same matrix.
Here you have everything I am doing with the matrix:
And I also attach my matrix in a tab separated txt file so you can test what I am dealing with:
adj_matrix_wt.txt
Am I misusing these functions? Is there a reason why this is happening?
Thank you for your help!
The text was updated successfully, but these errors were encountered: