Description Usage Arguments Value Examples
View source: R/HierBipartite.R
Computes nuclear norm-based dissimilarity measure between two matrices.
1 | matrixDissimilarity(B1, B2)
|
B1 |
first p x q bipartite graph edge weight matrix |
B2 |
second p x q bipartite graph edge weight matrix |
nuclear norm-based dissimilarity
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | # 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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.