filter_biclusters {mosbi} | R Documentation

## Filter biclusters based on a user defined filter function.

### Description

If the function returns `True`, the bicluster is added to the output list of biclusters. Every bicluster is validated, before forwarding to the filter-function.

### Usage

    filter_biclusters(bics, mat, filterfun, ...)

### Arguments

`bics` | A list of valid bicluster objects.
`mat` | Original matrix, that was used for biclustering.
`filterfun` | A function to filter biclusters. Only if the function returns `True`, the bicluster is added to the returned list. The function has to accept a the bicluster (given as submatrix of `mat`) `filterfun(bicluster_matrix, ...)`.
`...` | Other parameters forwarded to the `filterfun`.

### Value

A filtered list ob bicluster objects with length(returned_list)<=length(bics).

### Examples

    # m <- matrix(runif(100), nrow=10)
    b <- list(bicluster(row=c(3,4), column=c(3,4)),
        bicluster(row=c(3,4,5,6), column=c(3,4,5,6)),
        bicluster(row=c(3,4,5,6), column=c(3,6)))
    # filter_biclusters(b, m, function(x) sum(x) < 0)

[Package mosbi version 1.0.3 Index]