filter_biclusters: Filter biclusters based on a user defined filter function.

View source: R/filter_biclusters.R

filter_biclustersR 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)


tdrose/mosbi documentation built on May 4, 2022, 3:22 p.m.