sizes: Calculate bicluster sizes

Description Usage Arguments Value Examples

Description

Calculates the number of matrix elements in each bicluster. Biclusters must be described in the same format as the output from biclusterMatrix2List.

Usage

1
sizes(biclusterRows, biclusterCols)

Arguments

biclusterRows

a list of numeric vectors giving the row indices of each bicluster

biclusterCols

a list of numeric vectors giving the column indices of each bicluster

Value

numeric vector

Examples

1
2
3
4
5
6
7
8
bce <- BiclusterExperiment(yeast_benchmark[[1]])
bce <- addStrat(bce, k = 2, method = "als-nmf")
bcs <- getStrat(bce, 1)
biclustersAsLists <- biclusterMatrix2List(
 rowxBicluster = clusteredFeatures(bcs),
 biclusterxCol = clusteredSamples(bcs))
sizes(biclusterRows = biclustersAsLists[[1]],
      biclusterCols = biclustersAsLists[[2]])

jonalim/mfBiclust documentation built on May 4, 2019, 4:13 a.m.