matrixDissimilarity {hierBipartite} | R Documentation |
Matrix dissimilarity
Description
Computes nuclear norm-based dissimilarity measure between two matrices.
Usage
matrixDissimilarity(B1, B2)
Arguments
B1 |
first p x q bipartite graph edge weight matrix |
B2 |
second p x q bipartite graph edge weight matrix |
Value
nuclear norm-based dissimilarity
Examples
# Compute matrix dissimilarity in edge weight matrix between squamous cell
# carcinoma, esophagus and squamous cell carcinoma, upper aerodigestive
data(ctrp2)
groups = ctrp2$groups
X = ctrp2$X
Y = ctrp2$Y
x1 = X[groups[["squamous_cell_carcinoma_esophagus"]], ]
y1 = Y[groups[["squamous_cell_carcinoma_esophagus"]], ]
## Not run:
B1 = constructBipartiteGraph(x1, y1)
## End(Not run)
x2 = X[groups[["squamous_cell_carcinoma_upper_aerodigestive"]], ]
y2 = Y[groups[["squamous_cell_carcinoma_upper_aerodigestive"]], ]
## Not run:
B2 = constructBipartiteGraph(x2, y2)
matrixDissimilarity(B1, B2)
## End(Not run)
[Package hierBipartite version 0.0.2 Index]