Learn R Programming

BiBitR (version 0.3.1)

MaxBC: Finding Maximum Size Biclusters

Description

Simple function which scans a Biclust result and returns which biclusters have maximum row, column or size (row*column).

Usage

MaxBC(result, top = 1)

Arguments

result

A Biclust result. (e.g. The return object from bibit or bibit2)

top

The number of top row/col/size dimension which are searched for. (e.g. default top=1 gives only the maximum)

Value

A list containing:

  • $row: A matrix containing in the columns the Biclusters which had maximum rows, and in the rows the Row Dimension, Column Dimension and Size.

  • $column: A matrix containing in the columns the Biclusters which had maximum columns, and in the rows the Row Dimension, Column Dimension and Size.

  • $size: A matrix containing in the columns the Biclusters which had maximum size, and in the rows the Row Dimension, Column Dimension and Size.

Examples

Run this code

data <- matrix(sample(c(0,1),100*100,replace=TRUE,prob=c(0.9,0.1)),nrow=100,ncol=100)
data[1:10,1:10] <- 1 # BC1
data[11:20,11:20] <- 1 # BC2
data[21:30,21:30] <- 1 # BC3
data <- data[sample(1:nrow(data),nrow(data)),sample(1:ncol(data),ncol(data))]
result <- bibit(data,minr=2,minc=2)

MaxBC(result)


Run the code above in your browser using DataLab