matrixDissimilarity: Matrix dissimilarity

Description Usage Arguments Value Examples

View source: R/HierBipartite.R

Description

Computes nuclear norm-based dissimilarity measure between two matrices.

Usage

1

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

 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)

hierBipartite documentation built on Feb. 16, 2021, 5:07 p.m.