filter_network_cols: Filter on columns

Description Usage Arguments Value Examples

View source: R/filter_network_cols.R

Description

The function filters out the columns of a matrix such that the size of the group is exclusively between given min and max values

Usage

1
filter_network_cols(network, min = 0, max = 1, ids = NA)

Arguments

network

numeric matrix

min

numeric value

max

numeric value

ids

array

Value

network numeric matrix

Examples

1
2
3
4
5
6
7
8
9
genes.labels <- matrix( sample( c(0,1), 10000, replace=TRUE), nrow=100)
rownames(genes.labels) = paste('gene', 1:100, sep='')
colnames(genes.labels) = paste('function', 1:100, sep='')
genes.labels <- filter_network_cols(genes.labels,50,200)

genes.labels <- matrix( sample( c(0,1), 10000, replace=TRUE), nrow=100)
rownames(genes.labels) = paste('gene', 1:100, sep='')
colnames(genes.labels) = paste('function', 1:100, sep='')
genes.labels <- filter_network_cols(genes.labels,ids = paste('function', 1:20, sep=''))

EGAD documentation built on Nov. 8, 2020, 8:31 p.m.