predictions: Performing Gene Function Prediction

Description Usage Arguments Value Examples

View source: R/predictions.R

Description

The function performs gene function prediction on the whole data set using the 'guilt by association'-principle ([1]).

Usage

1
predictions(genes.labels, network)

Arguments

genes.labels

numeric array

network

numeric array symmetric, gene-by-gene matrix

Value

scores numeric matrix

Examples

1
2
3
4
5
6
7
8
genes.labels <- matrix( sample( c(0,1), 1000, replace=TRUE), nrow=100)
rownames(genes.labels) = paste('gene', 1:100, sep='')
colnames(genes.labels) = paste('function', 1:10, sep='')
net <- cor( matrix( rnorm(10000), ncol=100), method='spearman')
rownames(net) <- paste('gene', 1:100, sep='')
colnames(net) <- paste('gene', 1:100, sep='')

preds <- predictions(genes.labels, net) 

sarbal/EGAD documentation built on May 5, 2021, 5:10 p.m.