Skip to contents

Generate mosaic data topology network as an igraph object.

Usage

mosaicDataTopology(assay_list)

Arguments

assay_list

a list of data matrices with rownames (features) specified.

Value

igraph weighted network with nodes corresponding to assay_list elements, and edges present if the matrices share at least one rowname. Edge weights correspond to the number of shared rownames among data matrices.

Examples

set.seed(2021)
assay_list <- mockMosaicData()
mdt <- mosaicDataTopology(assay_list)
mdt
#> IGRAPH f889165 UN-- 3 2 -- 
#> + attr: name (v/c), frame.color (v/c), color (v/c), label.color (v/c),
#> | label.family (v/c)
#> + edges from f889165 (vertex names):
#> [1] D1--D2 D2--D3
plot(mdt)